Class ButtonSelectorPanel

    • Field Detail

      • m_Labels

        protected BaseString[] m_Labels
        the labels.
      • m_ButtonLabels

        protected BaseToggleButton[] m_ButtonLabels
        the label buttons.
      • m_ButtonGroup

        protected ButtonGroup m_ButtonGroup
        the button group.
    • Constructor Detail

      • ButtonSelectorPanel

        public ButtonSelectorPanel​(ObjectAnnotationPanel owner,
                                   BaseString[] labels)
        Initializes the panel.
        Parameters:
        owner - the owning panel
        labels - the labels to use
    • Method Detail

      • initGUI

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

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • getLabels

        public String[] getLabels()
        Returns the labels to choose from.
        Returns:
        the labels
      • setUnsetButtonVisible

        public void setUnsetButtonVisible​(boolean value)
        Shows or hides the "Unset" button.
        Parameters:
        value - true if to show, false to hide
      • isUnsetButtonVisible

        public boolean isUnsetButtonVisible()
        Returns whether the unset button is visible.
        Returns:
        true if visible
      • selectNextLabel

        public void selectNextLabel()
        Moves to the next label.