|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.table.ColumnControlButton.DefaultColumnControlPopup
public class ColumnControlButton.DefaultColumnControlPopup
A default implementation of ColumnControlPopup. It uses a JPopupMenu with MenuItems corresponding to the Actions as provided by the ColumnControlButton.
| Constructor Summary | |
|---|---|
ColumnControlButton.DefaultColumnControlPopup()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnControlButton.DefaultColumnControlPopup()
| Method Detail |
|---|
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(JComponent owner)
ColumnControlPopup
toggleVisibility in interface ColumnControlPopupowner - the JComponent which triggered the visibility change, typically
a ColumnControlButton.public void applyComponentOrientation(ComponentOrientation o)
ColumnControlPopup
applyComponentOrientation in interface ColumnControlPopupo - the componentOrientation to apply to all internal widgets.Container.applyComponentOrientation(ComponentOrientation).public void removeAll()
ColumnControlPopup
removeAll 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)
ColumnControlPopup
addAdditionalActionItems 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()
|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||