public class GralActionJztc extends java.lang.Object
Obj gralActions = java new org.vishia.gral.ifc.GralActionJztc(jztc, out); gralActions.add(jztc.sub("buttonConvert")); .... sub buttonConvert(){ .....do something with graphical content or other }
Modifier and Type | Class and Description |
---|---|
private class |
GralActionJztc.Action |
private class |
GralActionJztc.ActionRereadScript |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.String,GralActionJztc.Action> |
actions |
(package private) JZtxtcmdScript |
jzcmdScript
The java prepared script which contains subroutines.
|
(package private) MainCmdLogging_ifc |
log |
(package private) java.lang.Appendable |
out |
(package private) java.io.File |
scriptFile |
(package private) JZtxtcmdThreadQueue |
thread |
static java.lang.String |
version
The version, history and license.
|
Constructor and Description |
---|
GralActionJztc(JZtxtcmdExecuter.JzTcMain jztc,
java.lang.Appendable out,
MainCmdLogging_ifc log)
Constructs and stores JZtxtcmd aggregation.
|
Modifier and Type | Method and Description |
---|---|
void |
add(JZtxtcmdScript.Subroutine jzsub)
Adds a JZtxtcmd-subroutine as execution of a
GralUserAction . |
void |
setScript(java.io.File scriptfile) |
public static final java.lang.String version
java.util.Map<java.lang.String,GralActionJztc.Action> actions
JZtxtcmdScript jzcmdScript
java.io.File scriptFile
final JZtxtcmdThreadQueue thread
final java.lang.Appendable out
final MainCmdLogging_ifc log
public GralActionJztc(JZtxtcmdExecuter.JzTcMain jztc, java.lang.Appendable out, MainCmdLogging_ifc log)
jztc
- The main data to access script levelout
- Any output used in the sub routine.public void setScript(java.io.File scriptfile)
public void add(JZtxtcmdScript.Subroutine jzsub)
GralUserAction
.
to the registered actions, able to get with GralMng.getRegisteredUserAction(String)
The name of the action is the name of the sub routine.
The user is responsible to unique names in the graphic application.jzsub
-