|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.DefaultLSConsoleModel
public class DefaultLSConsoleModel
This class provides default implementation of the LSConsoleModel interface.
| Constructor Summary | |
|---|---|
DefaultLSConsoleModel()
Creates a new instance of DefaultLSConsoleModel. |
|
| Method Summary | |
|---|---|
void |
addLSConsoleListener(LSConsoleListener l)
Registers the specified listener for receiving event messages. |
void |
addToCommandHistory(java.lang.String command)
Adds the specified command to command history. |
void |
browseCommandHistoryDown()
Browses the command history one line down. |
void |
browseCommandHistoryFirst()
Browses to the first line of the command history. |
void |
browseCommandHistoryLast()
Browses to the last line of the command history. |
void |
browseCommandHistoryUp()
Browses the command history one line up. |
void |
clearCommandHistory()
Clears the complete/multisession command history. |
void |
clearSessionHistory()
Clears the session history. |
void |
execCommand()
Executes the command specified in the command line. |
java.lang.String[] |
getCommandHistory()
Gets the complete command history, excluding blank lines and comments. |
int |
getCommandHistorySize()
Determines the maximum number of lines to be kept in the command history. |
java.lang.String |
getCommandLineText()
Gets the text in the command line. |
java.lang.String[] |
getCommandList()
Gets a list of all LSCP commands. |
java.lang.String |
getLastExecutedCommand()
Gets the last executed command. |
java.lang.String[] |
getSessionHistory()
Gets the command history of the current session, including blank lines and comments. |
void |
removeLSConsoleListener(LSConsoleListener l)
Removes the specified listener. |
java.lang.String[] |
searchCommandHistory()
Searches the command history for commands containing the string returned by getCommandLineText(). |
java.lang.String[] |
searchCommandHistory(java.lang.String substring)
Searches the command history for commands containing substring. |
java.lang.String[] |
searchCommandList()
Searches the LSCP command list for commands containing the string returned by getCommandLineText(). |
java.lang.String[] |
searchCommandList(java.lang.String substring)
Searches the LSCP command list for commands containing substring. |
void |
setCommandHistorySize(int size)
Sets the maximum number of lines to be kept in the command history. |
void |
setCommandLineText(java.lang.String cmdLine)
Sets the text in the command line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLSConsoleModel()
DefaultLSConsoleModel.
| Method Detail |
|---|
public void addLSConsoleListener(LSConsoleListener l)
addLSConsoleListener in interface LSConsoleModell - The LSConsoleListener to register.public void removeLSConsoleListener(LSConsoleListener l)
removeLSConsoleListener in interface LSConsoleModell - The LSConsoleListener to remove.public void execCommand()
execCommand in interface LSConsoleModelpublic java.lang.String getLastExecutedCommand()
getLastExecutedCommand in interface LSConsoleModelpublic void setCommandLineText(java.lang.String cmdLine)
setCommandLineText in interface LSConsoleModelcmdLine - The new command line text.public java.lang.String getCommandLineText()
getCommandLineText in interface LSConsoleModelpublic java.lang.String[] getSessionHistory()
getSessionHistory in interface LSConsoleModelpublic void clearSessionHistory()
clearSessionHistory in interface LSConsoleModelgetSessionHistory()public void addToCommandHistory(java.lang.String command)
command to command history.
addToCommandHistory in interface LSConsoleModelcommand - The command to be added to command history.public java.lang.String[] getCommandHistory()
getCommandHistory in interface LSConsoleModelpublic void clearCommandHistory()
clearCommandHistory in interface LSConsoleModelgetCommandHistory()public int getCommandHistorySize()
getCommandHistorySize in interface LSConsoleModelpublic void setCommandHistorySize(int size)
setCommandHistorySize in interface LSConsoleModelsize - Determines the maximum number of lines to be kept in the command history.public java.lang.String[] getCommandList()
getCommandList in interface LSConsoleModelpublic void browseCommandHistoryUp()
browseCommandHistoryUp in interface LSConsoleModelpublic void browseCommandHistoryDown()
browseCommandHistoryDown in interface LSConsoleModelpublic void browseCommandHistoryFirst()
browseCommandHistoryFirst in interface LSConsoleModelpublic void browseCommandHistoryLast()
browseCommandHistoryLast in interface LSConsoleModelpublic java.lang.String[] searchCommandHistory()
getCommandLineText().
searchCommandHistory in interface LSConsoleModelgetCommandLineText().getCommandHistory()public java.lang.String[] searchCommandHistory(java.lang.String substring)
substring.
searchCommandHistory in interface LSConsoleModelsubstring - The substring to be used to perform the search.
substring.getCommandList()public java.lang.String[] searchCommandList()
getCommandLineText().
searchCommandList in interface LSConsoleModelgetCommandLineText().getCommandList()public java.lang.String[] searchCommandList(java.lang.String substring)
substring.
searchCommandList in interface LSConsoleModelsubstring - The substring to be used to perform the search.
substring.getCommandList()
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||