bibliothek.gui.dock.event
Class DockActionSourceAdapter
java.lang.Object
bibliothek.gui.dock.event.DockActionSourceAdapter
- All Implemented Interfaces:
- DockActionSourceListener
public abstract class DockActionSourceAdapter
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DockActionSourceAdapter
public DockActionSourceAdapter()
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 eventfirstIndex
- the index of the first new actionlastIndex
- 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 removedlastIndex
- the index of the last action that was removed. This
argument is greater or equal to firstIndex
.