Package org.apache.pivot.wtk
Interface Menu.SectionListener
-
- All Known Implementing Classes:
Menu.SectionListener.Listeners
,TerraMenuSkin
- Enclosing class:
- Menu
public static interface Menu.SectionListener
Section listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Menu.SectionListener.Listeners
Section listeners.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
itemInserted(Menu.Section section, int index)
Called when a menu item has been inserted.void
itemsRemoved(Menu.Section section, int index, Sequence<Menu.Item> removed)
Called when menu items have been removed.void
nameChanged(Menu.Section section, java.lang.String previousName)
Called when a section's name has changed.
-
-
-
Method Detail
-
itemInserted
void itemInserted(Menu.Section section, int index)
Called when a menu item has been inserted.- Parameters:
section
- The section that is changing.index
- The index where the item was inserted.
-
itemsRemoved
void itemsRemoved(Menu.Section section, int index, Sequence<Menu.Item> removed)
Called when menu items have been removed.- Parameters:
section
- The section that has changed.index
- The starting index of the removed items.removed
- The sequence of the items that were removed.
-
nameChanged
void nameChanged(Menu.Section section, java.lang.String previousName)
Called when a section's name has changed.- Parameters:
section
- The section that changed.previousName
- The previous name for this section.
-
-