Back to index

im-sdk  12.3.91
Public Member Functions | Protected Member Functions | Package Functions | Private Attributes | Static Private Attributes
sun.awt.im.iiimp.IIIMFAdapter Class Reference
Inheritance diagram for sun.awt.im.iiimp.IIIMFAdapter:
Inheritance graph
[legend]
Collaboration diagram for sun.awt.im.iiimp.IIIMFAdapter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IIIMFAdapter ()
void activate ()
 Called when the input capable component receive a FOCUS_GAINED.
void deactivate (boolean isTemporary)
 Called when the input capable component receive a FOCUS_LOST.
synchronized void dispatchEvent (AWTEvent event)
 Receive AWTEvent throught this method.
void dispose ()
 Dispose the input method.
void endComposition ()
 The behavior depends on im or user's preferrence.
Object getControlObject ()
 
  

Locale getLocale ()
 return locale
void hideWindows ()
 Closes or hides all windows opened by this input method instance or its class.
void removeNotify ()
 
  

void setCharacterSubsets (Subset[] subsets)
 Set character subsets to the current active InputMethod.
void setInputMethodContext (InputMethodContext context)
 
  

boolean setLocale (Locale locale)
 Set the primily InputMethod by locale.
void setCompositionEnabled (boolean enable)
boolean isCompositionEnabled ()
void dispatchEvent (IIIMEvent e)
 Receive the IIIMEvent from Manager through this method.
void preeditStart (IIIMPreeditEvent e)
 Receive the IIIMPreeditEvent from Manager through this method.
void preeditDone (IIIMPreeditEvent e)
synchronized void preeditDraw (IIIMPreeditEvent e)
void committedPerformed (IIIMCommittedEvent e)
 Receive the IIIMCommittedEvent from Manager through this method.

Protected Member Functions

Component getClientComponent ()

Package Functions

void setPreeditListener (IIIMPreeditListener l)
void setStatusListener (IIIMStatusListener l)
void setLookupListener (IIIMLookupListener l)

Private Attributes

Component currentClient
InputMethodContext inputMethodContext
Locale locale
IIIMPreeditListener preeditListener
IIIMLookupListener lookupListener

Static Private Attributes

static Manager manager
static IIIMStatusListener statusListener

Detailed Description

Definition at line 63 of file IIIMFAdapter.java.


Constructor & Destructor Documentation

Definition at line 75 of file IIIMFAdapter.java.

                          {
       manager = Manager.getInstance();
       locale = Locale.getDefault();
    }

Here is the call graph for this function:


Member Function Documentation

Called when the input capable component receive a FOCUS_GAINED.

Definition at line 87 of file IIIMFAdapter.java.

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.committedPerformed ( IIIMCommittedEvent  e) [inline]

Receive the IIIMCommittedEvent from Manager through this method.

Then convert it to InputMethodEvent and dispatch to inputMethodContext.

Implements sun.awt.im.iiimp.IIIMCommittedListener.

Definition at line 260 of file IIIMFAdapter.java.

                                                         {
       String committed = e.getCommittedString();
       AttributedCharacterIterator iterator =
           new AttributedString(committed).getIterator();

       inputMethodContext.dispatchInputMethodEvent(InputMethodEvent.
                                         INPUT_METHOD_TEXT_CHANGED,
                                         iterator,
                                         committed.length(),
                                         null,
                                         null);
    }
void sun.awt.im.iiimp.IIIMFAdapter.deactivate ( boolean  isTemporary) [inline]

Called when the input capable component receive a FOCUS_LOST.

Definition at line 109 of file IIIMFAdapter.java.

                                                {
       manager.deactivate(isTemporary);
    }

Here is the call graph for this function:

synchronized void sun.awt.im.iiimp.IIIMFAdapter.dispatchEvent ( AWTEvent  event) [inline]

Receive AWTEvent throught this method.

