Class AbstractConditionalDatabaseSelectionPanel<T,​C extends AbstractConditions>

    • Field Detail

      • m_ButtonOptions

        protected BaseButton m_ButtonOptions
        the button for setting the name retrieval options.
      • m_Conditions

        protected C extends AbstractConditions m_Conditions
        the conditions for retrieving the items.
    • Constructor Detail

      • AbstractConditionalDatabaseSelectionPanel

        public AbstractConditionalDatabaseSelectionPanel()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets the enabled state of the panel.
        Overrides:
        setEnabled in class AbstractDatabaseSelectionPanel<T>
        Parameters:
        value - if true then the components will be enabled
      • getDefaultConditions

        protected abstract C getDefaultConditions()
        Returns the default conditions to use.
        Returns:
        the conditions
      • getApprovedConditions

        protected abstract Class[] getApprovedConditions()
        Returns the approved conditions that can be used.
        Returns:
        the approved conditions
      • check

        protected boolean check​(AbstractConditions conditions)
        Checks the chosen conditions against the approved ones.
        Parameters:
        conditions - the conditions to check
        Returns:
        true if OK to use
      • getCanChangeConditionsClass

        protected boolean getCanChangeConditionsClass()
        Returns whether the conditions class can be changed in the GUI.
        Returns:
        true if the conditions class can get changed
      • showOptions

        protected void showOptions()
        Displays the options for selecting the names.
      • preRefresh

        protected void preRefresh()
        Performs actions before the refresh, like disabling buttons and changing mouse cursor to waiting one.
        Overrides:
        preRefresh in class AbstractDatabaseSelectionPanel<T>
      • postRefresh

        protected void postRefresh​(T[] items)
        Performs actions after the refresh, like enabling buttons, updating counts and changing mouse cursor back to normal one.
        Overrides:
        postRefresh in class AbstractDatabaseSelectionPanel<T>