Back to index

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

List of all members.

Public Member Functions

boolean setLocale (Locale locale)
 Set the primily InputMethod by locale.
void setCharacterSubsets (Subset[] subsets)
 Set character subsets to the current active InputMethod.
synchronized void dispatchEvent (AWTEvent event)
 Receive AWTEvent throught this method.
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.
void removeNotify ()
 
  

void endComposition ()
 The behavior depends on im or user's preferrence.
void dispose ()
 Dispose the input method.
Object getControlObject ()
 
  

 IIIMPAdapter ()
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.

Static Public Member Functions

static Locale[] getAvailableLocales ()
 This static method is invoked by sun.awt.im.InputMethodManager.

Protected Member Functions

Component getClientComponent ()

Package Functions

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

Private Attributes

Component currentClient
InputMethodContext imc
IIIMPreeditListener preeditListener
IIIMLookupListener lookupListener

Static Private Attributes

static Manager manager
static IIIMStatusListener statusListener

Detailed Description

Definition at line 60 of file IIIMPAdapter.java.


Constructor & Destructor Documentation

Definition at line 187 of file IIIMPAdapter.java.

                          {
       if (manager == null) {
           // set static member manager
           manager = Manager.getInstance();
       }
    }

Here is the call graph for this function:


Member Function Documentation

Called when the input capable component receive a FOCUS_GAINED.

Definition at line 117 of file IIIMPAdapter.java.

Here is the call graph for this function:

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

Receive the IIIMCommittedEvent from Manager through this method.

Then convert it to InputMethodEvent and dispatch to inputContext.

Implements sun.awt.im.iiimp.IIIMCommittedListener.

Definition at line 237 of file IIIMPAdapter.java.

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

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

Called when the input capable component receive a FOCUS_LOST.

Definition at line 139 of file IIIMPAdapter.java.

                                                {
       manager.deactivate(isTemporary);
    }

Here is the call graph for this function:

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

Receive AWTEvent throught this method.

Main interface from sun.awt.im.InputContext.

Definition at line 105 of file IIIMPAdapter.java.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Receive the IIIMEvent from Manager through this method.

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

Definition at line 204 of file IIIMPAdapter.java.

                                           {
    }

Dispose the input method.

Definition at line 160 of file IIIMPAdapter.java.

                          {
       manager.dispose();
    }

Here is the call graph for this function:

The behavior depends on im or user's preferrence.

Definition at line 153 of file IIIMPAdapter.java.

Here is the call graph for this function:

static Locale [] sun.awt.im.iiimp.IIIMPAdapter.getAvailableLocales ( ) [inline, static]

This static method is invoked by sun.awt.im.InputMethodManager.

Definition at line 79 of file IIIMPAdapter.java.

                                                 {
       if (manager == null) {
           manager = Manager.getInstance();
       }
       Locale[] la = manager.getAvailableLocales();
       return la;
    }

Here is the call graph for this function:

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

Definition at line 68 of file IIIMPAdapter.java.

                                             {
       return currentClient;
    }

Here is the caller graph for this function:

  

Definition at line 167 of file IIIMPAdapter.java.

                                     {
       return manager.getControlObject();
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.IIIMPAdapter.preeditDone ( IIIMPreeditEvent  e) [inline]

Definition at line 216 of file IIIMPAdapter.java.

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

Definition at line 217 of file IIIMPAdapter.java.

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

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

Receive the IIIMPreeditEvent from Manager through this method.

Then convert it to InputMethodEvent and dispatch to inputContext.

Definition at line 215 of file IIIMPAdapter.java.

{}

  

Definition at line 146 of file IIIMPAdapter.java.

Here is the call graph for this function:

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

Set character subsets to the current active InputMethod.

Definition at line 97 of file IIIMPAdapter.java.

Here is the call graph for this function:

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

Set the primily InputMethod by locale.

Definition at line 90 of file IIIMPAdapter.java.

                                            {
       return manager.setLocale(locale);
    } 

Here is the call graph for this function:

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

Definition at line 183 of file IIIMPAdapter.java.

                                                 {
       lookupListener = l;
    }

Here is the caller graph for this function:

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

Definition at line 175 of file IIIMPAdapter.java.

                                                   {
       preeditListener = l;
    }

Here is the caller graph for this function:

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

Definition at line 179 of file IIIMPAdapter.java.

                                                 {
       statusListener = l;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 66 of file IIIMPAdapter.java.

InputMethodContext sun.awt.im.iiimp.IIIMPAdapter.imc [private]

Definition at line 112 of file IIIMPAdapter.java.

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

Definition at line 173 of file IIIMPAdapter.java.

Definition at line 65 of file IIIMPAdapter.java.

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

Definition at line 171 of file IIIMPAdapter.java.

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

Definition at line 172 of file IIIMPAdapter.java.


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