public abstract class Menu extends SyntaxNode
Modifier | Constructor and Description |
---|---|
protected |
Menu(long I64_NativeRef)
Constructor from native instance.
|
|
Menu(java.lang.String J_Name,
Help CLI_Help)
Constructor from Java.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
execute(CommandLine CLI_CmdLine)
Command line execution.
|
java.lang.String |
getName()
Menu name access.
|
void |
onExit()
Handler called when the menu exits.
|
java.lang.String |
onPrompt()
Handler called when then menu displays its prompt.
|
abstract void |
populate()
Populate abstract method.
|
addElement
getCli, getErrorStream, getHelp, getKeyword, getOutputStream, getShell
createdFromNative, dontFinalize, finalize, forget, getbDoFinalize, getNativeRef, getObject, remember
protected Menu(long I64_NativeRef)
I64_NativeRef
- Native instance reference.public Menu(java.lang.String J_Name, Help CLI_Help)
J_Name
- Name of the menu.CLI_Help
- Help attached to the menu.public java.lang.String getName()
public abstract void populate()
public abstract boolean execute(CommandLine CLI_CmdLine)
CLI_CmdLine
- Command line to execute.public void onExit()
public java.lang.String onPrompt()