Package jadex.tools.simcenter
Class SimServiceViewerPanel
- java.lang.Object
-
- jadex.base.gui.componentviewer.AbstractServiceViewerPanel<ISimulationService>
-
- jadex.tools.simcenter.SimServiceViewerPanel
-
- All Implemented Interfaces:
IAbstractViewerPanel
,IServiceViewerPanel
,IPropertiesProvider
public class SimServiceViewerPanel extends AbstractServiceViewerPanel<ISimulationService>
Panel for the daemon view.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimCenterPanel
panel
The panel.-
Fields inherited from class jadex.base.gui.componentviewer.AbstractServiceViewerPanel
jcc, service, shutdown
-
Fields inherited from interface jadex.base.gui.componentviewer.IAbstractViewerPanel
PROPERTY_VIEWERCLASS
-
-
Constructor Summary
Constructors Constructor Description SimServiceViewerPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getComponent()
The component to be shown in the gui.IFuture<Properties>
getProperties()
Advices the panel provide its setting as properties (if any).IFuture<java.lang.Void>
init(IControlCenter jcc, IService service)
Called once to initialize the panel.IFuture<java.lang.Void>
setProperties(Properties props)
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-
Methods inherited from class jadex.base.gui.componentviewer.AbstractServiceViewerPanel
getId, getJCC, getService, getServiceAccess, isLocal, isShutdown
-
-
-
-
Field Detail
-
panel
protected SimCenterPanel panel
The panel.
-
-
Method Detail
-
init
public IFuture<java.lang.Void> init(IControlCenter jcc, IService service)
Called once to initialize the panel. Called on the swing thread.- Specified by:
init
in interfaceIServiceViewerPanel
- Overrides:
init
in classAbstractServiceViewerPanel<ISimulationService>
- 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
- Overrides:
shutdown
in classAbstractServiceViewerPanel<ISimulationService>
-
getComponent
public javax.swing.JComponent getComponent()
The component to be shown in the gui.- Specified by:
getComponent
in interfaceIAbstractViewerPanel
- Specified by:
getComponent
in classAbstractServiceViewerPanel<ISimulationService>
- Returns:
- The component to be displayed.
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties props)
Advices the the panel to restore its properties from the argument- Specified by:
setProperties
in interfaceIPropertiesProvider
- Overrides:
setProperties
in classAbstractServiceViewerPanel<ISimulationService>
-
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
- Overrides:
getProperties
in classAbstractServiceViewerPanel<ISimulationService>
-
-