public class DruMenu extends java.lang.Object implements PopulableMenu, ActionSource, LabelActor, Syncable
Modifier and Type | Field and Description |
---|---|
(package private) ActionRelay |
actionRelay |
(package private) DMenu |
dMenu |
(package private) java.lang.String |
id |
(package private) java.util.ArrayList<Syncable> |
items |
protected java.lang.String |
methodName |
(package private) java.lang.String |
name |
(package private) DruMenu |
parentMenu |
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
DruMenu(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(DruCheckboxMenuItem dmi) |
void |
addItem(DruMenuItem dmi) |
void |
addItem(java.lang.String s) |
void |
addItem(java.lang.String lab,
java.lang.String val) |
void |
addSeparator() |
void |
addSubMenu(DruMenu dsm) |
DMenu |
getGUIPeer() |
java.lang.String |
getID() |
boolean |
hasRelay() |
void |
labelAction(java.lang.String s,
boolean b) |
private DruMenu |
makeMenu(StringTree stree) |
void |
preShowSync() |
void |
setAction(java.lang.String s) |
void |
setActionRelay(ActionRelay ac) |
void |
setBg(java.awt.Color background) |
void |
setFg(java.awt.Color foreground) |
void |
setID(java.lang.String s) |
void |
setItems(java.lang.String[] sa) |
void |
setItemsTree(java.lang.String[] sa) |
void |
setOptions(java.lang.String[] sa) |
(package private) void |
setParentMenu(DruMenu dm) |
void |
showPopup(DruMenuButton button,
int i,
int j) |
void |
sync() |
java.lang.String |
toString() |
static final long serialVersionUID
java.lang.String name
java.lang.String id
DruMenu parentMenu
protected java.lang.String methodName
ActionRelay actionRelay
java.util.ArrayList<Syncable> items
DMenu dMenu
public DMenu getGUIPeer()
void setParentMenu(DruMenu dm)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getID()
public void addSubMenu(DruMenu dsm)
public void addItem(DruMenuItem dmi)
public void addItem(DruCheckboxMenuItem dmi)
public void addItem(java.lang.String s)
public void addItem(java.lang.String lab, java.lang.String val)
public void setBg(java.awt.Color background)
public void setFg(java.awt.Color foreground)
public void setAction(java.lang.String s)
public boolean hasRelay()
public void setActionRelay(ActionRelay ac)
setActionRelay
in interface ActionSource
public void labelAction(java.lang.String s, boolean b)
labelAction
in interface LabelActor
public void setOptions(java.lang.String[] sa)
public void setItems(java.lang.String[] sa)
setItems
in interface PopulableMenu
public void setItemsTree(java.lang.String[] sa)
setItemsTree
in interface PopulableMenu
private DruMenu makeMenu(StringTree stree)
public void addSeparator()
public void setID(java.lang.String s)
public void preShowSync()
public void showPopup(DruMenuButton button, int i, int j)
Copyright © 2013. All Rights Reserved.