Class CColumnControlButton.DefaultColumnControlPopup

  • All Implemented Interfaces:
    org.jdesktop.swingx.table.ColumnControlPopup
    Enclosing class:
    CColumnControlButton

    public class CColumnControlButton.DefaultColumnControlPopup
    extends Object
    implements org.jdesktop.swingx.table.ColumnControlPopup
    A default implementation of ColumnControlPopup. It uses a JPopupMenu with MenuItems corresponding to the Actions as provided by the ColumnControlButton.
    • Constructor Detail

      • DefaultColumnControlPopup

        public DefaultColumnControlPopup()
    • Method Detail

      • updateUI

        public void updateUI()
        Specified by:
        updateUI in interface org.jdesktop.swingx.table.ColumnControlPopup
      • toggleVisibility

        public void toggleVisibility​(JComponent owner)
        Specified by:
        toggleVisibility in interface org.jdesktop.swingx.table.ColumnControlPopup
      • applyComponentOrientation

        public void applyComponentOrientation​(ComponentOrientation o)
        Specified by:
        applyComponentOrientation in interface org.jdesktop.swingx.table.ColumnControlPopup
      • removeAll

        public void removeAll()
        Specified by:
        removeAll in interface org.jdesktop.swingx.table.ColumnControlPopup
      • addVisibilityActionItems

        public void addVisibilityActionItems​(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
        Specified by:
        addVisibilityActionItems in interface org.jdesktop.swingx.table.ColumnControlPopup
      • addAdditionalActionItems

        public void addAdditionalActionItems​(List<? extends Action> actions)
        Specified by:
        addAdditionalActionItems in interface org.jdesktop.swingx.table.ColumnControlPopup
      • addItems

        protected void addItems​(List<? extends Action> actions)
        Here: creates and adds a menuItem to the popup for every Action in the list. Does nothing if if the list is empty. PRE: actions != null.
        Parameters:
        actions - a list containing the actions to add to the popup. Must not be null.
      • addSeparator

        protected void addSeparator()
        adds a separator to the popup.
      • addItem

        protected void addItem​(AbstractButton item)
        Parameters:
        item - the menuItem to add to the popup.
      • getPopupMenu

        protected JPopupMenu getPopupMenu()
        Returns:
        the popup to add menuitems. Guaranteed to be != null.
      • createScroller

        protected JScrollPane createScroller()
        Creates the scroll pane which houses the scrollable list.