public abstract class Cli extends Menu
Constructor and Description |
---|
Cli(java.lang.String J_Name,
Help CLI_Help)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addCommentLinePattern(java.lang.String J_Start)
Comment line pattern addition.
|
Menu |
addMenu(Menu CLI_Menu)
Menu addition.
|
void |
enableConfigMenu(boolean B_Enable)
Configuration menu enabling.
|
static int |
findFromName(java.util.Collection<Cli> J_CliList,
java.lang.String J_RegExp)
Find from name.
|
Menu |
getMenu(java.lang.String J_MenuName)
Menu retrieval.
|
java.lang.String |
getName()
Name accessor.
|
boolean |
isConfigMenuEnabled()
Determines whether the configuration menu is currently enabled.
|
static void |
load()
Does nothing but loading the native library.
|
boolean |
onError(ResourceString location,
ResourceString message)
Handler called when an error occurs.
|
addElement
getCli, getErrorStream, getHelp, getKeyword, getOutputStream, getShell
createdFromNative, dontFinalize, finalize, forget, getbDoFinalize, getNativeRef, getObject, remember
public Cli(java.lang.String J_Name, Help CLI_Help)
J_Name
- Name of the CLI.CLI_Help
- Help of the CLI.public static void load()
public static final int findFromName(java.util.Collection<Cli> J_CliList, java.lang.String J_RegExp)
J_CliList
- Output CLI list.J_RegExp
- Regular expression describing the CLI name searched.public final java.lang.String getName()
public final Menu addMenu(Menu CLI_Menu)
CLI_Menu
- Menu to add to the CLI.public final Menu getMenu(java.lang.String J_MenuName)
J_MenuName
- Menu name.public final boolean addCommentLinePattern(java.lang.String J_Start)
J_Start
- Comment line starter pattern.public boolean onError(ResourceString location, ResourceString message)
location
- Location of the error.message
- Message of the error.public boolean isConfigMenuEnabled()
public final void enableConfigMenu(boolean B_Enable)
B_Enable
- Enable or disable the configuration menu.