Package jadex.base.gui.componentviewer
Class AbstractComponentViewerPanel
- java.lang.Object
-
- jadex.base.gui.componentviewer.AbstractComponentViewerPanel
-
- All Implemented Interfaces:
IAbstractViewerPanel
,IComponentViewerPanel
,IPropertiesProvider
- Direct Known Subclasses:
BotGuiF2
,BotGuiF3
,BotGuiF4
,CleanerViewerPanel
,CleanerViewerPanel
,CustomerViewerPanel
,CustomerViewerPanel
,DaemonViewerPanel
,DefaultComponentServiceViewerPanel
,GuiViewerPanel
,GuiViewerPanel
,HelplineViewerPanel
,HelplineViewerPanel
public abstract class AbstractComponentViewerPanel extends java.lang.Object implements IComponentViewerPanel
Simple default viewer panel.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
component
The component.protected IControlCenter
jcc
The jcc.-
Fields inherited from interface jadex.base.gui.componentviewer.IAbstractViewerPanel
PROPERTY_VIEWERCLASS
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentViewerPanel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IExternalAccess
getActiveComponent()
Get the component.abstract javax.swing.JComponent
getComponent()
The component to be shown in the gui.java.lang.String
getId()
The id used for mapping properties.IControlCenter
getJCC()
Get the jcc.IFuture<Properties>
getProperties()
Advices the panel provide its setting as properties (if any).IFuture<java.lang.Void>
init(IControlCenter jcc, IExternalAccess component)
Called once to initialize the panel.IFuture<java.lang.Void>
setProperties(Properties ps)
Advices the the panel to restore its properties from the argumentIFuture<java.lang.Void>
shutdown()
Informs the panel that it should stop all its computation
-
-
-
Field Detail
-
jcc
protected IControlCenter jcc
The jcc.
-
component
protected IExternalAccess component
The component.
-
-
Method Detail
-
init
public IFuture<java.lang.Void> init(IControlCenter jcc, IExternalAccess component)
Called once to initialize the panel. Called on the swing thread.- Specified by:
init
in interfaceIComponentViewerPanel
- Parameters:
jcc
- The jcc.component
- The component.
-
shutdown
public IFuture<java.lang.Void> shutdown()
Informs the panel that it should stop all its computation- Specified by:
shutdown
in interfaceIAbstractViewerPanel
-
getId
public java.lang.String getId()
The id used for mapping properties.- Specified by:
getId
in interfaceIAbstractViewerPanel
-
getComponent
public abstract javax.swing.JComponent getComponent()
The component to be shown in the gui.- Specified by:
getComponent
in interfaceIAbstractViewerPanel
- Returns:
- The component to be displayed.
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties ps)
Advices the the panel to restore its properties from the argument- Specified by:
setProperties
in interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Advices the panel provide its setting as properties (if any). This is done on project close or save.- Specified by:
getProperties
in interfaceIPropertiesProvider
-
getJCC
public IControlCenter getJCC()
Get the jcc.- Returns:
- the jcc.
-
getActiveComponent
public IExternalAccess getActiveComponent()
Get the component.
-
-