bibliothek.gui.dock.action
Class MultiDockActionSource.Listener

java.lang.Object
  extended by bibliothek.gui.dock.action.MultiDockActionSource.Listener
All Implemented Interfaces:
DockActionSourceListener
Enclosing class:
MultiDockActionSource

private class MultiDockActionSource.Listener
extends java.lang.Object
implements DockActionSourceListener

A listener to the sources of this group of sources.

Author:
Benjamin Sigg

Constructor Summary
private MultiDockActionSource.Listener()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiDockActionSource.Listener

private MultiDockActionSource.Listener()
Method Detail

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.