Class SortDefinitionPanel

    • Field Detail

      • m_Owner

        protected SortPanel m_Owner
        the owning sort panel.
      • m_ComboBoxNames

        protected BaseComboBox m_ComboBoxNames
        the combobox with column names.
      • m_ComboBoxSorting

        protected BaseComboBox m_ComboBoxSorting
        the type of sorting.
      • m_ButtonMoveUp

        protected BaseButton m_ButtonMoveUp
        the move up button.
      • m_ButtonMoveDown

        protected BaseButton m_ButtonMoveDown
        the move down button.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        the remove button.
    • Constructor Detail

      • SortDefinitionPanel

        public SortDefinitionPanel​(SortPanel owner)
        Initializes the definition panel.
        Parameters:
        owner - the owning sort panel
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • getOwner

        public SortPanel getOwner()
        Returns the owning panel.
        Returns:
        the owner
      • getColumnName

        public String getColumnName()
        Returns the selected column name.
        Returns:
        the column name, null if none selected
      • isAscending

        public boolean isAscending()
        Returns whether ascending or descending is used.
        Returns:
        true if ascending sorting is used
      • moveDefinition

        protected void moveDefinition​(boolean up)
        Moves itself around in the list of sorting panels.
      • removeDefinition

        protected void removeDefinition()
        Removes itself from the list of sorting panels.
      • update

        public void update()
        Resets the comboboxes.
      • updateButtons

        public void updateButtons()
        Updates the enabled status of the buttons.
      • setupModified

        protected void setupModified()
        Sends an event that the setup was modified.
      • toString

        public String toString()
        Returns a short description of the current setup.
        Overrides:
        toString in class Component
        Returns:
        the current setup