Back to index

im-sdk  12.3.91
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Attributes
com.sun.iiim.IIIMStatusEvent Class Reference

This class represents InputMethod's status event. More...

Inheritance diagram for com.sun.iiim.IIIMStatusEvent:
Inheritance graph
[legend]
Collaboration diagram for com.sun.iiim.IIIMStatusEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IIIMStatusEvent (int type)
 Constructor for START/DONE event.
 IIIMStatusEvent (int type, AttributedCharacterIterator iterator)
 Constructor for DRAW event.
 IIIMStatusEvent (int type, String statusString)
 Constructor for DRAW event.
AttributedCharacterIterator getIterator ()
String getString ()
 IIIMStatusEvent (int type)
 Constructor for START/DONE event.
 IIIMStatusEvent (int type, AttributedCharacterIterator iterator)
 Constructor for DRAW event.
 IIIMStatusEvent (int type, String statusString)
 Constructor for DRAW event.
AttributedCharacterIterator getIterator ()
String getString ()
int getID ()
int getID ()
int getType ()
int getType ()
AWTEvent getAWTEvent ()
AWTEvent getAWTEvent ()
void processedBy (IIIMListener listener)
void processedBy (IIIMListener listener)
boolean isProcessedBy (IIIMListener listener)
boolean isProcessedBy (IIIMListener listener)
void consume ()
void consume ()
boolean isConsumed ()
boolean isConsumed ()

Static Public Member Functions

static String iteratorToString (CharacterIterator iterator)
 convinience method
static String iteratorToString (CharacterIterator iterator)
 convinience method

Static Public Attributes

static final int START = 0
static final int DRAW = 1
static final int DONE = 2
static final int AWT = 0
static final int ACTION = 1
static final int PREEDIT = 2
static final int COMMITTED = 3
static final int LOOKUP = 4
static final int STATUS = 5
static final int AUX = 6
static final int KEY = 7

Protected Attributes

boolean consumed = false
int id = AWT
int type

Private Attributes

AttributedCharacterIterator iterator
String statusString

Detailed Description

This class represents InputMethod's status event.

Definition at line 52 of file IIIMStatusEvent.java.


Constructor & Destructor Documentation

Constructor for START/DONE event.

Parameters:
IIIMStatusEvent.STARTor IIIMStatusEvent.DONE

Definition at line 66 of file IIIMStatusEvent.java.

                                     {
       super(STATUS);
       if (type != START && type != DONE) {
           throw new IllegalArgumentException();
       }
       this.type = type;
    }
com.sun.iiim.IIIMStatusEvent.IIIMStatusEvent ( int  type,
AttributedCharacterIterator  iterator 
) [inline]

Constructor for DRAW event.

Parameters:
IIIMStatusEvent.DRAW
characteriterator which represents status string

Definition at line 80 of file IIIMStatusEvent.java.

                                                                           {
       super(STATUS);
       if (type != DRAW) {
           throw new IllegalArgumentException();
       }
       this.type = DRAW;
       this.iterator = iterator;
    }
com.sun.iiim.IIIMStatusEvent.IIIMStatusEvent ( int  type,
String  statusString 
) [inline]

Constructor for DRAW event.

Definition at line 92 of file IIIMStatusEvent.java.

                                                          {
       super(STATUS);
       if (type != DRAW) {
           throw new IllegalArgumentException();
       }
       this.type = DRAW;
       this.statusString = statusString;
    }

Constructor for START/DONE event.

Parameters:
IIIMStatusEvent.STARTor IIIMStatusEvent.DONE

Definition at line 66 of file IIIMStatusEvent.java.

                                     {
       super(STATUS);
       if (type != START && type != DONE) {
           throw new IllegalArgumentException();
       }
       this.type = type;
    }
com.sun.iiim.IIIMStatusEvent.IIIMStatusEvent ( int  type,
AttributedCharacterIterator  iterator 
) [inline]

Constructor for DRAW event.

Parameters:
IIIMStatusEvent.DRAW
characteriterator which represents status string

Definition at line 80 of file IIIMStatusEvent.java.

                                                                           {
       super(STATUS);
       if (type != DRAW) {
           throw new IllegalArgumentException();
       }
       this.type = DRAW;
       this.iterator = iterator;
    }
com.sun.iiim.IIIMStatusEvent.IIIMStatusEvent ( int  type,
String  statusString 
) [inline]

Constructor for DRAW event.

Definition at line 92 of file IIIMStatusEvent.java.

                                                          {
       super(STATUS);
       if (type != DRAW) {
           throw new IllegalArgumentException();
       }
       this.type = DRAW;
       this.statusString = statusString;
    }

Member Function Documentation

void com.sun.iiim.IIIMEvent.consume ( ) [inline, inherited]

Definition at line 109 of file IIIMEvent.java.

                          {
       consumed = true;
       if (awtEvent != null && awtEvent instanceof InputEvent) {
           ((InputEvent)awtEvent).consume();
       }
    } 

Here is the caller graph for this function:

void com.sun.iiim.IIIMEvent.consume ( ) [inline, inherited]

Definition at line 109 of file IIIMEvent.java.

                          {
       consumed = true;
       if (awtEvent != null && awtEvent instanceof InputEvent) {
           ((InputEvent)awtEvent).consume();
       }
    } 
AWTEvent com.sun.iiim.IIIMEvent.getAWTEvent ( ) [inline, inherited]

Definition at line 97 of file IIIMEvent.java.

                                  {
       return awtEvent;
    }
AWTEvent com.sun.iiim.IIIMEvent.getAWTEvent ( ) [inline, inherited]

