Package org.apache.pivot.wtk
Interface ListButtonSelectionListener
-
- All Known Implementing Classes:
ListButtonSelectionListener.Adapter
,ListButtonSelectionListener.Listeners
,ListButtonSkin
,TerraListButtonSkin
public interface ListButtonSelectionListener
List button selection listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ListButtonSelectionListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ListButtonSelectionListener.Listeners
List button selection listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
selectedIndexChanged(ListButton listButton, int previousSelectedIndex)
Called when a list button's selected index has changed.default void
selectedItemChanged(ListButton listButton, java.lang.Object previousSelectedItem)
Called when a list button's selected item has changed.
-
-
-
Method Detail
-
selectedIndexChanged
default void selectedIndexChanged(ListButton listButton, int previousSelectedIndex)
Called when a list button's selected index has changed.- Parameters:
listButton
- The source of the event.previousSelectedIndex
- If the selection changed directly, contains the index that was previously selected. Otherwise, contains the current selection.
-
selectedItemChanged
default void selectedItemChanged(ListButton listButton, java.lang.Object previousSelectedItem)
Called when a list button's selected item has changed.- Parameters:
listButton
- The source of the event.previousSelectedItem
- The item that was previously selected, ornull
if the previous selection cannot be determined.
-
-