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
FieldsModifier and TypeFieldDescriptionprotected ModifiableMap.Producerprotected UITreeprotected static final intprotected Stringprotected final CLISynchronizerprotected CLIWindowSupportFields 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 TypeMethodDescriptionvoidcheckClose(Command ok) voidcheckClose(Runnable ok) protected voidvoiddispose()protected voidprotected voidDetermines the GUI component of this GUI context.getMenu()getPanel()Determines the panel of this GUI context.Returns theRegistrywhich is linked with this instance.Determines the window of this GUI context.Determines the workbench of this GUI context.final voidhide()voidinitDecorator(Panel decorator) final Panelinitialize(Panel ws, Map params) resolve()voidPush the given string on the content of the panel.voidsetContent(ComponentWrapper content) voidsetCursor(int cursor) voidfinal voidtoString()
-
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:
initializein interfacePanel
-
initDecorator
- Specified by:
initDecoratorin interfacePanel
-
getDecorator
- Specified by:
getDecoratorin interfacePanel
-
getUIPropertyMap
- Specified by:
getUIPropertyMapin interfacePanel
-
configure
-
getPanelId
- Specified by:
getPanelIdin interfacePanel
-
getWorkbench
Description copied from interface:ContextDetermines the workbench of this GUI context.- Specified by:
getWorkbenchin interfaceContext- Returns:
- this context's workbench
-
getWindow
Description copied from interface:ContextDetermines the window of this GUI context. -
getPanel
Description copied from interface:ContextDetermines the panel of this GUI context. -
getComponent
Description copied from interface:ContextDetermines the GUI component of this GUI context.- Specified by:
getComponentin interfaceContext- Returns:
- this context's component
-
getRegistry
Description copied from interface:RegistryContextReturns theRegistrywhich is linked with this instance.- Specified by:
getRegistryin interfaceRegistryContext- Returns:
- the registry linked with this instance
-
resolve
-
run
- Specified by:
runin interfaceSynchronizer.Callback
-
setMenu
-
getMenu
-
setContent
- Specified by:
setContentin interfacePanel
-
getContent
- Specified by:
getContentin interfacePanel
-
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-
show
-
hide
public final void hide() -
disposeImpl
protected void disposeImpl() -
checkClose
-
executeCheckClose
-
checkClose
- Specified by:
checkClosein 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:
runin interfaceExecutableComponent- Parameters:
cmd-
-