com.ibm.manplato.GUIParts.Legacy
Class ManplatoSyncFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--com.ibm.manplato.GUIParts.Legacy.ManplatoSyncFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.io.Serializable, SynchronizerListener, java.awt.event.WindowListener

public final class ManplatoSyncFrame
extends java.awt.Frame
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.WindowListener, SynchronizerListener

The ManplatoSync Frame class. This class provides a GUI for end-user synchronization, and for managing Conduits.

Version:
$Rev$-$Date: 2001/03/15 16:55:31 $$State: Exp $
Author:
File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
See Also:
Serialized Form

Inner Class Summary
(package private)  class ManplatoSyncFrame.LogStream
           
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
inputContext, nativeActive, OPENED, ownedWindowList, state, warningString, windowListener
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents, needsPaint
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ManplatoSyncFrame()
          Creates and initializes a new ManplatoSync Frame.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionevent)
          Method to handle events for the ActionListener interface.
(package private)  void addConduit(Conduit conduit)
           
(package private)  void appendToPalmSyncLog(java.lang.String text)
           
 void dispose()
          Disposes of the ManplatoSync frame, and exits the application.
 void endOfSync(Synchronizer s)
          Method called by the Synchronizer class to handle end-of-sync.
 java.util.Vector getConduits(Synchronizer s)
          Grabs a vector containing the Conduits to sync with.
 DefaultConduit getDefaultConduit(Synchronizer s)
          Returns a handle to this implementations Default Conduit.
 java.util.ListResourceBundle getLanguageBundle()
          Returns a handle to the current language resource bundle.
 DLPUserInfo getNewUserInfo(Synchronizer s)
          Queries the new user for their user information.
(package private)  boolean getPopupState()
           
 int getSyncType(Synchronizer s)
          Returns the selected synchronization type.
(package private)  int getUserIDNumber()
           
(package private)  UserNameEntryDialog getUserNameEntryDialog()
          Insert the method's description here.
(package private)  boolean isModemListener()
          This method is used to determine if this ManplatoSync instance is listening to a serial port with a cradle, or a serial port with a modem attached.
 void itemStateChanged(java.awt.event.ItemEvent itemevent)
          Method to handle events for the ItemListener interface.
 void midSync(Synchronizer s)
          Routine to handle midpoint sync duties.
(package private)  void postToLog(java.lang.String s)
           
 void processUser(DLPUserInfo userInfo, Synchronizer s)
          Processes incoming user information.
(package private)  void removeConduit(java.lang.String s)
           
