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 Summary
Modifier and TypeFieldDescriptionprotected ModifiableMap.Producer
protected UITree
protected static final int
protected String
protected final CLISynchronizer
protected CLIWindowSupport
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClose
(Command ok) void
checkClose
(Runnable ok) protected void
void
dispose()
protected void
protected void
Determines the GUI component of this GUI context.getMenu()
getPanel()
Determines the panel of this GUI context.Returns theRegistry
which is linked with this instance.Determines the window of this GUI context.Determines the workbench of this GUI context.final void
hide()
void
initDecorator
(Panel decorator) final Panel
initialize
(Panel ws, Map params) resolve()
void
Push the given string on the content of the panel.void
setContent
(ComponentWrapper content) void
setCursor
(int cursor) void
final void
toString()
-
Field Details
-
ws
-
mapProducer
-
sync
-
panelId
-
MIN_UNUSED_ACTION
protected static final int MIN_UNUSED_ACTION- See Also:
-
-
Constructor Details
-
CLIPanelSupport
-
CLIPanelSupport
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacePanel
-
initDecorator
- Specified by:
initDecorator
in interfacePanel
-
getDecorator
- Specified by:
getDecorator
in interfacePanel
-
getUIPropertyMap
- Specified by:
getUIPropertyMap
in interfacePanel
-
configure
-
getPanelId
- Specified by:
getPanelId
in interfacePanel
-
getWorkbench
Description copied from interface:Context
Determines the workbench of this GUI context.- Specified by:
getWorkbench
in interfaceContext
- Returns:
- this context's workbench
-
getWindow
Description copied from interface:Context
Determines the window of this GUI context. -
getPanel
Description copied from interface:Context
Determines the panel of this GUI context. -
getComponent
Description copied from interface:Context
Determines the GUI component of this GUI context.- Specified by:
getComponent
in interfaceContext
- Returns:
- this context's component
-
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-
resolve
-
run
- Specified by:
run
in interfaceSynchronizer.Callback
-
setMenu
-
getMenu
-
setContent
- Specified by:
setContent
in interfacePanel
-
getContent
- Specified by:
getContent
in interfacePanel
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
show
-
hide
public final void hide() -
disposeImpl
protected void disposeImpl() -
checkClose
-
executeCheckClose
-
checkClose
- Specified by:
checkClose
in interfacePanel
-
toString
-
setCursor
public void setCursor(int cursor) -
run
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 interfaceExecutableComponent
- Parameters:
cmd
-
-