Package jadex.base.gui.componentviewer
Class ComponentViewerPlugin
- java.lang.Object
-
- jadex.base.gui.plugin.AbstractJCCPlugin
-
- jadex.base.gui.componentviewer.ComponentViewerPlugin
-
- All Implemented Interfaces:
IControlCenterPlugin,IPropertiesProvider
public class ComponentViewerPlugin extends AbstractJCCPlugin
The service viewer allows to introspect details of services.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
AbstractJCCPlugin.ShowRemoteControlCenterHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectCardLayoutcardsThe detail layout.protected ComponentTreePanelcomptreeThe agent tree table.protected javax.swing.JPaneldetailThe detail panel.protected static javax.swing.UIDefaultsiconsThe image icons.protected java.util.Map<java.lang.Object,IAbstractViewerPanel>panelsThe service viewer panels.protected PropertiespropsLoaded properties.protected javax.swing.JSplitPanesplitThe split panel.protected java.util.Map<java.lang.Object,IFuture<java.lang.Boolean>>viewablesThe active component node viewable state.-
Fields inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
jcc
-
-
Constructor Summary
Constructors Constructor Description ComponentViewerPlugin()Create a new plugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreatePanel(java.lang.Class<?> clazz, IExternalAccess exta, IActiveComponentTreeNode node)javax.swing.JComponent[]createToolBar()Create tool bar.javax.swing.JComponentcreateView()Create main panel.java.lang.StringgetName()Return the unique name of this plugin.IFuture<Properties>getProperties()Return properties to be saved in project.javax.swing.IcongetToolIcon(boolean selected)Return the icon representing this plugin.protected booleanisNodeViewable(ISwingTreeNode node)Test if a node is viewable.IFuture<java.lang.Void>setProperties(Properties ps)Set properties loaded from project.IFuture<java.lang.Void>shutdown()Shutdown the plugin.protected IFuture<Properties>storeCurrentPanelSettings()Store settings of current panel.-
Methods inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
createMenuBar, getClassLoader, getJCC, getMenuBar, getToolBar, getView, init, isLazy, pushPlatformSettings
-
-
-
-
Field Detail
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
split
protected javax.swing.JSplitPane split
The split panel.
-
comptree
protected ComponentTreePanel comptree
The agent tree table.
-
detail
protected javax.swing.JPanel detail
The detail panel.
-
cards
protected ObjectCardLayout cards
The detail layout.
-
panels
protected java.util.Map<java.lang.Object,IAbstractViewerPanel> panels
The service viewer panels.
-
props
protected Properties props
Loaded properties.
-
viewables
protected java.util.Map<java.lang.Object,IFuture<java.lang.Boolean>> viewables
The active component node viewable state.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IControlCenterPluginReturn the unique name of this plugin. This method may be called before init(). Used e.g. to store properties of each plugin.- Returns:
- The plugin name
- See Also:
jadex.tools.common.plugin.IControlCenterPlugin#getName()
-
getToolIcon
public javax.swing.Icon getToolIcon(boolean selected)
Description copied from interface:IControlCenterPluginReturn the icon representing this plugin. This method may be called before init().- Returns:
- The icon of plugin
- See Also:
jadex.tools.common.plugin.IControlCenterPlugin#getToolIcon()
-
createToolBar
public javax.swing.JComponent[] createToolBar()
Create tool bar.- Overrides:
createToolBarin classAbstractJCCPlugin- Returns:
- The tool bar.
-
createView
public javax.swing.JComponent createView()
Create main panel.- Overrides:
createViewin classAbstractJCCPlugin- Returns:
- The main panel.
-
createPanel
protected void createPanel(java.lang.Class<?> clazz, IExternalAccess exta, IActiveComponentTreeNode node)
-
isNodeViewable
protected boolean isNodeViewable(ISwingTreeNode node)
Test if a node is viewable.- Parameters:
node- The node.- Returns:
- True, if the node is viewable.
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the plugin.- Specified by:
shutdownin interfaceIControlCenterPlugin- Overrides:
shutdownin classAbstractJCCPlugin
-
getProperties
public IFuture<Properties> getProperties()
Return properties to be saved in project.- Specified by:
getPropertiesin interfaceIPropertiesProvider- Overrides:
getPropertiesin classAbstractJCCPlugin
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties ps)
Set properties loaded from project.- Specified by:
setPropertiesin interfaceIPropertiesProvider- Overrides:
setPropertiesin classAbstractJCCPlugin
-
storeCurrentPanelSettings
protected IFuture<Properties> storeCurrentPanelSettings()
Store settings of current panel.
-
-