Module cli

Class CLITextComponent

All Implemented Interfaces:
ExecutableComponent, ICLIPanel, ComponentWrapper, Disposable

public class CLITextComponent extends CLIRootPane
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
  • Constructor Details

    • CLITextComponent

      public CLITextComponent()
  • Method Details

    • write

      public String write()
      The component print down its content Push one line from the log queue to be printed
    • writeAll

      public Object[] writeAll()
      Created to use the Console in the API
      Returns:
    • read

      public boolean read(String e)
      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 class CLIContainer
    • run

      public void run(String cmd, Object info)
      Description copied from interface: ExecutableComponent
      An interface to define ComponentWrapper whose component can be run.
      Specified by:
      run in interface ExecutableComponent
      Overrides:
      run in class CLIContainer