public class ColumnControlButton.DefaultColumnControlPopup extends java.lang.Object implements ColumnControlPopup
| Constructor and Description |
|---|
ColumnControlButton.DefaultColumnControlPopup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalActionItems(java.util.List<? extends javax.swing.Action> actions)
Adds additional actions to the popup.
|
protected void |
addItem(javax.swing.JMenuItem item) |
protected void |
addItems(java.util.List<? extends javax.swing.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(java.util.List<? extends AbstractActionExt> actions)
Adds items corresponding to the column's visibility actions.
|
void |
applyComponentOrientation(java.awt.ComponentOrientation o)
Applies the specified component orientation to all internal widgets.
|
protected javax.swing.JPopupMenu |
getPopupMenu() |
void |
removeAll()
Removes all items from the popup.
|
void |
toggleVisibility(javax.swing.JComponent owner)
Toggles the popup's visibility.
|
void |
updateUI()
Updates all internal visuals after changing a UI-delegate.
|
public ColumnControlButton.DefaultColumnControlPopup()
public void updateUI()
ColumnControlPopupThe method called by ColumnControlButton in it's updateUI. As there is a good probability that at the time of a ColumnControlButton is updated after a ui-delegate change the popup is not visible/part of the container hierarchy, this method must be messaged manually.
updateUI in interface ColumnControlPopupJComponent.updateUI()public void toggleVisibility(javax.swing.JComponent owner)
ColumnControlPopuptoggleVisibility in interface ColumnControlPopupowner - the JComponent which triggered the visibility change, typically
a ColumnControlButton.public void applyComponentOrientation(java.awt.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(java.util.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(java.util.List<? extends javax.swing.Action> actions)
ColumnControlPopupaddAdditionalActionItems in interface ColumnControlPopupactions - List of Actions to add to the popup.protected void addItems(java.util.List<? extends javax.swing.Action> actions)
actions - a list containing the actions to add to the popup.
Must not be null.protected void addSeparator()
protected void addItem(javax.swing.JMenuItem item)
item - the menuItem to add to the popup.protected javax.swing.JPopupMenu getPopupMenu()