Class ComponentSelectorDialog

  • Direct Known Subclasses:
    PlatformSelectorDialog

    public class ComponentSelectorDialog
    extends java.lang.Object
    Dialog to select an agent on the platform.
    • Field Detail

      • icons

        protected static final javax.swing.UIDefaults icons
        The image icons.
      • parent

        protected java.awt.Component parent
        The parent component.
      • sels

        protected javax.swing.DefaultListModel sels
        The selected agents.
      • singleselection

        protected boolean singleselection
        Is the single selection dialog showing?
      • aborted

        protected boolean aborted
        Was the dialog aborted?
      • select

        protected javax.swing.JButton select
        Button as field for repaint in addSelectedAgent.
      • newaid

        protected javax.swing.JButton newaid
        Button as field for repaint in addSelectedAgent.
      • remove

        protected javax.swing.JButton remove
        Button as field for repaint in addSelectedAgent.
      • removeall

        protected javax.swing.JButton removeall
        Button as field for repaint in addSelectedAgent.
      • ok

        protected javax.swing.JButton ok
        Button as field for repaint in addSelectedAgent.
      • comptree

        protected javax.swing.JComponent comptree
        Panel as field for repaint in addSelectedAgent.
      • list

        protected javax.swing.JList list
    • Method Detail

      • selectAgent

        public 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.
      • selectAgents

        public IComponentIdentifier[] selectAgents​(IComponentIdentifier[] receivers)
        Select/edit a list of agents.
        Returns:
        The (possibly empty) list of agent identifiers or null, when dialog was aborted.
      • createDialog

        protected javax.swing.JDialog createDialog()
        Create the dialog.
      • createTreeView

        protected javax.swing.JComponent createTreeView()
      • disposeTreeView

        protected void disposeTreeView()
      • isTreeViewSelectionEmpty

        protected boolean isTreeViewSelectionEmpty()
      • addSelected

        protected void addSelected()
      • addSelectedAgent

        protected void addSelectedAgent​(IComponentIdentifier agent,
                                        javax.swing.JList list)
        Add an agent to the list of selected agents
        Parameters:
        agent - The agent to add.
      • getDialogName

        protected java.lang.String getDialogName()
      • getTreeViewName

        protected java.lang.String getTreeViewName()
      • getSelectedListName

        protected java.lang.String getSelectedListName()