java.lang.Object
de.grogra.cli.ui.CLIPanelSupport
de.grogra.cli.ui.CLIConsolePanel
- All Implemented Interfaces:
ExecutableComponent
,RegistryContext
,Console
,Context
,Panel
,Synchronizer.Callback
,Disposable
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.pf.ui.Console
Console.ConsoleWriter
-
Field Summary
Fields inherited from class de.grogra.cli.ui.CLIPanelSupport
mapProducer, menu, MIN_UNUSED_ACTION, panelId, sync, ws
Fields inherited from interface de.grogra.pf.ui.Console
USE_LAF_COLOR
Fields inherited from interface de.grogra.pf.ui.Panel
DEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the console.protected void
void
Enterstext
as if the user had typed this text.de.grogra.cli.ui.CLIConsolePanel.ConsoleWriterCLI
getErr()
This method returns aConsoleWriter
which is used to write to the console.getIn()
This method returns aReader
which can be used to obtain the textual input from the user.de.grogra.cli.ui.CLIConsolePanel.ConsoleWriterCLI
getOut()
This method returns aConsoleWriter
which is used to write to the console.void
setContent
(ComponentWrapper content) void
Methods inherited from class de.grogra.cli.ui.CLIPanelSupport
checkClose, checkClose, configure, dispose, executeCheckClose, getComponent, getDecorator, getMenu, getPanel, getPanelId, getRegistry, getUIPropertyMap, getWindow, getWorkbench, hide, initDecorator, initialize, resolve, run, run, setCursor, setMenu, show, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.pf.ui.Context
getComponent, getPanel, getWindow, getWorkbench
Methods inherited from interface de.grogra.util.Disposable
dispose
Methods inherited from interface de.grogra.pf.ui.Panel
checkClose, getDecorator, getMenu, getPanelId, getUIPropertyMap, initDecorator, initialize, resolve, setCursor, setMenu, show
-
Constructor Details
-
CLIConsolePanel
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfacePanel
- Overrides:
getContent
in classCLIPanelSupport
-
setContent
- Specified by:
setContent
in interfacePanel
- Overrides:
setContent
in classCLIPanelSupport
-
disposeImpl
protected void disposeImpl()- Overrides:
disposeImpl
in classCLIPanelSupport
-
enter
Description copied from interface:Console
Enterstext
as if the user had typed this text. -
clear
public void clear()Description copied from interface:Console
Clears the console. -
getIn
Description copied from interface:Console
This method returns aReader
which can be used to obtain the textual input from the user. -
getOut
public de.grogra.cli.ui.CLIConsolePanel.ConsoleWriterCLI getOut()Description copied from interface:Console
This method returns aConsoleWriter
which is used to write to the console. It should be used for normal messages. -
getErr
public de.grogra.cli.ui.CLIConsolePanel.ConsoleWriterCLI getErr()Description copied from interface:Console
This method returns aConsoleWriter
which is used to write to the console. It should be used for error messages. Implementations should use a different color to highlight the characters which are written through this writer. -
setNameCompletion
- Specified by:
setNameCompletion
in interfaceConsole
-