public class ExampleSimpleButton extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ExampleSimpleButton.Factory
This inner class creates this class with given parameter.
|
protected static class |
ExampleSimpleButton.GuiElements |
protected class |
ExampleSimpleButton.InitGuiCodeSimpleButton
Code snippet for initializing the GUI.
|
Modifier and Type | Field and Description |
---|---|
private GralUserAction |
actionButtonCode
Code snippet for the action while the button is pressed.
|
protected ExampleSimpleButton.GuiElements |
gui
Instance of inner class contains the graphical elements.
|
private GralGraphicTimeOrder |
initGuiCode
Instance to initialize the graphic.
|
static int |
version
Version, history and license.
|
Constructor and Description |
---|
ExampleSimpleButton(GralMng gralMng) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
execute()
Main execute method for any other actions than the graphical actions.
|
(package private) void |
initGui()
Initializes the graphical user interface.
|
static void |
main(java.lang.String[] args)
The main routine.
|
protected static void |
main(java.lang.String[] args,
ExampleSimpleButton.Factory factoryExample)
Main routine with a factory class.
|
protected void |
setInitGuiCode(GralGraphicTimeOrder initGuiCode) |
public static final int version
protected final ExampleSimpleButton.GuiElements gui
private GralGraphicTimeOrder initGuiCode
private final GralUserAction actionButtonCode
ExampleSimpleButton(GralMng gralMng)
protected void setInitGuiCode(GralGraphicTimeOrder initGuiCode)
void initGui()
void execute()
public static void main(java.lang.String[] args)
main(String[], Factory)
.
With that pattern a derived class may have a simple main routine too.args
- command line arguments.protected static void main(java.lang.String[] args, ExampleSimpleButton.Factory factoryExample)
args
- command line arguments.factoryExample
- The factory to create the current class which should be derived from this.