|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.themes.basic.action.menu.MenuMenuHandler.Listener
private class MenuMenuHandler.Listener
A listener to the source of the enclosing handler.
Constructor Summary | |
---|---|
private |
MenuMenuHandler.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 . |
private void |
reput()
Removes all items of the menu, and then adds them again. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private MenuMenuHandler.Listener()
Method Detail |
---|
private void reput()
public void actionsAdded(DockActionSource source, int firstIndex, int lastIndex)
DockActionSourceListener
source
.
actionsAdded
in interface DockActionSourceListener
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
.public void actionsRemoved(DockActionSource source, int firstIndex, int lastIndex)
DockActionSourceListener
source
.
actionsRemoved
in interface DockActionSourceListener
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |