com.bankframe.fe.ui
Class EApplet

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.ui.EApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable
Direct Known Subclasses:
SampleApplet, SampleApplet

public abstract class EApplet
extends javax.swing.JApplet

This class must be subclassed by all bankframe frontends which must implement the necessary methods.

This class provides methods to:

  1. get the host from which the client must communicate to, i.e. the getHost() method.
  2. set and get the initial data received from the main() method.
  3. load the applications icons.
  4. close the application if run as an application, i.e. the close() method.

It also provides an abtract init() method that must be implemented by subclasses.

See Also:
Serialized Form

Field Summary
static boolean invokedStandalone
           
 
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
EApplet()
           
 
Method Summary
 void close()
          This method will close the Application.
static javax.swing.JFrame eMain(java.lang.String title, EApplet eApplet, java.awt.Dimension size, java.lang.String[] args)
          This method provides a template method to start an EApplet application.
 java.net.URL getHost()
          This method determines the host location of the server.
 java.lang.String[] getInitialData()
          This method returns the initial data of the applet.
static javax.swing.JFrame getJFrame(java.awt.Container c)
          This method finds the JFrame instance that a container is on.
abstract  void init()
          This method initializes the applet/application.
 void loadImages()
          This method loads the application's icons using the ApplicationIcons class.
 
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, getParameterInfo, 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

invokedStandalone

public static boolean invokedStandalone
Constructor Detail

EApplet

public EApplet()
Method Detail

close

public void close()
This method will close the Application. It will call the stop() method of the applet and if running as an application call the System.exit() method.


eMain

public static javax.swing.JFrame eMain(java.lang.String title,
                                       EApplet eApplet,
                                       java.awt.Dimension size,
                                       java.lang.String[] args)
This method provides a template method to start an EApplet application.

Parameters:
title - String
eApplet - com.bankframe.fe.ui.EApplet
size - Dimension
args - String[]

getHost

public java.net.URL getHost()
This method determines the host location of the server. If run as an application, it retrieves the HTTP_SERVER value from BankFrameResource.properties. If run as an applet the .properties files must be included in the jar that contains the example classes.

Returns:
the URL ofthe host.

getInitialData

public java.lang.String[] getInitialData()
This method returns the initial data of the applet.

Returns:
the initial data

getJFrame

public static javax.swing.JFrame getJFrame(java.awt.Container c)
This method finds the JFrame instance that a container is on.

Parameters:
c - Container
Returns:
JFrame

init

public abstract void init()
This method initializes the applet/application. It must be implemented by the subclasses of this class. Primarily it should create an instance of the applications EAppletContainer. For example a subclass may implement this method to invoke the EAppletContainer as follows:

public void init() {
this.setEPanelContainer(new TellerEPanelContainer(this, new EHTTPCommsManager("HTTP", this.getHost())));
}


loadImages

public void loadImages()
This method loads the application's icons using the ApplicationIcons class. The icons or images for the application are held as class variables that can be accessed by any class once the icons are loaded.



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