Package org.compiere.swing
Class CColumnControlButton.DefaultColumnControlPopup
- java.lang.Object
-
- org.compiere.swing.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 Summary
Constructors Constructor Description DefaultColumnControlPopup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalActionItems(List<? extends Action> actions)protected voidaddItem(AbstractButton item)protected voidaddItems(List<? extends Action> actions)Here: creates and adds a menuItem to the popup for every Action in the list.protected voidaddSeparator()adds a separator to the popup.voidaddVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)voidapplyComponentOrientation(ComponentOrientation o)protected JScrollPanecreateScroller()Creates the scroll pane which houses the scrollable list.protected JPopupMenugetPopupMenu()voidremoveAll()voidtoggleVisibility(JComponent owner)voidupdateUI()
-
-
-
Method Detail
-
updateUI
public void updateUI()
- Specified by:
updateUIin interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
toggleVisibility
public void toggleVisibility(JComponent owner)
- Specified by:
toggleVisibilityin interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
applyComponentOrientation
public void applyComponentOrientation(ComponentOrientation o)
- Specified by:
applyComponentOrientationin interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
addVisibilityActionItems
public void addVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
- Specified by:
addVisibilityActionItemsin interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
addAdditionalActionItems
public void addAdditionalActionItems(List<? extends Action> actions)
- Specified by:
addAdditionalActionItemsin interfaceorg.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.
-
-