LPEX
4.4.0

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

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.


LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.