SWT LPEX
v3.0.5

com.ibm.lpex.core
Interface LpexCursorListener


public interface LpexCursorListener

Interface LpexCursorListener can be implemented to listen to cursor (caret) events in the edit window of a document view.

Create a listener object using this class, and then register it with a document view using the view's addLpexCursorListener() method. When an event occurs, the elementChanged() method in the listener object is invoked. Example:

 
 lpexView.addLpexCursorListener(new LpexCursorListener() { 
  // cursor moved to another element
  public void elementChanged(LpexView view)
  {
   updateFormatLine(view);
  }
 }); 

See Also:
LpexView.addLpexCursorListener(com.ibm.lpex.core.LpexCursorListener), LpexView.removeLpexCursorListener(com.ibm.lpex.core.LpexCursorListener)

Method Summary
 void elementChanged(LpexView lpexView)
          This method is invoked when the element on which the cursor is located has changed since the last notification or since the listener was added.
 

Method Detail

elementChanged

public void elementChanged(LpexView lpexView)
This method is invoked when the element on which the cursor is located has changed since the last notification or since the listener was added. It is invoked just before the screen is displayed.

The LPEX screen is rebuilt and displayed after every user action. It is also rebuilt and displayed when the screenShow editor command is issued.


SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.