public class ControlCenter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.base.gui.CMSUpdateHandler |
cmshandler
The CMS update handler shared by all tools.
|
protected jadex.base.gui.componenttree.ComponentIconCache |
iconcache
The component icon cache shared by all tools.
|
static java.lang.String |
JCC_EXIT_ASK
Ask for shutdown on exit.
|
static java.lang.String |
JCC_EXIT_KEEP
No shutdown on exit.
|
static java.lang.String |
JCC_EXIT_SHUTDOWN
Auto-shutdown on exit.
|
protected jadex.bridge.IExternalAccess |
jccaccess
The jcc component.
|
protected java.lang.String |
jccexit
Shutdown action on exit (ask (default), keep, shutdown).
|
protected boolean |
killed
Flag indicating if exit was initiated.
|
protected PlatformControlCenter |
pcc
The currently displayed platform control center.
|
protected java.util.Map<jadex.bridge.IComponentIdentifier,PlatformControlCenter> |
pccs
The platform control centers (cid -> pcc).
|
protected java.lang.String[] |
plugin_classes
The plugin classes.
|
protected jadex.base.gui.PropertyUpdateHandler |
prophandler
The property handler.
|
protected boolean |
saveonexit
The save on exit flag.
|
static java.lang.String |
SETTINGS_EXTENSION
The filename extension for GUI settings.
|
protected ControlCenterWindow |
window
The control center window.
|
Constructor and Description |
---|
ControlCenter() |
Modifier and Type | Method and Description |
---|---|
void |
closePlatform(PlatformControlCenter pcc)
Close a platform control center.
|
void |
exit()
Informs the window if it should dispose its resources.
|
jadex.base.gui.CMSUpdateHandler |
getCMSHandler()
Get the cms update handler shared by all tools.
|
jadex.base.gui.componenttree.ComponentIconCache |
getIconCache()
Get the component icon cache shared by all tools.
|
jadex.bridge.IExternalAccess |
getJCCAccess()
Get the JCC access.
|
PlatformControlCenter |
getPCC()
Get the current platform control center.
|
jadex.base.gui.PropertyUpdateHandler |
getPropertyHandler()
Get the property update handler shared by all tools.
|
ControlCenterWindow |
getWindow()
Get the control center window.
|
jadex.commons.future.IFuture<java.lang.Void> |
init(jadex.bridge.IExternalAccess jccaccess,
jadex.bridge.IExternalAccess platformaccess,
java.lang.String[] plugin_classes,
boolean saveonexit)
Create a control center.
|
boolean |
isSaveOnExit()
Get the save on exit flag.
|
jadex.commons.future.IFuture<java.lang.Void> |
loadSettings()
Load the settings.
|
jadex.commons.future.IFuture<java.lang.Void> |
loadSettings(java.io.File file)
Load the settings.
|
jadex.commons.future.IFuture<java.lang.Void> |
saveSettings()
Save settings of JCC and all plugins in current project.
|
jadex.commons.future.IFuture<java.lang.Void> |
saveSettings(java.io.File file)
Save settings of JCC and all plugins in current project.
|
void |
setSaveOnExit(boolean saveonexit)
Set the save on exit flag.
|
void |
showPlatform(jadex.bridge.IExternalAccess platformaccess)
Add a new platform control center
or switch to tab if already exists.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Do any required cleanup on exit.
|
public static final java.lang.String SETTINGS_EXTENSION
public static final java.lang.String JCC_EXIT_SHUTDOWN
public static final java.lang.String JCC_EXIT_KEEP
public static final java.lang.String JCC_EXIT_ASK
protected jadex.bridge.IExternalAccess jccaccess
protected java.lang.String[] plugin_classes
protected java.util.Map<jadex.bridge.IComponentIdentifier,PlatformControlCenter> pccs
protected PlatformControlCenter pcc
protected ControlCenterWindow window
protected boolean killed
protected java.lang.String jccexit
protected jadex.base.gui.CMSUpdateHandler cmshandler
protected jadex.base.gui.PropertyUpdateHandler prophandler
protected jadex.base.gui.componenttree.ComponentIconCache iconcache
protected boolean saveonexit
public jadex.commons.future.IFuture<java.lang.Void> init(jadex.bridge.IExternalAccess jccaccess, jadex.bridge.IExternalAccess platformaccess, java.lang.String[] plugin_classes, boolean saveonexit)
public jadex.commons.future.IFuture<java.lang.Void> loadSettings()
public jadex.commons.future.IFuture<java.lang.Void> loadSettings(java.io.File file)
public jadex.commons.future.IFuture<java.lang.Void> saveSettings()
public jadex.commons.future.IFuture<java.lang.Void> saveSettings(java.io.File file)
public void exit()
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
public boolean isSaveOnExit()
public void setSaveOnExit(boolean saveonexit)
public jadex.base.gui.CMSUpdateHandler getCMSHandler()
public jadex.base.gui.PropertyUpdateHandler getPropertyHandler()
public jadex.base.gui.componenttree.ComponentIconCache getIconCache()
public ControlCenterWindow getWindow()
public jadex.bridge.IExternalAccess getJCCAccess()
public void showPlatform(jadex.bridge.IExternalAccess platformaccess)
public void closePlatform(PlatformControlCenter pcc)
public PlatformControlCenter getPCC()