Package jadex.base.gui.plugin
Class AbstractJCCPlugin
- java.lang.Object
-
- jadex.base.gui.plugin.AbstractJCCPlugin
-
- All Implemented Interfaces:
IControlCenterPlugin
,IPropertiesProvider
- Direct Known Subclasses:
AbstractGenericPlugin
,AppStorePlugin
,ComanalyzerPlugin
,ComponentViewerPlugin
,ConversationPlugin
,DebuggerPlugin
,EmailClientPlugin
,FileTransferPlugin
,StarterPlugin
,TestCenterPlugin
public abstract class AbstractJCCPlugin extends java.lang.Object implements IControlCenterPlugin
Template class for control center plugins.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractJCCPlugin.ShowRemoteControlCenterHandler
A node handler allowing to spawn new control center views for remote platforms displayed in component tree using proxy nodes.
-
Field Summary
Fields Modifier and Type Field Description protected static javax.swing.UIDefaults
icons
The image icons.protected IControlCenter
jcc
The jcc.
-
Constructor Summary
Constructors Constructor Description AbstractJCCPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JMenu[]
createMenuBar()
Create menu bar.javax.swing.JComponent[]
createToolBar()
Create tool bar.javax.swing.JComponent
createView()
Create main panel.static IFuture<java.lang.ClassLoader>
getClassLoader(IComponentIdentifier cid, IControlCenter jcc)
Find the class loader for a component.IControlCenter
getJCC()
Get the jcc.javax.swing.JMenu[]
getMenuBar()
Get the menu bar (if any).IFuture<Properties>
getProperties()
Return properties to be saved in project.javax.swing.JComponent[]
getToolBar()
Create the tool bar (if any).javax.swing.JComponent
getView()
Get the main view.IFuture<java.lang.Void>
init(IControlCenter jcc)
Initialize the plugin.boolean
isLazy()
Lazy plugins are inited on first access.IFuture<java.lang.Void>
pushPlatformSettings()
Store settings if any in platform settings service.IFuture<java.lang.Void>
setProperties(Properties ps)
Set properties loaded from project.IFuture<java.lang.Void>
shutdown()
Shutdown the plugin.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.base.gui.plugin.IControlCenterPlugin
getName, getToolIcon
-
-
-
-
Field Detail
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
jcc
protected IControlCenter jcc
The jcc.
-
-
Method Detail
-
isLazy
public boolean isLazy()
Lazy plugins are inited on first access.- Specified by:
isLazy
in interfaceIControlCenterPlugin
-
init
public IFuture<java.lang.Void> init(IControlCenter jcc)
Initialize the plugin.- Specified by:
init
in interfaceIControlCenterPlugin
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the plugin.- Specified by:
shutdown
in interfaceIControlCenterPlugin
-
getJCC
public IControlCenter getJCC()
Get the jcc.
-
getToolBar
public javax.swing.JComponent[] getToolBar()
Create the tool bar (if any).- Specified by:
getToolBar
in interfaceIControlCenterPlugin
- Returns:
- The tool bar.
-
getMenuBar
public javax.swing.JMenu[] getMenuBar()
Get the menu bar (if any).- Specified by:
getMenuBar
in interfaceIControlCenterPlugin
- Returns:
- The menu bar.
-
getView
public javax.swing.JComponent getView()
Get the main view.- Specified by:
getView
in interfaceIControlCenterPlugin
- Returns:
- The main view.
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties ps)
Set properties loaded from project.- Specified by:
setProperties
in interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Return properties to be saved in project.- Specified by:
getProperties
in interfaceIPropertiesProvider
-
pushPlatformSettings
public IFuture<java.lang.Void> pushPlatformSettings()
Store settings if any in platform settings service.- Specified by:
pushPlatformSettings
in interfaceIControlCenterPlugin
-
createToolBar
public javax.swing.JComponent[] createToolBar()
Create tool bar.- Returns:
- The tool bar.
-
createMenuBar
public javax.swing.JMenu[] createMenuBar()
Create menu bar.- Returns:
- The menu bar.
-
createView
public javax.swing.JComponent createView()
Create main panel.- Returns:
- The main panel.
-
getClassLoader
public static IFuture<java.lang.ClassLoader> getClassLoader(IComponentIdentifier cid, IControlCenter jcc)
Find the class loader for a component. Use component class loader for local components and current platform class loader for remote components.- Parameters:
cid
- The component id.- Returns:
- The class loader.
-
-