Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.swt.custom
Interface MovementListener

All Superinterfaces:
EventListener, org.eclipse.swt.internal.SWTEventListener

public interface MovementListener
extends org.eclipse.swt.internal.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:
SWT.MOVEMENT_WORD, SWT.MOVEMENT_WORD_END, SWT.MOVEMENT_WORD_START, SWT.MOVEMENT_CHAR, SWT.MOVEMENT_CLUSTER

Method Summary
 void 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 Detail

getNextOffset

void getNextOffset(
MovementEvent event)
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:
MovementEvent, StyledText.addWordMovementListener(MovementListener)

getPreviousOffset

void getPreviousOffset(
MovementEvent event)
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:
MovementEvent, StyledText.addWordMovementListener(MovementListener)

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire