java.lang.Object
de.grogra.cli.ui.CLIComponent
de.grogra.cli.ui.CLIContainer
de.grogra.cli.ui.CLIRootPane
de.grogra.cli.ui.CLITextComponent
- All Implemented Interfaces:
ExecutableComponent
,ICLIPanel
,ComponentWrapper
,Disposable
A simple text panel that can take string data as input invalid input: '&' output.
It also "log" all output data of a workbench as a queue that can be displayed in the terminal when
the workbench is selected
-
Field Summary
Fields inherited from class de.grogra.cli.ui.CLIRootPane
support
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This additional breakline method smooth the break lines in from readboolean
The component read some String - Add an object to the log queue Return true if something was added to the queuevoid
An interface to define ComponentWrapper whose component can be run.void
show()
write()
The component print down its content Push one line from the log queue to be printedObject[]
writeAll()
Created to use the Console in the APIMethods inherited from class de.grogra.cli.ui.CLIRootPane
dispose, getContentPane, getSupport, initialize, setContentPane, setMenu
Methods inherited from class de.grogra.cli.ui.CLIContainer
add, add, add, add, addImpl, countComponents, getComponent, getComponent, remove, remove
Methods inherited from class de.grogra.cli.ui.CLIComponent
getContent, getName, getParent, getRootParent, getTreeLock, getVisible, isShowable, setContent, setName, setShowable, setVisible
-
Constructor Details
-
CLITextComponent
public CLITextComponent()
-
-
Method Details
-
write
The component print down its content Push one line from the log queue to be printed -
writeAll
Created to use the Console in the API- Returns:
-
read
The component read some String - Add an object to the log queue Return true if something was added to the queue -
breakLine
public void breakLine()This additional breakline method smooth the break lines in from read -
show
public void show()- Overrides:
show
in classCLIContainer
-
run
Description copied from interface:ExecutableComponent
An interface to define ComponentWrapper whose component can be run.- Specified by:
run
in interfaceExecutableComponent
- Overrides:
run
in classCLIContainer
-