public interface DockActionSourceListener
DockActionSource
. The listener
receives events whenever DockActions
are added
or removed from the source.Modifier and Type | Method and Description |
---|---|
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 actionsAdded(DockActionSource source, int firstIndex, int lastIndex)
source
.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
.void actionsRemoved(DockActionSource source, int firstIndex, int lastIndex)
source
.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
.