Package org.jdesktop.swingx.table
Interface ColumnControlPopup
-
- All Superinterfaces:
UIDependent
- All Known Implementing Classes:
ColumnControlButton.DefaultColumnControlPopup
public interface ColumnControlPopup extends UIDependent
Encapsulates the popup component which is the delegate for all popup visuals, used by a ColumnControlButton.For now, this class a simple extraction of what a ColumnControl needs. Usage will drive further evolution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ColumnControlPopup.ActionGroupable
Interface indicating support for grouping of menu actions.static interface
ColumnControlPopup.ActionGrouper
Splits and returns a List of actions into sub-lists.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAdditionalActionItems(java.util.List<? extends javax.swing.Action> actions)
Adds additional actions 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.void
removeAll()
Removes all items from the popup.void
toggleVisibility(javax.swing.JComponent owner)
Toggles the popup's visibility.-
Methods inherited from interface org.jdesktop.swingx.plaf.UIDependent
updateUI
-
-
-
-
Method Detail
-
toggleVisibility
void toggleVisibility(javax.swing.JComponent owner)
Toggles the popup's visibility. This method is responsible for placing itself relative to the given owner if toggled to visible.- Parameters:
owner
- the JComponent which triggered the visibility change, typically a ColumnControlButton.
-
applyComponentOrientation
void applyComponentOrientation(java.awt.ComponentOrientation o)
Applies the specified component orientation to all internal widgets. This method must be called by the owner if its component orientation changes.- Parameters:
o
- the componentOrientation to apply to all internal widgets.
-
removeAll
void removeAll()
Removes all items from the popup.
-
addVisibilityActionItems
void addVisibilityActionItems(java.util.List<? extends AbstractActionExt> actions)
Adds items corresponding to the column's visibility actions.Each
Action
in the list is astateAction
, itsselected
property bound to a column'svisible
property, that is toggling the selected will toggle the column's visibility (if the action is enabled). TheAction
sname
property is bound to the column'stitle
.- Parameters:
actions
- List of AbstractActionExt to add.
-
addAdditionalActionItems
void addAdditionalActionItems(java.util.List<? extends javax.swing.Action> actions)
Adds additional actions to the popup.- Parameters:
actions
- List ofAction
s to add to the popup.
-
-