MIDP3.0

javax.microedition.lcdui
Interface TextEditorChangeListener


public interface TextEditorChangeListener

A listener for receiving notification of content changes and other editor events that have been invoked on TextEditor objects.

When an editor event happens, the application is notified by calling the method on the TextEditorChangeListener that had been set on the TextEditor with a call to TextEditor.setTextEditorListener() method.

Since:
3.0

Field Summary
static int ACTION_CARET_MOVE
          Indicates that the caret in this TextEditor has moved.
static int ACTION_CONTENT_CHANGE
          Indicates that the content of this TextEditor has changed.
static int ACTION_DIRECTION_CHANGE
          Indicates that the direction of the writing-language has changed.
static int ACTION_INPUT_MODE_CHANGE
          Indicates that the current input-mode has changed.
static int ACTION_LANGUAGE_CHANGE
          Indicates that the current input-language has changed.
static int ACTION_TRAVERSE_NEXT
          Indicates that the user tries to exit this TextEditor downwards.
static int ACTION_TRAVERSE_PREVIOUS
          Indicates that the user tries to exit this TextEditor upwards.
 
Method Summary
 void inputAction(TextEditor textEditor, int actions)
           This method is called by the Java platform implementation to notify the client about events in a TextEditor.
 

Field Detail

ACTION_CONTENT_CHANGE

static final int ACTION_CONTENT_CHANGE
Indicates that the content of this TextEditor has changed.

See Also:
Constant Field Values

ACTION_CARET_MOVE

static final int ACTION_CARET_MOVE
Indicates that the caret in this TextEditor has moved.

See Also:
Constant Field Values

ACTION_TRAVERSE_PREVIOUS

static final int ACTION_TRAVERSE_PREVIOUS
Indicates that the user tries to exit this TextEditor upwards.

See Also:
Constant Field Values

ACTION_TRAVERSE_NEXT

static final int ACTION_TRAVERSE_NEXT
Indicates that the user tries to exit this TextEditor downwards.

See Also:
Constant Field Values

ACTION_DIRECTION_CHANGE

static final int ACTION_DIRECTION_CHANGE
Indicates that the direction of the writing-language has changed.

See Also:
Constant Field Values

ACTION_INPUT_MODE_CHANGE

static final int ACTION_INPUT_MODE_CHANGE
Indicates that the current input-mode has changed.

See Also:
Constant Field Values

ACTION_LANGUAGE_CHANGE

static final int ACTION_LANGUAGE_CHANGE
Indicates that the current input-language has changed.

See Also:
Constant Field Values
Method Detail

inputAction

void inputAction(TextEditor textEditor,
                 int actions)

This method is called by the Java platform implementation to notify the client about events in a TextEditor. A call to this method may represent more than one event. The events are masked into the actions parameter. An application can determine which events have occurred for example via code like
if( (actions&TextEditorListener.ACTION_CONTENT_CHANGE)!=0), and

if( (actions&TextEditorListener.ACTION_CARET_CHANGE)!=0)

Parameters:
textEditor - the TextEditor instance where the event occurred
actions - the events that occurred

MIDP3.0

Send a comment or suggestionVersion 3.0 of Mobile Information Device Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-2009 Motorola Inc. Portions copyright 1993-2002 Sun Microsystems, Inc. and Motorola, Inc. All Rights Reserved.