Class InstancesSortDefinitionPanel

    • Field Detail

      • m_ComboBoxNames

        protected adams.gui.core.BaseComboBox m_ComboBoxNames
        the combobox with column names.
      • m_ComboBoxSorting

        protected adams.gui.core.BaseComboBox m_ComboBoxSorting
        the type of sorting.
      • m_ButtonMoveUp

        protected adams.gui.core.BaseButton m_ButtonMoveUp
        the move up button.
      • m_ButtonMoveDown

        protected adams.gui.core.BaseButton m_ButtonMoveDown
        the move down button.
      • m_ButtonRemove

        protected adams.gui.core.BaseButton m_ButtonRemove
        the remove button.
    • Constructor Detail

      • InstancesSortDefinitionPanel

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

      • initGUI

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

        public InstancesSortPanel 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