org.jSyncManager.Client
Class ApplicationJMenuBar
JMenuBarorg.jSyncManager.Client.ApplicationJMenuBar
- LogStreamInterface
public final class ApplicationJMenuBar
extends JMenuBar
The main menu bar class.
This class handled the menu bar for the jSyncmanager Swing GUI.
ON_SYNC_BACKUP
public static String ON_SYNC_BACKUP
The "Backup Sync" sync type button text.
ON_SYNC_RESTORE
public static String ON_SYNC_RESTORE
The "Restore Sync" sync type button text.
ON_SYNC_STANDARD_SYNC
public static String ON_SYNC_STANDARD_SYNC
The "Standard Sync" sync type button text.
ApplicationJMenuBar
public ApplicationJMenuBar(ApplicationJFrame frame,
RegistrationData prefs)Creates a new instance of the jSyncManager menu bar.
frame - the ApplicationJFrame that is the parent of this menu bar.prefs - the user application preferences object to use with this menu bar.
getSyncTypeSelection
public int getSyncTypeSelection()
Retreives the sync type selection.
- ON_SYNC_STANDARD_SYNC for standard sync, ON_SYNC_BACKUP for a backup sync, or ON_SYNC_RESTORE for a restore sync.
postToLog
public void postToLog(String in)
Post a message to the synchronization log.
- postToLog in interface LogStreamInterface
in - a String containing the message to port.
saveUserPreferences
public void saveUserPreferences()
Saves the user application preferences object.
setPreferences
public void setPreferences(RegistrationData value)
Sets the user application preferences object.
value - the user application preferences object to attach to this instance.