Definition at line 97 of file IIIMEvent.java.

                                  {
       return awtEvent;
    }

Here is the caller graph for this function:

int com.sun.iiim.IIIMEvent.getID ( ) [inline, inherited]

Definition at line 57 of file IIIMEvent.java.

                       {
       return id;
    }
int com.sun.iiim.IIIMEvent.getID ( ) [inline, inherited]

Definition at line 57 of file IIIMEvent.java.

                       {
       return id;
    }
AttributedCharacterIterator com.sun.iiim.IIIMStatusEvent.getIterator ( ) [inline]

Definition at line 101 of file IIIMStatusEvent.java.

                                                     {
       if (iterator == null) {
           iterator = new AttributedString(statusString).getIterator();
       }
       return iterator;
    }
AttributedCharacterIterator com.sun.iiim.IIIMStatusEvent.getIterator ( ) [inline]

Definition at line 101 of file IIIMStatusEvent.java.

                                                     {
       if (iterator == null) {
           iterator = new AttributedString(statusString).getIterator();
       }
       return iterator;
    }

Definition at line 108 of file IIIMStatusEvent.java.

Here is the call graph for this function:

Definition at line 108 of file IIIMStatusEvent.java.

Here is the call graph for this function:

int com.sun.iiim.IIIMEvent.getType ( ) [inline, inherited]

Definition at line 66 of file IIIMEvent.java.

                         {
       return type;
    }
int com.sun.iiim.IIIMEvent.getType ( ) [inline, inherited]

Definition at line 66 of file IIIMEvent.java.

                         {
       return type;
    }
boolean com.sun.iiim.IIIMEvent.isConsumed ( ) [inline, inherited]

Definition at line 116 of file IIIMEvent.java.

                                {
       return consumed;
    }
boolean com.sun.iiim.IIIMEvent.isConsumed ( ) [inline, inherited]

Definition at line 116 of file IIIMEvent.java.

                                {
       return consumed;
    }
boolean com.sun.iiim.IIIMEvent.isProcessedBy ( IIIMListener  listener) [inline, inherited]

Definition at line 105 of file IIIMEvent.java.

                                                        {
       return listeners.contains(listener);
    }
boolean com.sun.iiim.IIIMEvent.isProcessedBy ( IIIMListener  listener) [inline, inherited]

Definition at line 105 of file IIIMEvent.java.

                                                        {
       return listeners.contains(listener);
    }
static String com.sun.iiim.IIIMEvent.iteratorToString ( CharacterIterator  iterator) [inline, static, inherited]

convinience method

Definition at line 123 of file IIIMEvent.java.

                                                                      {
       StringBuffer sb = new StringBuffer();
       for (char c = iterator.first(); c != CharacterIterator.DONE;
            c = iterator.next()) {
           sb.append(c);
       }
       return sb.toString();
    }
static String com.sun.iiim.IIIMEvent.iteratorToString ( CharacterIterator  iterator) [inline, static, inherited]

convinience method

Definition at line 123 of file IIIMEvent.java.

                                                                      {
       StringBuffer sb = new StringBuffer();
       for (char c = iterator.first(); c != CharacterIterator.DONE;
            c = iterator.next()) {
           sb.append(c);
       }
       return sb.toString();
    }

Here is the caller graph for this function:

void com.sun.iiim.IIIMEvent.processedBy ( IIIMListener  listener) [inline, inherited]

Definition at line 101 of file IIIMEvent.java.

                                                   {
       listeners.add(listener);
    }
void com.sun.iiim.IIIMEvent.processedBy ( IIIMListener  listener) [inline, inherited]

Definition at line 101 of file IIIMEvent.java.

                                                   {
       listeners.add(listener);
    }

Member Data Documentation

static final int com.sun.iiim.IIIMEvent.ACTION = 1 [static, inherited]

Definition at line 75 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMEvent.AUX = 6 [static, inherited]

Definition at line 80 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMEvent.AWT = 0 [static, inherited]

Definition at line 74 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMEvent.COMMITTED = 3 [static, inherited]

Definition at line 77 of file IIIMEvent.java.

boolean com.sun.iiim.IIIMEvent.consumed = false [protected, inherited]

Definition at line 53 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMStatusEvent.DONE = 2 [static]

Definition at line 59 of file IIIMStatusEvent.java.

static final int com.sun.iiim.IIIMStatusEvent.DRAW = 1 [static]

Definition at line 58 of file IIIMStatusEvent.java.

int com.sun.iiim.IIIMEvent.id = AWT [protected, inherited]

Definition at line 55 of file IIIMEvent.java.

AttributedCharacterIterator com.sun.iiim.IIIMStatusEvent.iterator [private]

Definition at line 54 of file IIIMStatusEvent.java.

static final int com.sun.iiim.IIIMEvent.KEY = 7 [static, inherited]

Definition at line 81 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMEvent.LOOKUP = 4 [static, inherited]

Definition at line 78 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMEvent.PREEDIT = 2 [static, inherited]

Definition at line 76 of file IIIMEvent.java.

static final int com.sun.iiim.IIIMStatusEvent.START = 0 [static]

Definition at line 57 of file IIIMStatusEvent.java.

static final int com.sun.iiim.IIIMEvent.STATUS = 5 [static, inherited]

Definition at line 79 of file IIIMEvent.java.

Definition at line 55 of file IIIMStatusEvent.java.

int com.sun.iiim.IIIMEvent.type [protected, inherited]

Definition at line 64 of file IIIMEvent.java.


The documentation for this class was generated from the following files: