public abstract class MainMenuItem
extends java.lang.Object
Constructor and Description |
---|
MainMenuItem(java.lang.String label,
org.eclipse.swt.graphics.Image image,
boolean isButton)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
abstract void |
action(Controller controller)
Override this to perform the action
|
org.eclipse.swt.graphics.Image |
getImage() |
java.lang.String |
getLabel() |
boolean |
isButton() |
abstract boolean |
isEnabled(Model model)
Override this to return whether the item is enabled
|
public MainMenuItem(java.lang.String label, org.eclipse.swt.graphics.Image image, boolean isButton)
label
- image
- isButton
- public abstract void action(Controller controller)
public org.eclipse.swt.graphics.Image getImage()
public java.lang.String getLabel()
public boolean isButton()
public abstract boolean isEnabled(Model model)
model
-