|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.nds.dirxml.util.MenuItem
com.novell.nds.dirxml.util.CheckedMenuItem
public class CheckedMenuItem
Abstract class for use with the Menu class.
Menu| Field Summary | |
|---|---|
protected boolean |
state
|
| Fields inherited from class com.novell.nds.dirxml.util.MenuItem |
|---|
displayString, exit |
| Constructor Summary | |
|---|---|
protected |
CheckedMenuItem()
Constructor for derived classes. |
|
CheckedMenuItem(String displayString,
boolean initiallyChecked)
Constructor for using this class for a generic menu entry. |
| Method Summary | |
|---|---|
String |
getDisplayString()
Return the string to display as the menu choice. |
boolean |
isChecked()
Return true if this item's state is checked, false otherwise. |
void |
run()
Called when MenuItem is selected by the user. |
| Methods inherited from class com.novell.nds.dirxml.util.MenuItem |
|---|
exitAfterRun |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean state
| Constructor Detail |
|---|
protected CheckedMenuItem()
Derived classes must override exitAfterRun() if they want
it to return true;
public CheckedMenuItem(String displayString,
boolean initiallyChecked)
true from
exitAfterRun().
displayString - menu item text| Method Detail |
|---|
public boolean isChecked()
true if this item's state is checked, false otherwise.
true or falsepublic void run()
MenuItem is selected by the user.
Default implementation toggles state
run in interface Runnablerun in class MenuItempublic String getDisplayString()
getDisplayString in class MenuItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||