Package jadex.base.gui
Class ComponentSelectorDialog
- java.lang.Object
- 
- jadex.base.gui.ComponentSelectorDialog
 
- 
- Direct Known Subclasses:
- PlatformSelectorDialog
 
 public class ComponentSelectorDialog extends java.lang.ObjectDialog to select an agent on the platform.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanabortedWas the dialog aborted?protected IExternalAccessaccessThe shown platform.protected CMSUpdateHandlercmshandlerThe cms handler.protected javax.swing.JComponentcomptreePanel as field for repaint in addSelectedAgent.protected ComponentIconCacheiconcacheThe icon cache.protected static javax.swing.UIDefaultsiconsThe image icons.protected IExternalAccessjccaccessThe local platform.protected javax.swing.JListlistprotected javax.swing.JButtonnewaidButton as field for repaint in addSelectedAgent.protected javax.swing.JButtonokButton as field for repaint in addSelectedAgent.protected java.awt.ComponentparentThe parent component.protected PropertyUpdateHandlerprophandlerThe cms handler.protected javax.swing.JButtonremoveButton as field for repaint in addSelectedAgent.protected javax.swing.JButtonremoveallButton as field for repaint in addSelectedAgent.protected javax.swing.JButtonselectButton as field for repaint in addSelectedAgent.protected javax.swing.DefaultListModelselsThe selected agents.protected booleansingleselectionIs the single selection dialog showing?
 - 
Constructor SummaryConstructors Constructor Description ComponentSelectorDialog(java.awt.Component parent, IExternalAccess access, IExternalAccess jccaccess, CMSUpdateHandler cmshandler, PropertyUpdateHandler prophandler, ComponentIconCache iconcache)Create a new AgentSelectorDialog.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSelected()protected voidaddSelectedAgent(IComponentIdentifier agent, javax.swing.JList list)Add an agent to the list of selected agentsprotected javax.swing.JDialogcreateDialog()Create the dialog.protected javax.swing.JComponentcreateTreeView()protected voiddisposeTreeView()protected java.lang.StringgetDialogName()protected java.lang.StringgetSelectedListName()protected IComponentIdentifiergetSelectedObject()protected java.lang.StringgetTreeViewName()protected booleanisTreeViewSelectionEmpty()IComponentIdentifierselectAgent(IComponentIdentifier def)Open a modal dialog to select/enter an agent identifier.IComponentIdentifier[]selectAgents(IComponentIdentifier[] receivers)Select/edit a list of agents.
 
- 
- 
- 
Field Detail- 
iconsprotected static final javax.swing.UIDefaults icons The image icons.
 - 
parentprotected java.awt.Component parent The parent component.
 - 
accessprotected IExternalAccess access The shown platform.
 - 
jccaccessprotected IExternalAccess jccaccess The local platform.
 - 
cmshandlerprotected CMSUpdateHandler cmshandler The cms handler.
 - 
prophandlerprotected PropertyUpdateHandler prophandler The cms handler.
 - 
iconcacheprotected ComponentIconCache iconcache The icon cache.
 - 
selsprotected javax.swing.DefaultListModel sels The selected agents.
 - 
singleselectionprotected boolean singleselection Is the single selection dialog showing?
 - 
abortedprotected boolean aborted Was the dialog aborted?
 - 
selectprotected javax.swing.JButton select Button as field for repaint in addSelectedAgent.
 - 
newaidprotected javax.swing.JButton newaid Button as field for repaint in addSelectedAgent.
 - 
removeprotected javax.swing.JButton remove Button as field for repaint in addSelectedAgent.
 - 
removeallprotected javax.swing.JButton removeall Button as field for repaint in addSelectedAgent.
 - 
okprotected javax.swing.JButton ok Button as field for repaint in addSelectedAgent.
 - 
comptreeprotected javax.swing.JComponent comptree Panel as field for repaint in addSelectedAgent.
 - 
listprotected javax.swing.JList list 
 
- 
 - 
Constructor Detail- 
ComponentSelectorDialogpublic ComponentSelectorDialog(java.awt.Component parent, IExternalAccess access, IExternalAccess jccaccess, CMSUpdateHandler cmshandler, PropertyUpdateHandler prophandler, ComponentIconCache iconcache)Create a new AgentSelectorDialog.
 
- 
 - 
Method Detail- 
selectAgentpublic IComponentIdentifier selectAgent(IComponentIdentifier def) Open a modal dialog to select/enter an agent identifier.- Returns:
- The selected agent identifier or null, when dialog was aborted.
 
 - 
selectAgentspublic IComponentIdentifier[] selectAgents(IComponentIdentifier[] receivers) Select/edit a list of agents.- Returns:
- The (possibly empty) list of agent identifiers or null, when dialog was aborted.
 
 - 
createDialogprotected javax.swing.JDialog createDialog() Create the dialog.
 - 
createTreeViewprotected javax.swing.JComponent createTreeView() 
 - 
disposeTreeViewprotected void disposeTreeView() 
 - 
isTreeViewSelectionEmptyprotected boolean isTreeViewSelectionEmpty() 
 - 
getSelectedObjectprotected IComponentIdentifier getSelectedObject() 
 - 
addSelectedprotected void addSelected() 
 - 
addSelectedAgentprotected void addSelectedAgent(IComponentIdentifier agent, javax.swing.JList list) Add an agent to the list of selected agents- Parameters:
- agent- The agent to add.
 
 - 
getDialogNameprotected java.lang.String getDialogName() 
 - 
getTreeViewNameprotected java.lang.String getTreeViewName() 
 - 
getSelectedListNameprotected java.lang.String getSelectedListName() 
 
- 
 
-