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 ComponentTreePanelcomptreeThe agent tree table.protected ConversationPanelconvcenterThe conversation center panel.protected static javax.swing.UIDefaultsiconsThe image icons.static java.lang.StringLAST_MESSAGEThe property storing the last state of the message panel.static java.lang.StringSENT_MESSAGEThe 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.JComponentcreateView()Create main panel.java.lang.StringgetName()Return the unique name of this plugin.IFuturegetProperties()Return properties to be saved in project.javax.swing.IcongetToolIcon(boolean selected)Return the icon representing this plugin.booleanisLazy()ConvCenter should initialize non-lazy to catch all incoming messages.IFuturesetProperties(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:IControlCenterPluginReturn 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:
isLazyin interfaceIControlCenterPlugin- Overrides:
isLazyin classAbstractJCCPlugin
-
getToolIcon
public javax.swing.Icon getToolIcon(boolean selected)
Description copied from interface:IControlCenterPluginReturn 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:
createViewin classAbstractJCCPlugin- Returns:
- The main panel.
-
createToolBar
public javax.swing.JComponent[] createToolBar()
The actions.- Overrides:
createToolBarin classAbstractJCCPlugin- Returns:
- The tool bar.
-
setProperties
public IFuture setProperties(Properties props)
Set properties loaded from project.- Specified by:
setPropertiesin interfaceIPropertiesProvider- Overrides:
setPropertiesin classAbstractJCCPlugin
-
getProperties
public IFuture getProperties()
Return properties to be saved in project.- Specified by:
getPropertiesin interfaceIPropertiesProvider- Overrides:
getPropertiesin classAbstractJCCPlugin
-
shutdown
public IFuture<java.lang.Void> shutdown()
Shutdown the plugin.- Specified by:
shutdownin interfaceIControlCenterPlugin- Overrides:
shutdownin classAbstractJCCPlugin
-
-