bibliothek.gui.dock.event
Interface DockActionSourceListener

All Known Implementing Classes:
DockActionSourceAdapter

public interface DockActionSourceListener

A listener that is added to DockActionSource. The listener receives events whenever DockActions are added or removed from the source.

Author:
Benjamin Sigg

Method Summary
 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.
 

Method Detail

actionsAdded

void actionsAdded(DockActionSource source,
                  int firstIndex,
                  int lastIndex)
Invoked when one or more actions are added to the source.

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

void actionsRemoved(DockActionSource source,
                    int firstIndex,
                    int lastIndex)
Invoked if one or more actions are removed from the source.

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.