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 | Field and Description |
---|---|
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
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 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
- public void setScript(java.io.File scriptfile)