Package jadex.tools.convcenter
Class ConversationPlugin
- java.lang.Object
-
- jadex.base.gui.plugin.AbstractJCCPlugin
-
- jadex.tools.convcenter.ConversationPlugin
-
- All Implemented Interfaces:
IControlCenterPlugin
,IPropertiesProvider
public class ConversationPlugin extends AbstractJCCPlugin
The conversation plugin
-
-
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 ComponentTreePanel
comptree
The agent tree table.protected ConversationPanel
convcenter
The conversation center panel.protected static javax.swing.UIDefaults
icons
The image icons.static java.lang.String
LAST_MESSAGE
The property storing the last state of the message panel.static java.lang.String
SENT_MESSAGE
The property storing sent messages (from 0..4).-
Fields inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
jcc
-
-
Constructor Summary
Constructors Constructor Description ConversationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent[]
createToolBar()
The actions.javax.swing.JComponent
createView()
Create main panel.java.lang.String
getName()
Return the unique name of this plugin.IFuture
getProperties()
Return properties to be saved in project.javax.swing.Icon
getToolIcon(boolean selected)
Return the icon representing this plugin.boolean
isLazy()
ConvCenter should initialize non-lazy to catch all incoming messages.IFuture
setProperties(Properties props)
Set properties loaded from project.IFuture<java.lang.Void>
shutdown()
Shutdown the plugin.-
Methods inherited from class jadex.base.gui.plugin.AbstractJCCPlugin
createMenuBar, getClassLoader, getJCC, getMenuBar, getToolBar, getView, init, pushPlatformSettings
-
-
-
-
Field Detail
-
LAST_MESSAGE
public static final java.lang.String LAST_MESSAGE
The property storing the last state of the message panel.- See Also:
- Constant Field Values
-
SENT_MESSAGE
public static final java.lang.String SENT_MESSAGE
The property storing sent messages (from 0..4).- See Also:
- Constant Field Values
-
icons
protected static final javax.swing.UIDefaults icons
The image icons.
-
comptree
protected ComponentTreePanel comptree
The agent tree table.
-
convcenter
protected ConversationPanel convcenter
The conversation center panel.
-
-
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:
- "Conversation Center"
- See Also:
IControlCenterPlugin.getName()
-
isLazy
public boolean isLazy()
ConvCenter should initialize non-lazy to catch all incoming messages.- Specified by:
isLazy
in interfaceIControlCenterPlugin
- Overrides:
isLazy
in classAbstractJCCPlugin
-
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 conversation icon
- See Also:
jadex.base.gui.plugin.IControlCenterPlugin#getToolIcon()
-
createView
public javax.swing.JComponent createView()
Create main panel.- Overrides:
createView
in classAbstractJCCPlugin
- Returns:
- The main panel.
-
createToolBar
public javax.swing.JComponent[] createToolBar()
The actions.- Overrides:
createToolBar
in classAbstractJCCPlugin
- Returns:
- The tool bar.
-
setProperties
public IFuture setProperties(Properties props)
Set properties loaded from project.- Specified by:
setProperties
in interfaceIPropertiesProvider
- Overrides:
setProperties
in classAbstractJCCPlugin
-
getProperties
public IFuture getProperties()
Return properties to be saved in project.- Specified by:
getProperties
in interfaceIPropertiesProvider
- Overrides:
getProperties
in classAbstractJCCPlugin
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the plugin.- Specified by:
shutdown
in interfaceIControlCenterPlugin
- Overrides:
shutdown
in classAbstractJCCPlugin
-
-