com.bankframe.fe.statemachine.ext.connectors.swing
Class StateMachineApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byjavax.swing.JApplet
                      extended bycom.bankframe.fe.statemachine.ext.connectors.swing.StateMachineApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, ViewContainer

public class StateMachineApplet
extends javax.swing.JApplet
implements ViewContainer

See Also:
Serialized Form

Field Summary
static java.lang.String APPLICATION_MANAGER_KEY
           
static java.lang.String USER_SESSION_MANAGER_KEY
           
static java.lang.String VIEW_OVERRIDE_KEY
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
StateMachineApplet()
          The StateMachineApplet constructor.
 
Method Summary
 void addStateMachineProcessingListener(java.util.Collection listeners)
          This method adds a collection of StateMachineProcessingListeners to the state machine event dispatcher.
 void addStateMachineProcessingListener(StateMachineProcessingListener listener)
          This method adds a StateMachineProcessingListener to the state machine event dispatcher.
 void displayError(java.lang.Exception ex)
          Display the given exception if necessary.
 void displayView(IView view)
          This method sets the current view on the viewportComponent panel.
 java.lang.String getApplicationName()
          Returns the applicationName.
 IView getCurrentView()
          Returns the currentView.
 java.lang.String[][] getParameterInfo()
           
 void init()
          This method initializes the applet.
static void main(java.lang.String[] args)
          This method starts the StateMachineApplet as an application.
 void removeStateMachineProcessingListener(java.util.Collection listeners)
          This method removes a collection of StateMachineProcessingListener to the state machine event dispatcher.
 void removeStateMachineProcessingListener(StateMachineProcessingListener listener)
          This method removes a StateMachineProcessingListener to the state machine event dispatcher.
 void setApplicationName(java.lang.String newApplicationName)
          Sets the applicationName.
 void setCurrentView(IView currentView)
          Sets the currentView.
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_MANAGER_KEY

public static final java.lang.String APPLICATION_MANAGER_KEY
See Also:
Constant Field Values

USER_SESSION_MANAGER_KEY

public static final java.lang.String USER_SESSION_MANAGER_KEY
See Also:
Constant Field Values

VIEW_OVERRIDE_KEY

public static final java.lang.String VIEW_OVERRIDE_KEY
See Also:
Constant Field Values
Constructor Detail

StateMachineApplet

public StateMachineApplet()
The StateMachineApplet constructor.

Method Detail

getParameterInfo

public java.lang.String[][] getParameterInfo()

init

public void init()
This method initializes the applet.

See Also:
Applet.init()

displayView

public void displayView(IView view)
This method sets the current view on the viewportComponent panel. It is called by the eventDispatcher automatically after an event has being handled by the dispatcher. Before the old view is removed, if it is of type StateMachinePanel then the displayedView method is called. This method is also called after the new view has being added to the viewportComponent.

Specified by:
displayView in interface ViewContainer
Parameters:
view - The View to display.
See Also:
ViewContainer.displayView(IView)

displayError

public void displayError(java.lang.Exception ex)
Description copied from interface: ViewContainer
Display the given exception if necessary.

Specified by:
displayError in interface ViewContainer
Parameters:
ex - Exception

getApplicationName

public java.lang.String getApplicationName()
Returns the applicationName.

Returns:
String

setApplicationName

public void setApplicationName(java.lang.String newApplicationName)
Sets the applicationName.

Parameters:
newApplicationName - The applicationName to set

getCurrentView

public IView getCurrentView()
Returns the currentView.

Returns:
IView

setCurrentView

public void setCurrentView(IView currentView)
Sets the currentView.

Parameters:
currentView - The currentView to set

addStateMachineProcessingListener

public void addStateMachineProcessingListener(StateMachineProcessingListener listener)
This method adds a StateMachineProcessingListener to the state machine event dispatcher.

Parameters:
listener - StateMachineProcessingListener

removeStateMachineProcessingListener

public void removeStateMachineProcessingListener(StateMachineProcessingListener listener)
This method removes a StateMachineProcessingListener to the state machine event dispatcher.

Parameters:
listener - StateMachineProcessingListener

addStateMachineProcessingListener

public void addStateMachineProcessingListener(java.util.Collection listeners)
This method adds a collection of StateMachineProcessingListeners to the state machine event dispatcher.

Parameters:
listeners - Collection

removeStateMachineProcessingListener

public void removeStateMachineProcessingListener(java.util.Collection listeners)
This method removes a collection of StateMachineProcessingListener to the state machine event dispatcher.

Parameters:
listeners - Collection

main

public static void main(java.lang.String[] args)
This method starts the StateMachineApplet as an application. It will check the usage, then create an instance of the StateMachineApplet and use the initStateMachineApplet method to initialize and start the application.

Parameters:
args - String[]


Copyright © 2005, 2007, Oracle. All rights reserved.