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 void
addAdditionalActionItems(List<? extends Action> actions)
protected void
addItem(AbstractButton item)
protected void
addItems(List<? extends Action> actions)
Here: creates and adds a menuItem to the popup for every Action in the list.protected void
addSeparator()
adds a separator to the popup.void
addVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
void
applyComponentOrientation(ComponentOrientation o)
protected JScrollPane
createScroller()
Creates the scroll pane which houses the scrollable list.protected JPopupMenu
getPopupMenu()
void
removeAll()
void
toggleVisibility(JComponent owner)
void
updateUI()
-
-
-
Method Detail
-
updateUI
public void updateUI()
- Specified by:
updateUI
in interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
toggleVisibility
public void toggleVisibility(JComponent owner)
- Specified by:
toggleVisibility
in interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
applyComponentOrientation
public void applyComponentOrientation(ComponentOrientation o)
- Specified by:
applyComponentOrientation
in interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
removeAll
public void removeAll()
- Specified by:
removeAll
in interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
addVisibilityActionItems
public void addVisibilityActionItems(List<? extends org.jdesktop.swingx.action.AbstractActionExt> actions)
- Specified by:
addVisibilityActionItems
in interfaceorg.jdesktop.swingx.table.ColumnControlPopup
-
addAdditionalActionItems
public void addAdditionalActionItems(List<? extends Action> actions)
- Specified by:
addAdditionalActionItems
in 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.
-
-