public abstract class AbstractServiceViewerPanel<T> extends java.lang.Object implements IServiceViewerPanel
Modifier and Type | Field and Description |
---|---|
protected IControlCenter |
jcc
The jcc.
|
protected T |
service
The service.
|
protected boolean |
shutdown
True, after shutdown.
|
PROPERTY_VIEWERCLASS
Constructor and Description |
---|
AbstractServiceViewerPanel() |
Modifier and Type | Method and Description |
---|---|
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.
|
jadex.commons.future.IFuture<jadex.commons.Properties> |
getProperties()
Advices the panel provide its setting as properties (if any).
|
T |
getService()
Get the service.
|
jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> |
getServiceAccess()
Get the external access of the component providing the service.
|
jadex.commons.future.IFuture<java.lang.Void> |
init(IControlCenter jcc,
jadex.bridge.service.IService service)
Called once to initialize the panel.
|
boolean |
isLocal()
Test if the service is a local service.
|
boolean |
isShutdown()
Test if the panel is already shut down.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties ps)
Advices the the panel to restore its properties from the argument
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Informs the panel that it should stop all its computation
|
protected IControlCenter jcc
protected T service
protected boolean shutdown
public jadex.commons.future.IFuture<java.lang.Void> init(IControlCenter jcc, jadex.bridge.service.IService service)
init
in interface IServiceViewerPanel
jcc
- The jcc.component
- The component.public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface IAbstractViewerPanel
public boolean isShutdown()
public java.lang.String getId()
getId
in interface IAbstractViewerPanel
public abstract javax.swing.JComponent getComponent()
getComponent
in interface IAbstractViewerPanel
public jadex.commons.future.IFuture<java.lang.Void> setProperties(jadex.commons.Properties ps)
setProperties
in interface jadex.commons.IPropertiesProvider
public jadex.commons.future.IFuture<jadex.commons.Properties> getProperties()
getProperties
in interface jadex.commons.IPropertiesProvider
public IControlCenter getJCC()
public boolean isLocal()
public jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> getServiceAccess()
public T getService()