|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.apputils.menu.EditMenu.MenuHandler
Enable/disable edit menu items according to state. MenuHandler listens for when the edit menu it selected. At that time, it updates the enable/disable status of each menu item. If the focus component is not a JTextComponent, it disables all edit menu items. Otherwise, it calls handleTextComponent() to determine state according to whether text is selected and also whether the text component is editable.
| Constructor Summary | |
protected |
EditMenu.MenuHandler()
|
| Method Summary | |
void |
menuCanceled(javax.swing.event.MenuEvent event)
MenuListener interface |
void |
menuDeselected(javax.swing.event.MenuEvent event)
MenuListener interface |
void |
menuSelected(javax.swing.event.MenuEvent event)
MenuListener interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected EditMenu.MenuHandler()
| Method Detail |
public void menuSelected(javax.swing.event.MenuEvent event)
menuSelected in interface javax.swing.event.MenuListenerpublic void menuCanceled(javax.swing.event.MenuEvent event)
menuCanceled in interface javax.swing.event.MenuListenerpublic void menuDeselected(javax.swing.event.MenuEvent event)
menuDeselected in interface javax.swing.event.MenuListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||