|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.virginia.dcjs.gui.ApplicationFrame
| Field Summary | |
protected ClientFrame |
frame
Container for all application screens |
protected ClientMenu |
menu
Application menu |
| Constructor Summary | |
ApplicationFrame(java.lang.String title,
java.lang.String logonCaption,
java.lang.String pwdCaption)
Prepare the main application frame with the specified namings. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected void |
authenticate(java.lang.String username,
java.lang.String password)
|
protected void |
prepareMenu()
Subclasses access the protected menu field, creating
* the menu options and items, while providing the appropriate
* listeners and keyboard shortcuts. |
protected void |
prepareScreens()
All screens to be used by the application are prepared here. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ClientFrame frame
protected ClientMenu menu
| Constructor Detail |
public ApplicationFrame(java.lang.String title,
java.lang.String logonCaption,
java.lang.String pwdCaption)
| Method Detail |
protected void prepareScreens()
* frame.addScreen(new ApplicationLogon(this, "User Name", "Password"), "Login").
protected void prepareMenu()
menu field, creating
* the menu options and items, while providing the appropriate
* listeners and keyboard shortcuts. For example:
*
* menu.addMenuOption("Decide", KeyEvent.VK_D, null);
*
* menu.addMenuItem("Decide", "Yes", KeyEvent.VK_Y, this);
* menu.addMenuItem("Decide", "Maybe", KeyEvent.VK_M, this);
* menu.addMenuItem("Decide", "No", KeyEvent.VK_N, this);
* menu.addMenuOption("Skill Level", KeyEvent.VK_S, null);
* menu.addMenuItem("Skill Level", "Unix", KeyEvent.VK_U, this);
* menu.addMenuItem("Skill Level", "Windows", KeyEvent.VK_W, this);
* menu.addMenuItem("Skill Level", "Mac", KeyEvent.VK_M, this);
* menu.addMenuSeparator("Skill Level");
* menu.addMenuItem("Skill Level", "Medevil", KeyEvent.VK_E, this);
*
* Initially, the menu only has one option/item, System/Logon. Sub
* classes may recreate the menu as desired, but in order to maintain
* the default settings, these classes need to call
* super.prepareScreens() first, whether manipulating the menu
* manually, or as the first line when overriding this method.
protected void authenticate(java.lang.String username,
java.lang.String password)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||