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 ObjectCardLayout
cards
The detail layout.protected ComponentTreePanel
comptree
The agent tree table.protected javax.swing.JPanel
detail
The detail panel.protected static javax.swing.UIDefaults
icons
The image icons.protected java.util.Map<java.lang.Object,IAbstractViewerPanel>
panels
The service viewer panels.protected Properties
props
Loaded properties.protected javax.swing.JSplitPane
split
The split panel.protected java.util.Map<java.lang.Object,IFuture<java.lang.Boolean>>
viewables
The 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 void
createPanel(java.lang.Class<?> clazz, IExternalAccess exta, IActiveComponentTreeNode node)
javax.swing.JComponent[]
createToolBar()
Create tool bar.javax.swing.JComponent
createView()
Create main panel.java.lang.String
getName()
Return the unique name of this plugin.IFuture<Properties>
getProperties()
Return properties to be saved in project.javax.swing.Icon
getToolIcon(boolean selected)
Return the icon representing this plugin.protected boolean
isNodeViewable(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:IControlCenterPlugin
Return 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:IControlCenterPlugin
Return 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:
createToolBar
in classAbstractJCCPlugin
- Returns:
- The tool bar.
-
createView
public javax.swing.JComponent createView()
Create main panel.- Overrides:
createView
in 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:
shutdown
in interfaceIControlCenterPlugin
- Overrides:
shutdown
in classAbstractJCCPlugin
-
getProperties
public IFuture<Properties> getProperties()
Return properties to be saved in project.- Specified by:
getProperties
in interfaceIPropertiesProvider
- Overrides:
getProperties
in classAbstractJCCPlugin
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties ps)
Set properties loaded from project.- Specified by:
setProperties
in interfaceIPropertiesProvider
- Overrides:
setProperties
in classAbstractJCCPlugin
-
storeCurrentPanelSettings
protected IFuture<Properties> storeCurrentPanelSettings()
Store settings of current panel.
-
-