public class ColumnControlButton.DefaultColumnControlPopup extends Object implements ColumnControlPopup
| Constructor and Description |
|---|
ColumnControlButton.DefaultColumnControlPopup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalActionItems(List<? extends Action> actions)
Adds additional actions to the popup.
|
protected void |
addItem(JMenuItem 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 AbstractActionExt> actions)
Adds items corresponding to the column's visibility actions.
|
void |
applyComponentOrientation(ComponentOrientation o)
Applies the specified component orientation to all internal widgets.
|
protected JPopupMenu |
getPopupMenu() |
void |
removeAll()
Removes all items from the popup.
|
void |
toggleVisibility(JComponent owner)
Toggles the popup's visibility.
|
void |
updateUI()
Updates all internal visuals after changing a UI-delegate.
|
public ColumnControlButton.DefaultColumnControlPopup()
public void updateUI()
UIDependentupdateUI in interface UIDependentJComponent.updateUI()public void toggleVisibility(JComponent owner)
ColumnControlPopuptoggleVisibility in interface ColumnControlPopupowner - the JComponent which triggered the visibility change, typically
a ColumnControlButton.public void applyComponentOrientation(ComponentOrientation o)
ColumnControlPopupapplyComponentOrientation in interface ColumnControlPopupo - the componentOrientation to apply to all internal widgets.Container.applyComponentOrientation(ComponentOrientation).public void removeAll()
ColumnControlPopupremoveAll in interface ColumnControlPopuppublic void addVisibilityActionItems(List<? extends AbstractActionExt> actions)
ColumnControlPopup
Each Action in the list is a stateAction,
its selected property bound to a column's
visible property, that is toggling the selected will
toggle the column's visibility (if the action is enabled).
The Actions name property is bound to
the column's title.
addVisibilityActionItems in interface ColumnControlPopupactions - List of AbstractActionExt to add.public void addAdditionalActionItems(List<? extends Action> actions)
ColumnControlPopupaddAdditionalActionItems in interface ColumnControlPopupactions - List of Actions to add to the popup.protected void addItems(List<? extends Action> actions)
actions - a list containing the actions to add to the popup.
Must not be null.protected void addSeparator()
protected void addItem(JMenuItem item)
item - the menuItem to add to the popup.protected JPopupMenu getPopupMenu()
Copyright © 2014. All rights reserved.