|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.ui.EPanelContainer
This class is an abstract class that must be implemented by applications.
It provides the top-level container for a BankFrame application.
It can load panel drivers depending on a setting in the
BankframeFrontendApplication.properties
file.
Field Summary | |
static java.lang.String |
COMMS_MANAGER
|
static java.lang.String |
DEFAULT_PANEL
(In a future release, the Panel Drivers will be able to dynamically load, meaning that the app. |
static java.lang.String |
DEFAULT_ROLE
|
static java.lang.String |
FRONTEND_BUNDLE
|
static java.lang.String |
LOAD_DYNAMICALLY
|
static java.lang.String |
MENU_PANEL
|
static java.lang.String |
NUMBER_MENUS
|
Constructor Summary | |
EPanelContainer()
The EPanelContainer Constructor. |
|
EPanelContainer(EApplet eApplet)
The class constructor. When the constructor is called the following is done: the icons are loaded using the eApplet.loadIcons() method. |
|
EPanelContainer(EApplet eApplet,
ECommsManager comms)
Deprecated. as this class uses the new channel management and gets it settings from the BankFrameResource.properties file. Use
EPanelContainer(EApplet) instead |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
This method handles action events fired from the menu panel. |
void |
close()
This method closes the application by called the close method in the eApplet class. |
void |
displayDefault()
This method is used to display the default panel. |
void |
displayErrorMessage(java.lang.String msg)
This method is used to display an error message to the screen. |
void |
displayPanel(java.lang.String panelName)
This method is used to display an EPanel. |
ECommsManager |
getCommsMgr()
This method returns an instance of the comms manager that this class uses |
java.util.ResourceBundle |
getFrontendBundle()
Deprecated. Use getFrontEndResource() instead |
DataPacket |
getMessageBuffer()
This method gets the messageBuffer DataPacket object. |
java.lang.String |
getRole()
This method returns the role with which the application is being run under. |
abstract void |
handleInitialData(java.lang.String[] initData)
This method is implemented by subclasses to handle initial data. |
void |
keyPressed(java.awt.event.KeyEvent evt)
This method handles keyEvents when a key is pressed. |
void |
keyReleased(java.awt.event.KeyEvent evt)
This method is required by the KeyListener interface. |
void |
keyTyped(java.awt.event.KeyEvent evt)
This method is required by the KeyListener interface. |
java.lang.Object |
loadClass(java.lang.String className)
This method is used to load classes dynamically. |
java.util.Vector |
sendCommsMessage(DataPacket data)
This method send DataPacket to the server using the comms manager. |
java.util.Vector |
sendCommsMessage(java.util.Vector data)
This method sends DataPackets to the server using the comms manager. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_PANEL
public static final java.lang.String FRONTEND_BUNDLE
public static final java.lang.String LOAD_DYNAMICALLY
public static final java.lang.String DEFAULT_ROLE
public static final java.lang.String NUMBER_MENUS
public static final java.lang.String MENU_PANEL
public static final java.lang.String COMMS_MANAGER
Constructor Detail |
public EPanelContainer()
public EPanelContainer(EApplet eApplet)
eApplet
- EAppletpublic EPanelContainer(EApplet eApplet, ECommsManager comms)
BankFrameResource.properties
file. Use
EPanelContainer(EApplet)
instead
eApplet
- EAppletcomms
- ECommsManagerMethod Detail |
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the ActionEvent that occuredpublic void close()
public void displayDefault()
public void displayErrorMessage(java.lang.String msg)
msg
- the error messagepublic void displayPanel(java.lang.String panelName)
panelName
- the name of the EPanel to displaypublic ECommsManager getCommsMgr()
public java.util.ResourceBundle getFrontendBundle()
public DataPacket getMessageBuffer()
public java.lang.String getRole()
public abstract void handleInitialData(java.lang.String[] initData)
initData
- The data to handlepublic void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
evt
- a the KeyEvent that has been generatedpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public java.lang.Object loadClass(java.lang.String className) throws UserInterfaceException
className
- the name of the class
FrontendException
- if the class cannot be instantiated.
UserInterfaceException
public java.util.Vector sendCommsMessage(DataPacket data)
data
- the request DataPacket
public java.util.Vector sendCommsMessage(java.util.Vector data)
data
- a vector of request DataPackets
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |