public class ColumnControlButton.DefaultColumnControlPopup extends Object implements ColumnControlPopup, ColumnControlPopup.ActionGroupable
ColumnControlPopup.ActionGroupable, ColumnControlPopup.ActionGrouper
Modifier and Type | Field and Description |
---|---|
private ColumnControlPopup.ActionGrouper |
grouper |
private JPopupMenu |
popupMenu |
Constructor and Description |
---|
DefaultColumnControlPopup() |
DefaultColumnControlPopup(ColumnControlPopup.ActionGrouper grouper) |
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 ColumnControlPopup.ActionGrouper |
getGrouper() |
protected JPopupMenu |
getPopupMenu() |
void |
removeAll()
Removes all items from the popup.
|
void |
setActionGrouper(ColumnControlPopup.ActionGrouper grouper) |
void |
toggleVisibility(JComponent owner)
Toggles the popup's visibility.
|
void |
updateUI()
Updates all internal visuals after changing a UI-delegate.
|
private JPopupMenu popupMenu
private ColumnControlPopup.ActionGrouper grouper
public DefaultColumnControlPopup()
public DefaultColumnControlPopup(ColumnControlPopup.ActionGrouper grouper)
public void updateUI()
UIDependent
updateUI
in interface UIDependent
JComponent.updateUI()
public void toggleVisibility(JComponent owner)
ColumnControlPopup
toggleVisibility
in interface ColumnControlPopup
owner
- the JComponent which triggered the visibility change, typically
a ColumnControlButton.public void applyComponentOrientation(ComponentOrientation o)
ColumnControlPopup
applyComponentOrientation
in interface ColumnControlPopup
o
- the componentOrientation to apply to all internal widgets.Container.applyComponentOrientation(ComponentOrientation).
public void removeAll()
ColumnControlPopup
removeAll
in interface ColumnControlPopup
public 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 Action
s name
property is bound to
the column's title
.
addVisibilityActionItems
in interface ColumnControlPopup
actions
- List of AbstractActionExt to add.public void addAdditionalActionItems(List<? extends Action> actions)
ColumnControlPopup
addAdditionalActionItems
in interface ColumnControlPopup
actions
- List of Action
s 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 JPopupMenu getPopupMenu()
public void setActionGrouper(ColumnControlPopup.ActionGrouper grouper)
setActionGrouper
in interface ColumnControlPopup.ActionGroupable
protected ColumnControlPopup.ActionGrouper getGrouper()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses