Package jadex.base.gui.componentviewer
Class AbstractServiceViewerPanel<T>
- java.lang.Object
- 
- jadex.base.gui.componentviewer.AbstractServiceViewerPanel<T>
 
- 
- All Implemented Interfaces:
- IAbstractViewerPanel,- IServiceViewerPanel,- IPropertiesProvider
 - Direct Known Subclasses:
- ChatPanel,- SimServiceViewerPanel
 
 public abstract class AbstractServiceViewerPanel<T> extends java.lang.Object implements IServiceViewerPanel Simple default viewer panel.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IControlCenterjccThe jcc.protected TserviceThe service.protected booleanshutdownTrue, after shutdown.- 
Fields inherited from interface jadex.base.gui.componentviewer.IAbstractViewerPanelPROPERTY_VIEWERCLASS
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractServiceViewerPanel()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract javax.swing.JComponentgetComponent()The component to be shown in the gui.java.lang.StringgetId()The id used for mapping properties.IControlCentergetJCC()Get the jcc.IFuture<Properties>getProperties()Advices the panel provide its setting as properties (if any).TgetService()Get the service.IFuture<IExternalAccess>getServiceAccess()Get the external access of the component providing the service.IFuture<java.lang.Void>init(IControlCenter jcc, IService service)Called once to initialize the panel.booleanisLocal()Test if the service is a local service.booleanisShutdown()Test if the panel is already shut down.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- 
jccprotected IControlCenter jcc The jcc.
 - 
serviceprotected T service The service.
 - 
shutdownprotected boolean shutdown True, after shutdown.
 
- 
 - 
Method Detail- 
initpublic IFuture<java.lang.Void> init(IControlCenter jcc, IService service) Called once to initialize the panel. Called on the swing thread.- Specified by:
- initin interface- IServiceViewerPanel
- Parameters:
- jcc- The jcc.
- component- The component.
 
 - 
shutdownpublic IFuture<java.lang.Void> shutdown() Informs the panel that it should stop all its computation- Specified by:
- shutdownin interface- IAbstractViewerPanel
 
 - 
isShutdownpublic boolean isShutdown() Test if the panel is already shut down.
 - 
getIdpublic java.lang.String getId() The id used for mapping properties.- Specified by:
- getIdin interface- IAbstractViewerPanel
 
 - 
getComponentpublic abstract javax.swing.JComponent getComponent() The component to be shown in the gui.- Specified by:
- getComponentin interface- IAbstractViewerPanel
- Returns:
- The component to be displayed.
 
 - 
setPropertiespublic IFuture<java.lang.Void> setProperties(Properties ps) Advices the the panel to restore its properties from the argument- Specified by:
- setPropertiesin interface- IPropertiesProvider
 
 - 
getPropertiespublic IFuture<Properties> getProperties() Advices the panel provide its setting as properties (if any). This is done on project close or save.- Specified by:
- getPropertiesin interface- IPropertiesProvider
 
 - 
getJCCpublic IControlCenter getJCC() Get the jcc.- Returns:
- the jcc.
 
 - 
isLocalpublic boolean isLocal() Test if the service is a local service.
 - 
getServiceAccesspublic IFuture<IExternalAccess> getServiceAccess() Get the external access of the component providing the service. Might refer to a different platform than jcc access abnd platform access!
 - 
getServicepublic T getService() Get the service.
 
- 
 
-