org.jdesktop.swingx.table
Interface ColumnControlPopup

All Known Implementing Classes:
ColumnControlButton.DefaultColumnControlPopup

public interface ColumnControlPopup

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.


Method Summary
 void addAdditionalActionItems(List<? extends Action> actions)
          Adds additional actions 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.
 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.
 

Method Detail

updateUI

void updateUI()
Updates all internal visuals after changing a UI-delegate.

The 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.

See Also:
JComponent.updateUI()

toggleVisibility

void toggleVisibility(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(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.
See Also:
Container.applyComponentOrientation(ComponentOrientation).

removeAll

void removeAll()
Removes all items from the popup.


addVisibilityActionItems

void addVisibilityActionItems(List<? extends AbstractActionExt> actions)
Adds items corresponding to the column's visibility actions.

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.

Parameters:
actions - List of AbstractActionExt to add.

addAdditionalActionItems

void addAdditionalActionItems(List<? extends Action> actions)
Adds additional actions to the popup.

Parameters:
actions - List of Actions to add to the popup.