Class SelectFieldPanel

    • Field Detail

      • m_TextFields

        protected BaseTextField m_TextFields
        the textfield for entering a list of fields (blank separated).
      • m_ComboBoxDataType

        protected BaseComboBox m_ComboBoxDataType
        the data types to display.
      • m_FieldType

        protected FieldType m_FieldType
        the type of fields to display.
      • m_MultipleSelection

        protected boolean m_MultipleSelection
        whether to allow multi-selection (blank-separated list).
    • Constructor Detail

      • SelectFieldPanel

        public SelectFieldPanel()
        Default constructor.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the GUI elements.
        Overrides:
        initGUI in class BasePanel
      • setFieldType

        public void setFieldType​(FieldType value)
        Sets the field type.
        Parameters:
        value - the new field type
      • getFieldType

        public FieldType getFieldType()
        Returns the field type.
        Returns:
        the current field type
      • processMissing

        protected void processMissing​(Vector<Field> missing)
        Hook method for processing items that were not found when trying to select them initially.

        The missing items are displayed in the "manual" field.
        Parameters:
        missing - the missing items
      • setDataType

        public void setDataType​(DataType value)
        Sets the data type to display. Ignored if PrefixFields displayed.
        Parameters:
        value - the type to display
      • getDataType

        public DataType getDataType()
        Returns the currently selected data type, if any.
        Returns:
        the data type, null if "All" was selected (or PrefixFields displayed)
      • getCurrentItems

        protected AbstractField[] getCurrentItems()
        Returns the current fields.
        Returns:
        the currently entered fields
      • getItems

        public AbstractField[] getItems()
        Returns the current fields.
        Returns:
        the fields
      • getItem

        public AbstractField getItem()
        Returns the item, null if none chosen or dialog canceled.
        Returns:
        the selected item
      • setItem

        public void setItem​(AbstractField value)
        Sets the initially selected item.
        Parameters:
        value - the item to select
      • setItems

        public void setItems​(AbstractField[] value)
        Sets the initially selected items.
        Parameters:
        value - the items to select
      • setMultipleSelection

        public void setMultipleSelection​(boolean value)
        Sets whether multiple or single selection is used.
        Parameters:
        value - if true multiple items can be selected
      • isMultipleSelection

        public boolean isMultipleSelection()
        Returns whether multiple or single selection is active.
        Returns:
        true if multiple selection is active
      • grabFocus

        public void grabFocus()
        Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window. This component must be displayable, visible, and focusable for the request to be granted.
        Overrides:
        grabFocus in class JComponent