public class ExampleSimpleButton
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
ExampleSimpleButton.GuiElements
Extra inner class (for more data structuring) for all Gui elements.
|
Modifier and Type | Field and Description |
---|---|
private GralUserAction |
actionButton
Action operation is called in the event handler of the appropriate widget.
|
(package private) int |
ctKeyStroke1 |
(package private) int |
ctKeyStroke2 |
protected ExampleSimpleButton.GuiElements |
gui
Instance of inner class contains the graphical elements.
|
protected LogMessage |
log
A log mechanism nice to have and necessary for GRAL built,
writes firstly to the console out on built of the graphic.
|
static int |
version
Version, history and license.
|
Constructor and Description |
---|
ExampleSimpleButton(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
actionButton()
Operation on button pressed, on the application level.
|
(package private) void |
execute()
execute routine for any other actions than the graphical actions.
|
(package private) void |
init(java.lang.String awtOrSwt)
Code snippet for initializing the GUI.
|
static void |
main(java.lang.String[] args)
The main routine.
|
protected LogMessage log
public static final int version
protected final ExampleSimpleButton.GuiElements gui
int ctKeyStroke1
int ctKeyStroke2
private final GralUserAction actionButton
void init(java.lang.String awtOrSwt)
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.void actionButton() throws java.io.IOException
java.io.IOException