bibliothek.gui.dock.event
Class DockActionSourceAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockActionSourceAdapter
All Implemented Interfaces:
DockActionSourceListener

public abstract class DockActionSourceAdapter
extends java.lang.Object
implements DockActionSourceListener

An abstract implementation of DockActionSourceListener. This class can be used instead of DockActionSourceListener if only a few selected methods have to be implemented.

Author:
Benjamin Sigg

Constructor Summary
DockActionSourceAdapter()
           
 
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

DockActionSourceAdapter

public DockActionSourceAdapter()
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.