Definition at line 116 of file IIIMFAdapter.java.

                                                           {
       if (event instanceof KeyEvent) {
           IIIMEvent e = new IIIMEvent(event);
           manager.dispatchEvent(e);
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.dispatchEvent ( IIIMEvent  e) [inline]

Receive the IIIMEvent from Manager through this method.

Then convert it to InputMethodEvent and dispatch to inputMethodContext. sun.awt.im.InputMethodContext inputMethodContext variable is inherited from sun.awt.im.InputMethod class.

Definition at line 227 of file IIIMFAdapter.java.

                                           {
    }

Dispose the input method.

Definition at line 126 of file IIIMFAdapter.java.

                          {
       manager.dispose();
    }

Here is the call graph for this function:

The behavior depends on im or user's preferrence.

Definition at line 133 of file IIIMFAdapter.java.

Here is the call graph for this function:

Component sun.awt.im.iiimp.IIIMFAdapter.getClientComponent ( ) [inline, protected]

Definition at line 201 of file IIIMFAdapter.java.

                                             {
       return currentClient;
    }

  

Definition at line 140 of file IIIMFAdapter.java.

                                     {
       return manager.getControlObject();
    }

Here is the call graph for this function:

return locale

Definition at line 147 of file IIIMFAdapter.java.

                              {
       return locale;
    }

Closes or hides all windows opened by this input method instance or its class.

Definition at line 155 of file IIIMFAdapter.java.

                              {
    }

Definition at line 194 of file IIIMFAdapter.java.

                                          {
       throw new UnsupportedOperationException();
    }
void sun.awt.im.iiimp.IIIMFAdapter.preeditDone ( IIIMPreeditEvent  e) [inline]

Definition at line 239 of file IIIMFAdapter.java.

{}
synchronized void sun.awt.im.iiimp.IIIMFAdapter.preeditDraw ( IIIMPreeditEvent  e) [inline]

Definition at line 240 of file IIIMFAdapter.java.

                                                             {
       AttributedCharacterIterator iterator = e.getIterator();
       int pos = iterator.getEndIndex(); 

       inputMethodContext.dispatchInputMethodEvent(InputMethodEvent.
                                         INPUT_METHOD_TEXT_CHANGED,
                                         iterator,
                                         0,
                                         TextHitInfo.leading(pos),
                                         null);
    }
void sun.awt.im.iiimp.IIIMFAdapter.preeditStart ( IIIMPreeditEvent  e) [inline]

Receive the IIIMPreeditEvent from Manager through this method.

Then convert it to InputMethodEvent and dispatch to inputMethodContext.

Definition at line 238 of file IIIMFAdapter.java.

{}

  

Definition at line 161 of file IIIMFAdapter.java.

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.setCharacterSubsets ( Subset[]  subsets) [inline]

Set character subsets to the current active InputMethod.

Definition at line 168 of file IIIMFAdapter.java.

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.setCompositionEnabled ( boolean  enable) [inline]

Definition at line 190 of file IIIMFAdapter.java.

                                                      {
       throw new UnsupportedOperationException();
    }
void sun.awt.im.iiimp.IIIMFAdapter.setInputMethodContext ( InputMethodContext  context) [inline]

  

Definition at line 175 of file IIIMFAdapter.java.

boolean sun.awt.im.iiimp.IIIMFAdapter.setLocale ( Locale  locale) [inline]

Set the primily InputMethod by locale.

Definition at line 182 of file IIIMFAdapter.java.

                                            {
       boolean b = manager.setLocale(locale);
       if (b) {
           this.locale = locale;
       }
       return b;
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.setLookupListener ( IIIMLookupListener  l) [inline, package]

Definition at line 213 of file IIIMFAdapter.java.

                                                 {
       lookupListener = l;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.setPreeditListener ( IIIMPreeditListener  l) [inline, package]

Definition at line 205 of file IIIMFAdapter.java.

                                                   {
       preeditListener = l;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.IIIMFAdapter.setStatusListener ( IIIMStatusListener  l) [inline, package]

Definition at line 209 of file IIIMFAdapter.java.

                                                 {
       statusListener = l;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 68 of file IIIMFAdapter.java.

Definition at line 69 of file IIIMFAdapter.java.

Definition at line 70 of file IIIMFAdapter.java.

IIIMLookupListener sun.awt.im.iiimp.IIIMFAdapter.lookupListener [private]

Definition at line 73 of file IIIMFAdapter.java.

Definition at line 67 of file IIIMFAdapter.java.

IIIMPreeditListener sun.awt.im.iiimp.IIIMFAdapter.preeditListener [private]

Definition at line 71 of file IIIMFAdapter.java.

IIIMStatusListener sun.awt.im.iiimp.IIIMFAdapter.statusListener [static, private]

Definition at line 72 of file IIIMFAdapter.java.


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