|
||||||||||
| 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(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. |
| 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()
UIDependent
updateUI in interface UIDependentJComponent.updateUI()public void toggleVisibility(javax.swing.JComponent owner)
ColumnControlPopup
toggleVisibility in interface ColumnControlPopupowner - the JComponent which triggered the visibility change, typically
a ColumnControlButton.public void applyComponentOrientation(java.awt.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(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)
ColumnControlPopup
addAdditionalActionItems 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||