Class AbstractRemoteCommandActionWithGUI
- java.lang.Object
-
- adams.terminal.menu.remotecommand.AbstractRemoteCommandAction
-
- adams.terminal.menu.remotecommand.AbstractRemoteCommandActionWithGUI
-
- All Implemented Interfaces:
adams.scripting.processor.RemoteCommandProcessorHandler
,Comparable<AbstractRemoteCommandAction>
- Direct Known Subclasses:
AbstractRemoteFlowCommandAction
,RemoteLogging
,StartListening
public abstract class AbstractRemoteCommandActionWithGUI extends AbstractRemoteCommandAction
Ancestor for actions that display a GUI.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.terminal.menu.remotecommand.AbstractRemoteCommandAction
m_CommandProcessor, m_Owner
-
-
Constructor Summary
Constructors Constructor Description AbstractRemoteCommandActionWithGUI()
Initializes the action with no owner.AbstractRemoteCommandActionWithGUI(adams.terminal.application.AbstractTerminalApplication owner)
Initializes the action.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.googlecode.lanterna.gui2.Panel
createPanel()
Creates the panel to display.protected void
doRun(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
Actual execution.-
Methods inherited from class adams.terminal.menu.remotecommand.AbstractRemoteCommandAction
compareTo, configureEngine, equals, getCommandProcessor, getLogTextBox, getOwner, getRunnable, getTitle, initialize, logError, logError, logMessage, postRun, preRun, sendCommand, sendCommandWithReponse, setCommandProcessor, setOwner
-
-
-
-
Constructor Detail
-
AbstractRemoteCommandActionWithGUI
public AbstractRemoteCommandActionWithGUI()
Initializes the action with no owner.
-
AbstractRemoteCommandActionWithGUI
public AbstractRemoteCommandActionWithGUI(adams.terminal.application.AbstractTerminalApplication owner)
Initializes the action.- Parameters:
owner
- the owning application
-
-
Method Detail
-
createPanel
protected abstract com.googlecode.lanterna.gui2.Panel createPanel()
Creates the panel to display.- Returns:
- the panel
-
doRun
protected void doRun(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
Actual execution.- Specified by:
doRun
in classAbstractRemoteCommandAction
- Parameters:
context
- the context to use
-
-