Package org.apache.pivot.wtk
Interface WindowActionMappingListener
-
- All Known Implementing Classes:
WindowActionMappingListener.Listeners
public interface WindowActionMappingListener
Window action mapping listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WindowActionMappingListener.Listeners
Window action mapping listeners.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
actionChanged(Window.ActionMapping actionMapping, Action previousAction)
Called when an action mapping's action has changed.void
actionMappingAdded(Window window)
Called when an action mapping has been added to a window.void
actionMappingsRemoved(Window window, int index, Sequence<Window.ActionMapping> removed)
Called when action mappings have been removed from a window.void
keyStrokeChanged(Window.ActionMapping actionMapping, Keyboard.KeyStroke previousKeyStroke)
Called when an action mapping's keystroke has changed.
-
-
-
Method Detail
-
actionMappingAdded
void actionMappingAdded(Window window)
Called when an action mapping has been added to a window.- Parameters:
window
- The source of this event.
-
actionMappingsRemoved
void actionMappingsRemoved(Window window, int index, Sequence<Window.ActionMapping> removed)
Called when action mappings have been removed from a window.- Parameters:
window
- The window that is affected.index
- Starting index of the action mappings that were removed.removed
- The sequence of action mappings that were removed.
-
keyStrokeChanged
void keyStrokeChanged(Window.ActionMapping actionMapping, Keyboard.KeyStroke previousKeyStroke)
Called when an action mapping's keystroke has changed.- Parameters:
actionMapping
- The action mapping that has changed.previousKeyStroke
- The previous keystroke (if any) associated with this mapping.
-
actionChanged
void actionChanged(Window.ActionMapping actionMapping, Action previousAction)
Called when an action mapping's action has changed.- Parameters:
actionMapping
- The action mapping that has changed.previousAction
- The action previously associated with this mapping.
-
-