(package private)  void setStatus(java.lang.String s)
           
 void startOfSync(Synchronizer s)
          Handles jobs at the start of synchronization.
 boolean useTimeSync(Synchronizer s)
          Queries wether time synchronization is enabled or not.
 boolean validateUser(int userID, Synchronizer s)
          Validates wether or not the specified user is authorized to sync via the provided Synchronizer object.
 void windowActivated(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowClosed(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowClosing(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowDeactivated(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowDeiconified(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowIconified(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 void windowOpened(java.awt.event.WindowEvent windowevent)
          Method to handle events for the WindowListener interface.
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, postProcessKeyEvent, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

ManplatoSyncFrame

public ManplatoSyncFrame()
Creates and initializes a new ManplatoSync Frame.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionevent)
Method to handle events for the ActionListener interface.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
actionevent - java.awt.event.ActionEvent.

addConduit

void addConduit(Conduit conduit)

appendToPalmSyncLog

void appendToPalmSyncLog(java.lang.String text)
Parameters:
text - java.lang.String

dispose

public void dispose()
Disposes of the ManplatoSync frame, and exits the application. This method will save all preferences and Conduits prior to exiting.
Overrides:
dispose in class java.awt.Window
See Also:
java.awt.Component.dispose

endOfSync

public void endOfSync(Synchronizer s)
Method called by the Synchronizer class to handle end-of-sync.
Specified by:
endOfSync in interface SynchronizerListener
See Also:
SynchronizerListener

getConduits

public java.util.Vector getConduits(Synchronizer s)
Grabs a vector containing the Conduits to sync with.
Specified by:
getConduits in interface SynchronizerListener
Returns:
a vector containing the Conduits to sync with.
See Also:
SynchronizerListener

getDefaultConduit

public DefaultConduit getDefaultConduit(Synchronizer s)
Returns a handle to this implementations Default Conduit.
Specified by:
getDefaultConduit in interface SynchronizerListener
Returns:
the Default Conduit to be used.
See Also:
SynchronizerListener

getLanguageBundle

public java.util.ListResourceBundle getLanguageBundle()
Returns a handle to the current language resource bundle.
Specified by:
getLanguageBundle in interface SynchronizerListener
Returns:
a handle to the current language resource bundle.

getNewUserInfo

public DLPUserInfo getNewUserInfo(Synchronizer s)
Queries the new user for their user information.
Specified by:
getNewUserInfo in interface SynchronizerListener
Returns:
a new User Info object.

getPopupState

boolean getPopupState()
Returns:
boolean

getSyncType

public int getSyncType(Synchronizer s)
Returns the selected synchronization type.
Specified by:
getSyncType in interface SynchronizerListener
Returns:
Synchronizer.BACKUP_SYNC, Synchronizer.RESTORE_SYNC, or Synchronizer.NORMAL_SYNC.

getUserIDNumber

int getUserIDNumber()

getUserNameEntryDialog

UserNameEntryDialog getUserNameEntryDialog()
Insert the method's description here. Creation date: (04/03/00 2:07:27 AM)
Returns:
com.ibm.manplato.GUIParts.UserNameEntryDialog

isModemListener

boolean isModemListener()
This method is used to determine if this ManplatoSync instance is listening to a serial port with a cradle, or a serial port with a modem attached.
Returns:
true if the attached serial device is a modem, false otherwise.

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent itemevent)
Method to handle events for the ItemListener interface.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
itemevent - java.awt.event.ItemEvent.

midSync

public void midSync(Synchronizer s)
Routine to handle midpoint sync duties.
Specified by:
midSync in interface SynchronizerListener
Parameters:
s - the Synchronizer object requesting the mid sync processing.

postToLog

void postToLog(java.lang.String s)
Parameters:
s - java.lang.String

processUser

public void processUser(DLPUserInfo userInfo,
                        Synchronizer s)
Processes incoming user information.
Specified by:
processUser in interface SynchronizerListener
Parameters:
userInfo - the incoming user information.

removeConduit

void removeConduit(java.lang.String s)

setStatus

void setStatus(java.lang.String s)

startOfSync

public void startOfSync(Synchronizer s)
Handles jobs at the start of synchronization.
Specified by:
startOfSync in interface SynchronizerListener
Parameters:
s - the Synchronizer object requesting the start of sync processing.

useTimeSync

public boolean useTimeSync(Synchronizer s)
Queries wether time synchronization is enabled or not.
Specified by:
useTimeSync in interface SynchronizerListener
Returns:
true if time sync should be enabled for this Synchronizer instance, false otherwise.

validateUser

public boolean validateUser(int userID,
                            Synchronizer s)
Validates wether or not the specified user is authorized to sync via the provided Synchronizer object.
Specified by:
validateUser in interface SynchronizerListener
Parameters:
userID - the user ID from the remote device.
s - the Synchronizer object requesting the user validation.
Returns:
true if this user is allowed to sync, false otherwise.

windowActivated

public void windowActivated(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowActivated in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowClosed

public void windowClosed(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowClosed in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowClosing

public void windowClosing(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowDeactivated in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowDeiconified in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowIconified

public void windowIconified(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowIconified in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.

windowOpened

public void windowOpened(java.awt.event.WindowEvent windowevent)
Method to handle events for the WindowListener interface.
Specified by:
windowOpened in interface java.awt.event.WindowListener
Parameters:
windowevent - java.awt.event.WindowEvent.