bibliothek.gui.dock.themes.basic.action
Class BasicDropDownButtonHandler.Listener

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.BasicDropDownButtonHandler.Listener
All Implemented Interfaces:
DockActionSourceListener, DropDownActionListener, StandardDockActionListener
Enclosing class:
BasicDropDownButtonHandler

private class BasicDropDownButtonHandler.Listener
extends java.lang.Object
implements StandardDockActionListener, DropDownActionListener, DockActionSourceListener

A listener to the action that is handled by this handler

Author:
Benjamin Sigg

Constructor Summary
private BasicDropDownButtonHandler.Listener()
           
 
Method Summary
 void actionDisabledIconChanged(StandardDockAction action, java.util.Set<Dockable> dockables)
          Invoked when the disabled icon of a StandardDockAction has been changed.
 void actionEnabledChanged(StandardDockAction action, java.util.Set<Dockable> dockables)
          Invoked when the enabled-state of a StandardDockAction has been changed.
 void actionIconChanged(StandardDockAction action, java.util.Set<Dockable> dockables)
          Invoked when the icon of a StandardDockAction has been changed.
 void actionsAdded(DockActionSource source, int firstIndex, int lastIndex)
          Invoked when one or more actions are added to the source.
 void actionsRemoved(DockActionSource source, int firstIndex, int lastIndex)
          Invoked if one or more actions are removed from the source.
 void actionTextChanged(StandardDockAction action, java.util.Set<Dockable> dockables)
          Invoked when the text of a StandardDockAction has been changed.
 void actionTooltipTextChanged(StandardDockAction action, java.util.Set<Dockable> dockables)
          Invoked when the tooltip of a StandardDockAction has been changed.
 void selectionChanged(DropDownAction action, java.util.Set<Dockable> dockables, DockAction newSelection)
          Called when the selection of action has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDropDownButtonHandler.Listener

private BasicDropDownButtonHandler.Listener()
Method Detail

actionEnabledChanged

public void actionEnabledChanged(StandardDockAction action,
                                 java.util.Set<Dockable> dockables)
Description copied from interface: StandardDockActionListener
Invoked when the enabled-state of a StandardDockAction has been changed.

Specified by:
actionEnabledChanged in interface StandardDockActionListener
Parameters:
action - The action whose state is changed
dockables - The Dockables for which the state was changed
See Also:
StandardDockAction.isEnabled(Dockable)

actionIconChanged

public void actionIconChanged(StandardDockAction action,
                              java.util.Set<Dockable> dockables)
Description copied from interface: StandardDockActionListener
Invoked when the icon of a StandardDockAction has been changed.

Specified by:
actionIconChanged in interface StandardDockActionListener
Parameters:
action - The action whose icon is changed
dockables - The Dockables for which the icon was changed
See Also:
StandardDockAction.getIcon(Dockable)

actionDisabledIconChanged

public void actionDisabledIconChanged(StandardDockAction action,
                                      java.util.Set<Dockable> dockables)
Description copied from interface: StandardDockActionListener
Invoked when the disabled icon of a StandardDockAction has been changed.

Specified by:
actionDisabledIconChanged in interface StandardDockActionListener
Parameters:
action - The action whose icon is changed
dockables - The Dockables for which the icon was changed
See Also:
StandardDockAction.getIcon(Dockable)

actionTextChanged

public void actionTextChanged(StandardDockAction action,
                              java.util.Set<Dockable> dockables)
Description copied from interface: StandardDockActionListener
Invoked when the text of a StandardDockAction has been changed.

Specified by:
actionTextChanged in interface StandardDockActionListener
Parameters:
action - The action whose text is changed
dockables - The Dockables for which the text was changed
See Also:
StandardDockAction.getText(Dockable)

actionTooltipTextChanged

public void actionTooltipTextChanged(StandardDockAction action,
                                     java.util.Set<Dockable> dockables)
Description copied from interface: StandardDockActionListener
Invoked when the tooltip of a StandardDockAction has been changed.

Specified by:
actionTooltipTextChanged in interface StandardDockActionListener
Parameters:
action - The action whose tooltip is changed
dockables - The Dockables for which the tooltip was changed
See Also:
StandardDockAction.getTooltipText(Dockable)

selectionChanged

public void selectionChanged(DropDownAction action,
                             java.util.Set<Dockable> dockables,
                             DockAction newSelection)
Description copied from interface: DropDownActionListener
Called when the selection of action has changed.

Specified by:
selectionChanged in interface DropDownActionListener
Parameters:
action - the action whose selection is changed
dockables - the set of Dockables for which the selection has changed
newSelection - the new selected child, might be null

actionsAdded

public void actionsAdded(DockActionSource source,
                         int firstIndex,
                         int lastIndex)
Description copied from interface: DockActionSourceListener
Invoked when one or more actions are added to the source.

Specified by:
actionsAdded in interface DockActionSourceListener
Parameters:
source - the origin of the event
firstIndex - the index of the first new action
lastIndex - the index of the last new action. This value must be greater or equal to firstIndex.

actionsRemoved

public void actionsRemoved(DockActionSource source,
                           int firstIndex,
                           int lastIndex)
Description copied from interface: DockActionSourceListener
Invoked if one or more actions are removed from the source.

Specified by:
actionsRemoved in interface DockActionSourceListener
Parameters:
source - the origin of the event.
firstIndex - the index of the first action that was removed
lastIndex - the index of the last action that was removed. This argument is greater or equal to firstIndex.