Module cli

Class CLIPanelSupport

java.lang.Object
de.grogra.cli.ui.CLIPanelSupport
All Implemented Interfaces:
ExecutableComponent, RegistryContext, Context, Panel, Synchronizer.Callback, Disposable
Direct Known Subclasses:
CLIChartPanelSupport, CLIConsolePanel, CLITextEditor, CLIWindowSupport

public class CLIPanelSupport extends Object implements Panel, RegistryContext, ExecutableComponent, Synchronizer.Callback
  • Field Details

  • Constructor Details

    • CLIPanelSupport

      public CLIPanelSupport(CLIRootPane p)
    • CLIPanelSupport

      public CLIPanelSupport(Disposable p)
  • Method Details

    • initialize

      public final Panel initialize(Panel ws, Map params)
      Specified by:
      initialize in interface Panel
    • initDecorator

      public void initDecorator(Panel decorator)
      Specified by:
      initDecorator in interface Panel
    • getDecorator

      public Panel getDecorator()
      Specified by:
      getDecorator in interface Panel
    • getUIPropertyMap

      public Map getUIPropertyMap()
      Specified by:
      getUIPropertyMap in interface Panel
    • configure

      protected void configure(Map params)
    • getPanelId

      public String getPanelId()
      Specified by:
      getPanelId in interface Panel
    • getWorkbench

      public Workbench getWorkbench()
      Description copied from interface: Context
      Determines the workbench of this GUI context.
      Specified by:
      getWorkbench in interface Context
      Returns:
      this context's workbench
    • getWindow

      public Window getWindow()
      Description copied from interface: Context
      Determines the window of this GUI context.
      Specified by:
      getWindow in interface Context
      Returns:
      this context's window
    • getPanel

      public Panel getPanel()
      Description copied from interface: Context
      Determines the panel of this GUI context.
      Specified by:
      getPanel in interface Context
      Returns:
      this context's panel
    • getComponent

      public Object getComponent()
      Description copied from interface: Context
      Determines the GUI component of this GUI context.
      Specified by:
      getComponent in interface Context
      Returns:
      this context's component
    • getRegistry

      public Registry getRegistry()
      Description copied from interface: RegistryContext
      Returns the Registry which is linked with this instance.
      Specified by:
      getRegistry in interface RegistryContext
      Returns:
      the registry linked with this instance
    • resolve

      public Panel resolve()
      Specified by:
      resolve in interface Panel
    • run

      public Object run(int action, int iarg, Object arg, Object arg2)
      Specified by:
      run in interface Synchronizer.Callback
    • setMenu

      public void setMenu(UITree t)
      Specified by:
      setMenu in interface Panel
    • getMenu

      public UITree getMenu()
      Specified by:
      getMenu in interface Panel
    • setContent

      public void setContent(ComponentWrapper content)
      Specified by:
      setContent in interface Panel
    • getContent

      public ComponentWrapper getContent()
      Specified by:
      getContent in interface Panel
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
    • show

      public final void show(boolean moveToFront, Panel keepInFront)
      Specified by:
      show in interface Panel
    • hide

      public final void hide()
    • disposeImpl

      protected void disposeImpl()
    • checkClose

      public void checkClose(Runnable ok)
    • executeCheckClose

      protected void executeCheckClose(Runnable ok)
    • checkClose

      public void checkClose(Command ok)
      Specified by:
      checkClose in interface Panel
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setCursor

      public void setCursor(int cursor)
      Specified by:
      setCursor in interface Panel
    • run

      public void run(String cmd, Object info)
      Push the given string on the content of the panel. Some CLI Components can implement a run (String) method to execute a specific command.
      Specified by:
      run in interface ExecutableComponent
      Parameters:
      cmd -