|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
static final int ACTION_CONTENT_CHANGE
static final int ACTION_CARET_MOVE
static final int ACTION_TRAVERSE_PREVIOUS
static final int ACTION_TRAVERSE_NEXT
static final int ACTION_DIRECTION_CHANGE
static final int ACTION_INPUT_MODE_CHANGE
static final int ACTION_LANGUAGE_CHANGE
Method Detail |
---|
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)
textEditor
- the TextEditor instance where the event occurredactions
- the events that occurred
|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |