Package org.eclipse.swt.custom
Interface MovementListener
- All Superinterfaces:
EventListener
,SWTEventListener
This listener is invoked when a new offset is required based on the current
offset and a movement type.
- Since:
- 3.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getNextOffset
(MovementEvent event) This method is called when a new offset is required based on the current offset and a movement type.void
getPreviousOffset
(MovementEvent event) This method is called when a new offset is required based on the current offset and a movement type.
-
Method Details
-
getNextOffset
This method is called when a new offset is required based on the current offset and a movement type.The following event fields are used:
- event.lineOffset line start offset (input)
- event.lineText line text (input)
- event.movement the movement type (input)
- event.offset the current offset (input)
- event.newOffset the new offset (input, output)
- Parameters:
event
- the event- See Also:
-
getPreviousOffset
This method is called when a new offset is required based on the current offset and a movement type.The following event fields are used:
- event.lineOffset line start offset (input)
- event.lineText line text (input)
- event.movement the movement type (input)
- event.offset the current offset (input)
- event.newOffset the new offset (input, output)
- Parameters:
event
- the event- See Also:
-