public abstract class AbstractJCCPlugin extends java.lang.Object implements IControlCenterPlugin
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
protected static javax.swing.UIDefaults |
icons
The image icons.
|
protected IControlCenter |
jcc
The jcc.
|
Constructor and Description |
---|
AbstractJCCPlugin() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenu[] |
createMenuBar()
Create menu bar.
|
javax.swing.JComponent[] |
createToolBar()
Create tool bar.
|
javax.swing.JComponent |
createView()
Create main panel.
|
static jadex.commons.future.IFuture<java.lang.ClassLoader> |
getClassLoader(jadex.bridge.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).
|
jadex.commons.future.IFuture<jadex.commons.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.
|
jadex.commons.future.IFuture<java.lang.Void> |
init(IControlCenter jcc)
Initialize the plugin.
|
boolean |
isLazy()
Lazy plugins are inited on first access.
|
jadex.commons.future.IFuture<java.lang.Void> |
pushPlatformSettings()
Store settings if any in platform settings service.
|
jadex.commons.future.IFuture<java.lang.Void> |
setProperties(jadex.commons.Properties ps)
Set properties loaded from project.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Shutdown the plugin.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getToolIcon
protected static final javax.swing.UIDefaults icons
protected IControlCenter jcc
public boolean isLazy()
isLazy
in interface IControlCenterPlugin
public jadex.commons.future.IFuture<java.lang.Void> init(IControlCenter jcc)
init
in interface IControlCenterPlugin
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface IControlCenterPlugin
public IControlCenter getJCC()
public javax.swing.JComponent[] getToolBar()
getToolBar
in interface IControlCenterPlugin
public javax.swing.JMenu[] getMenuBar()
getMenuBar
in interface IControlCenterPlugin
public javax.swing.JComponent getView()
getView
in interface IControlCenterPlugin
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 jadex.commons.future.IFuture<java.lang.Void> pushPlatformSettings()
pushPlatformSettings
in interface IControlCenterPlugin
public javax.swing.JComponent[] createToolBar()
public javax.swing.JMenu[] createMenuBar()
public javax.swing.JComponent createView()
public static jadex.commons.future.IFuture<java.lang.ClassLoader> getClassLoader(jadex.bridge.IComponentIdentifier cid, IControlCenter jcc)
cid
- The component id.