|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.fe.ui.EPanelContainer
public abstract class 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 String |
COMMS_MANAGER
|
static String |
DEFAULT_PANEL
(In a future release, the Panel Drivers will be able to dynamically load, meaning that the app. |
static String |
DEFAULT_ROLE
|
static String |
FRONTEND_BUNDLE
|
static String |
LOAD_DYNAMICALLY
|
static String |
MENU_PANEL
|
static 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(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(String msg)
This method is used to display an error message to the screen. |
void |
displayPanel(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 |
ResourceBundle |
getFrontendBundle()
Deprecated. Use getFrontEndResource() instead |
DataPacket |
getMessageBuffer()
This method gets the messageBuffer DataPacket object. |
String |
getRole()
This method returns the role with which the application is being run under. |
abstract void |
handleInitialData(String[] initData)
This method is implemented by subclasses to handle initial data. |
void |
keyPressed(KeyEvent evt)
This method handles keyEvents when a key is pressed. |
void |
keyReleased(KeyEvent evt)
This method is required by the KeyListener interface. |
void |
keyTyped(KeyEvent evt)
This method is required by the KeyListener interface. |
Object |
loadClass(String className)
This method is used to load classes dynamically. |
Vector |
sendCommsMessage(DataPacket data)
This method send DataPacket to the server using the comms manager. |
Vector |
sendCommsMessage(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 String DEFAULT_PANEL
public static final String FRONTEND_BUNDLE
public static final String LOAD_DYNAMICALLY
public static final String DEFAULT_ROLE
public static final String NUMBER_MENUS
public static final String MENU_PANEL
public static final String COMMS_MANAGER
| Constructor Detail |
|---|
public EPanelContainer()
public EPanelContainer(EApplet eApplet)
eApplet - EApplet
public EPanelContainer(EApplet eApplet,
ECommsManager comms)
BankFrameResource.properties file. Use
EPanelContainer(EApplet) instead
eApplet - EAppletcomms - ECommsManager| Method Detail |
|---|
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - the ActionEvent that occuredpublic void close()
public void displayDefault()
public void displayErrorMessage(String msg)
msg - the error messagepublic void displayPanel(String panelName)
panelName - the name of the EPanel to displaypublic ECommsManager getCommsMgr()
public ResourceBundle getFrontendBundle()
public DataPacket getMessageBuffer()
public String getRole()
public abstract void handleInitialData(String[] initData)
initData - The data to handlepublic void keyPressed(KeyEvent evt)
keyPressed in interface KeyListenerevt - a the KeyEvent that has been generatedpublic void keyReleased(KeyEvent evt)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent evt)
keyTyped in interface KeyListener
public Object loadClass(String className)
throws UserInterfaceException
className - the name of the class
FrontendException - if the class cannot be instantiated.
UserInterfaceExceptionpublic Vector sendCommsMessage(DataPacket data)
data - the request DataPacket
public Vector sendCommsMessage(Vector data)
data - a vector of request DataPackets
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||