public abstract class AbstractExperimenterMenuItem extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Experimenter |
m_Owner
the experimenter the menu item belongs to.
|
Constructor and Description |
---|
AbstractExperimenterMenuItem() |
Modifier and Type | Method and Description |
---|---|
AbstractAction |
getAction()
Returns the action.
|
ImageIcon |
getIcon()
Returns the icon for the menu item.
|
protected String |
getIconName()
Returns the name of the icon to use.
|
abstract String |
getItem()
Returns the name of the menu item.
|
abstract String |
getMenu()
Returns the name of the menu this menu item will get added to.
|
static Vector<String> |
getMenuItems()
Returns the classnames of all additional experiment menu items.
|
Experimenter |
getOwner()
Returns the owner.
|
protected abstract void |
launch()
Launches the menu item action.
|
void |
setOwner(Experimenter value)
Sets the owner.
|
void |
update(Experimenter exp,
AbstractAction action)
Updates the action using the experimenter.
|
protected Experimenter m_Owner
public void setOwner(Experimenter value)
value
- the ownerpublic Experimenter getOwner()
public abstract String getMenu()
public abstract String getItem()
protected String getIconName()
public ImageIcon getIcon()
protected abstract void launch()
public AbstractAction getAction()
public void update(Experimenter exp, AbstractAction action)
exp
- the experimenteraction
- the action to updateCopyright © 2017. All Rights Reserved.