Back to index

im-sdk  12.3.91
Public Member Functions | Static Public Member Functions | Static Public Attributes | Package Functions | Static Package Functions | Package Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
sun.awt.im.iiimp.Manager Class Reference

This is package private class. More...

Collaboration diagram for sun.awt.im.iiimp.Manager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void dispatchActionEvent (IIIMActionEvent e)
void dispatchAuxEvent (IIIMAuxEvent e)
void dispatchPreeditEvent (IIIMPreeditEvent e)
void dispatchCommittedEvent (IIIMCommittedEvent e)
void dispatchStatusEvent (IIIMStatusEvent e)
void dispatchLookupEvent (IIIMLookupEvent e)
void markProcessedUpperListener (IIIMEvent e, IIIMListener l)
Component getClientComponent ()
Locale[] getAvailableLocales ()
void dispatchActionEvent (IIIMActionEvent e)
void dispatchAuxEvent (IIIMAuxEvent e)
void dispatchPreeditEvent (IIIMPreeditEvent e)
void dispatchCommittedEvent (IIIMCommittedEvent e)
void dispatchStatusEvent (IIIMStatusEvent e)
void dispatchLookupEvent (IIIMLookupEvent e)
void markProcessedUpperListener (IIIMEvent e, IIIMListener l)
Component getClientComponent ()
Locale[] getAvailableLocales ()

Static Public Member Functions

static Manager getInstance ()
static ODClassLoader getLoader ()
static Manager getInstance ()
static ODClassLoader getLoader ()

Static Public Attributes

static boolean DEBUG = false
static boolean COLOR_SUPPORT = false
static boolean NO_STATUS = false

Package Functions

void setManageRule (ManageRule rule)
void setCCDEF (String ccdef)
void setIIIMPAdapter (IIIMPAdapter adapter)
void setIIIMActionListener (IIIMActionListener l)
void setIIIMPreeditListener (IIIMPreeditListener l)
IIIMPreeditListener getIIIMPreeditListener ()
void setIIIMCommittedListener (IIIMCommittedListener l)
IIIMCommittedListener getIIIMCommittedListener ()
void setIIIMLookupListener (IIIMLookupListener l)
void setIIIMStatusListener (IIIMStatusListener l)
void setIIIMAuxListener (IIIMAuxListener l)
void dispatchEvent (IIIMEvent ev)
Locale getCurrentLocale ()
boolean setLocale (Locale locale)
void setCharacterSubsets (Subset[] subsets)
void activate ()
void deactivate (boolean isTemporary)
void removeNotify ()
void endComposition ()
void dispose ()
Object getControlObject ()
void setManageRule (ManageRule rule)
void setCCDEF (String ccdef)
void setIIIMFAdapter (IIIMFAdapter adapter)
void setIIIMActionListener (IIIMActionListener l)
void setIIIMPreeditListener (IIIMPreeditListener l)
IIIMPreeditListener getIIIMPreeditListener ()
void setIIIMCommittedListener (IIIMCommittedListener l)
IIIMCommittedListener getIIIMCommittedListener ()
void setIIIMLookupListener (IIIMLookupListener l)
void setIIIMStatusListener (IIIMStatusListener l)
void setIIIMAuxListener (IIIMAuxListener l)
void dispatchEvent (IIIMEvent ev)
Locale getCurrentLocale ()
boolean setLocale (Locale locale)
void setCharacterSubsets (Subset[] subsets)
void activate ()
void deactivate (boolean isTemporary)
void removeNotify ()
void endComposition ()
void dispose ()
Object getControlObject ()

Static Package Functions

static void setPD (ProtocolDriver pd)
static void setLoader (ODClassLoader ld)
static void initProps ()
static String setProperty (String key, String value)
static String getProperty (String key)
static String getProperty (String key, String def)
static void setPD (ProtocolDriver pd)
static void setLoader (ODClassLoader ld)
static void initProps ()
static String setProperty (String key, String value)
static String getProperty (String key)
static String getProperty (String key, String def)

Package Attributes

Locale currentLocale = null

Private Member Functions

 Manager ()
 Manager ()

Static Private Member Functions

static void collectRules ()
static void collectRules ()

Private Attributes

ManageRule rule
IIIMPreeditListener preeditListener
IIIMCommittedListener committedListener
IIIMLookupListener lookupListener
IIIMStatusListener statusListener
IIIMActionListener actionListener
IIIMAuxListener auxListeners
IIIMPAdapter adapter
IIIMFAdapter adapter

Static Private Attributes

static ProtocolDriver protocolDriver = null
static final String PCE_CLASSNAME = "sun.awt.im.iiimp.PCE"
static final String DEFAULT_RULE = " sun.awt.im.iiimp.ProtocolDriver"
static final String TEST_RULE = "sun.awt.im.iiimp.LWE2"
static final String PCE_TEST_RULE = " sun.awt.im.iiimp.PseudoPD"
static String defaultRuleString
static String currentRuleString
static IIIMKeyEvent toggleKey = new IIIMKeyEvent("Alt+Shift")
static IIIMKeyEvent editHotKey = new IIIMKeyEvent("F12")
static HashSet ruleTable = new HashSet()
static Manager manager
static ODClassLoader loader
static Properties iiimProps = null
static String userPropsFile

Detailed Description

This is package private class.

Definition at line 63 of file Manager.java.


Constructor & Destructor Documentation

sun.awt.im.iiimp.Manager.Manager ( ) [inline, private]

Definition at line 126 of file Manager.java.

                      {
       initProps();

       DEBUG =
           getProperty("iiimf.manager.debug", "false").equals("true") ?
           true : false;

       COLOR_SUPPORT =
           getProperty("iiimf.gui.color", "false").equals("true") ?
           true : false;

       NO_STATUS =
           getProperty("iiimf.status.none", "false").equals("true") ?
           true : false;

       defaultRuleString =
           getProperty("iiimf.manager.rule", DEFAULT_RULE);
       currentRuleString =
           getProperty("iiimf.manager.rule.userpref", defaultRuleString);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

sun.awt.im.iiimp.Manager.Manager ( ) [inline, private]

Definition at line 126 of file Manager.java.

                      {
       initProps();

       DEBUG =
           getProperty("iiimf.manager.debug", "false").equals("true") ?
           true : false;

       COLOR_SUPPORT =
           getProperty("iiimf.gui.color", "false").equals("true") ?
           true : false;

       NO_STATUS =
           getProperty("iiimf.status.none", "false").equals("true") ?
           true : false;

       defaultRuleString =
           getProperty("iiimf.manager.rule", DEFAULT_RULE);
       currentRuleString =
           getProperty("iiimf.manager.rule.userpref", defaultRuleString);
    }

Here is the call graph for this function:


Member Function Documentation

void sun.awt.im.iiimp.Manager.activate ( ) [inline, package]

Definition at line 486 of file Manager.java.

                    {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).activate();
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).activate();
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).activate();
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.activate ( ) [inline, package]

Definition at line 487 of file Manager.java.

                    {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).activate();
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).activate();
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).activate();
       }
    }

Here is the call graph for this function:

static void sun.awt.im.iiimp.Manager.collectRules ( ) [inline, static, private]

Definition at line 114 of file Manager.java.

                                       {
       // local rules
       String localRules = getProperty("iiimf.manager.rules",
                                   defaultRuleString);
       StringTokenizer st = new StringTokenizer(localRules, ",");
       while (st.hasMoreTokens()) {
           String token = st.nextToken();
           ruleTable.add(new ManageRule(token));
       }
       // remote rules is added when setPD is called.
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static void sun.awt.im.iiimp.Manager.collectRules ( ) [inline, static, private]

Definition at line 114 of file Manager.java.

                                       {
       // local rules
       String localRules = getProperty("iiimf.manager.rules",
                                   defaultRuleString);
       StringTokenizer st = new StringTokenizer(localRules, ",");
       while (st.hasMoreTokens()) {
           String token = st.nextToken();
           ruleTable.add(new ManageRule(token));
       }
       // remote rules is added when setPD is called.
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.deactivate ( boolean  isTemporary) [inline, package]

Definition at line 501 of file Manager.java.

                                         {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).deactivate(isTemporary);
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).deactivate(isTemporary);
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).deactivate(isTemporary);
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.deactivate ( boolean  isTemporary) [inline, package]

Definition at line 502 of file Manager.java.

                                         {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).deactivate(isTemporary);
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).deactivate(isTemporary);
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).deactivate(isTemporary);
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchActionEvent ( IIIMActionEvent  e) [inline]

Definition at line 232 of file Manager.java.

                                                       {
       switch(e.getType()) {
         case IIIMActionEvent.LOOKUP_PROCESSED:
           Component c = getClientComponent();
           int ch = ((String)e.getArg()).charAt(0);
           KeyEvent kev = new KeyEvent(c, KeyEvent.KEY_PRESSED,
                                   0, 0, ch, (char)ch);
           adapter.dispatchEvent(kev);
           break;
         default:
           for (int i = 0; i < rule.size(); i++) {
              IIIMListener iiimListener = rule.get(i);
              if (iiimListener instanceof IIIMActionListener &&
                  !e.isProcessedBy(iiimListener) && !e.isConsumed()) {
                  ((IIIMActionListener)iiimListener).actionPerformed(e);
                  e.processedBy(iiimListener);
              }
           }
           break;
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchActionEvent ( IIIMActionEvent  e) [inline]

Definition at line 232 of file Manager.java.

                                                       {
       switch(e.getType()) {
         case IIIMActionEvent.LOOKUP_PROCESSED:
           Component c = getClientComponent();
           int ch = ((String)e.getArg()).charAt(0);
           KeyEvent kev = new KeyEvent(c, KeyEvent.KEY_PRESSED,
                                   0, 0, ch, (char)ch);
           adapter.dispatchEvent(kev);
           break;
         default:
           for (int i = 0; i < rule.size(); i++) {
              IIIMListener iiimListener = rule.get(i);
              if (iiimListener instanceof IIIMActionListener &&
                  !e.isProcessedBy(iiimListener) && !e.isConsumed()) {
                  ((IIIMActionListener)iiimListener).actionPerformed(e);
                  e.processedBy(iiimListener);
              }
           }
           break;
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchAuxEvent ( IIIMAuxEvent  e) [inline]

Definition at line 254 of file Manager.java.

                                                 {
       if (e.getType() == IIIMAuxEvent.SETVALUES) {
           // client -> server
           if (protocolDriver != null) {
              try {
                  protocolDriver.sendAuxData(e);
              } catch(Exception ex) {
                  if (Manager.DEBUG) {
                     ex.printStackTrace();
                  }
              }
           }
       } else if (auxListeners != null) {
           // server -> client
           switch(e.getType()) {
             case IIIMAuxEvent.START:
              auxListeners.auxStart(e);
              break;
             case IIIMAuxEvent.DONE:
              auxListeners.auxDone(e);
              break;
             case IIIMAuxEvent.DRAW:
              auxListeners.auxDraw(e);
              break;
             default:
              System.out.println("Unknown aux event");
              break;
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchAuxEvent ( IIIMAuxEvent  e) [inline]

Definition at line 254 of file Manager.java.

                                                 {
       if (e.getType() == IIIMAuxEvent.SETVALUES) {
           // client -> server
           if (protocolDriver != null) {
              try {
                  protocolDriver.sendAuxData(e);
              } catch(Exception ex) {
                  if (Manager.DEBUG) {
                     ex.printStackTrace();
                  }
              }
           }
       } else if (auxListeners != null) {
           // server -> client
           switch(e.getType()) {
             case IIIMAuxEvent.START:
              auxListeners.auxStart(e);
              break;
             case IIIMAuxEvent.DONE:
              auxListeners.auxDone(e);
              break;
             case IIIMAuxEvent.DRAW:
              auxListeners.auxDraw(e);
              break;
             default:
              System.out.println("Unknown aux event");
              break;
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchCommittedEvent ( IIIMCommittedEvent  e) [inline]

Definition at line 304 of file Manager.java.

                                                             {
       if (committedListener == null) {
           return;
       }
       committedListener.committedPerformed(e);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchCommittedEvent ( IIIMCommittedEvent  e) [inline]

Definition at line 304 of file Manager.java.

                                                             {
       if (committedListener == null) {
           return;
       }
       committedListener.committedPerformed(e);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchEvent ( IIIMEvent  ev) [inline, package]

Definition at line 222 of file Manager.java.

                                     {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener iiimListener = rule.get(i);
           if (!ev.isProcessedBy(iiimListener) && !ev.isConsumed()) {
              iiimListener.dispatchEvent(ev);
              ev.processedBy(iiimListener);
           }
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.dispatchEvent ( IIIMEvent  ev) [inline, package]

Definition at line 222 of file Manager.java.

                                     {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener iiimListener = rule.get(i);
           if (!ev.isProcessedBy(iiimListener) && !ev.isConsumed()) {
              iiimListener.dispatchEvent(ev);
              ev.processedBy(iiimListener);
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.dispatchLookupEvent ( IIIMLookupEvent  e) [inline]

Definition at line 334 of file Manager.java.

                                                       {
       if (lookupListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMLookupEvent.START:
           lookupListener.lookupStart(e);
           break;
         case IIIMLookupEvent.DONE:
           lookupListener.lookupDone(e);
           break;
         case IIIMLookupEvent.DRAW:
           lookupListener.lookupDraw(e);
           break;
         case IIIMLookupEvent.PROCESS:
           lookupListener.lookupProcess(e);
           break;
         default:
           System.out.println("Unknown lookup event");
       }
    }
void sun.awt.im.iiimp.Manager.dispatchLookupEvent ( IIIMLookupEvent  e) [inline]

Definition at line 334 of file Manager.java.

                                                       {
       if (lookupListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMLookupEvent.START:
           lookupListener.lookupStart(e);
           break;
         case IIIMLookupEvent.DONE:
           lookupListener.lookupDone(e);
           break;
         case IIIMLookupEvent.DRAW:
           lookupListener.lookupDraw(e);
           break;
         case IIIMLookupEvent.PROCESS:
           lookupListener.lookupProcess(e);
           break;
         default:
           System.out.println("Unknown lookup event");
       }
    }
void sun.awt.im.iiimp.Manager.dispatchPreeditEvent ( IIIMPreeditEvent  e) [inline]

Definition at line 285 of file Manager.java.

                                                         {
       if (preeditListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMPreeditEvent.START:
           preeditListener.preeditStart(e);
           break;
         case IIIMPreeditEvent.DONE:
           preeditListener.preeditDone(e);
           break;
         case IIIMPreeditEvent.DRAW:
           preeditListener.preeditDraw(e);
           break;
         default:
           System.out.println(" Unknown preedit event");
       }
    }
void sun.awt.im.iiimp.Manager.dispatchPreeditEvent ( IIIMPreeditEvent  e) [inline]

Definition at line 285 of file Manager.java.

                                                         {
       if (preeditListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMPreeditEvent.START:
           preeditListener.preeditStart(e);
           break;
         case IIIMPreeditEvent.DONE:
           preeditListener.preeditDone(e);
           break;
         case IIIMPreeditEvent.DRAW:
           preeditListener.preeditDraw(e);
           break;
         default:
           System.out.println(" Unknown preedit event");
       }
    }
void sun.awt.im.iiimp.Manager.dispatchStatusEvent ( IIIMStatusEvent  e) [inline]

Definition at line 311 of file Manager.java.

                                                       {
       if (NO_STATUS) {
           return;
       }

       if (statusListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMStatusEvent.START:
           statusListener.statusStart(e);
           break;
         case IIIMStatusEvent.DONE:
           statusListener.statusDone(e);
           break;
         case IIIMStatusEvent.DRAW:
           statusListener.statusDraw(e);
           break;
         default:
           System.out.println(" Unknown status event");
       }
    }
void sun.awt.im.iiimp.Manager.dispatchStatusEvent ( IIIMStatusEvent  e) [inline]

Definition at line 311 of file Manager.java.

                                                       {
       if (NO_STATUS) {
           return;
       }

       if (statusListener == null) {
           return;
       }
       switch(e.getType()) {
         case IIIMStatusEvent.START:
           statusListener.statusStart(e);
           break;
         case IIIMStatusEvent.DONE:
           statusListener.statusDone(e);
           break;
         case IIIMStatusEvent.DRAW:
           statusListener.statusDraw(e);
           break;
         default:
           System.out.println(" Unknown status event");
       }
    }
void sun.awt.im.iiimp.Manager.dispose ( ) [inline, package]

Definition at line 534 of file Manager.java.

                   {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).dispose();
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).dispose();
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).dispose();
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.dispose ( ) [inline, package]

Definition at line 535 of file Manager.java.

                   {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).dispose();
           }
       }
       if (statusListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)statusListener).dispose();
       }
       if (lookupListener instanceof InputMethodAdapter) {
           ((InputMethodAdapter)lookupListener).dispose();
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.endComposition ( ) [inline, package]

Definition at line 525 of file Manager.java.

                          {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).endComposition();
           }
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.endComposition ( ) [inline, package]

Definition at line 526 of file Manager.java.

                          {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).endComposition();
           }
       }
    }

Here is the call graph for this function:

Definition at line 561 of file Manager.java.

                                          {
       // use Set to prevent duplicate entry
       HashSet hs = new HashSet();
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof IMProvider) {
              IMProvider imp = (IMProvider)l;
              Locale[] la = imp.getSupportLocales();
              if (la != null) {
                  for (int j = 0; j < la.length; j++) {
                     hs.add(la[j]);
                  }
              }
           }
       }
       Locale[] locales = new Locale[hs.size()];
       Iterator iterator = hs.iterator();
       int k = 0;
       for (; iterator.hasNext();) {
           locales[k++] = (Locale)iterator.next();
       }
       return locales;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 562 of file Manager.java.

                                          {
       // use Set to prevent duplicate entry
       HashSet hs = new HashSet();
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof IMProvider) {
              IMProvider imp = (IMProvider)l;
              Locale[] la = imp.getSupportLocales();
              if (la != null) {
                  for (int j = 0; j < la.length; j++) {
                     hs.add(la[j]);
                  }
              }
           }
       }
       Locale[] locales = new Locale[hs.size()];
       Iterator iterator = hs.iterator();
       int k = 0;
       for (; iterator.hasNext();) {
           locales[k++] = (Locale)iterator.next();
       }
       return locales;
    }

Here is the call graph for this function:

Definition at line 366 of file Manager.java.

                                          {
       if (adapter == null)
           return null;
       
       return adapter.getClientComponent();
    }

Here is the call graph for this function:

Definition at line 366 of file Manager.java.

                                          {
       if (adapter == null)
           return null;
       
       return adapter.getClientComponent();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Object sun.awt.im.iiimp.Manager.getControlObject ( ) [inline, package]

Definition at line 549 of file Manager.java.

                              {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              Object o = ((InputMethodAdapter)l).getControlObject();
              if (o != null)
                  return o;
           }
       }
       return null;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Object sun.awt.im.iiimp.Manager.getControlObject ( ) [inline, package]

Definition at line 550 of file Manager.java.

                              {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              Object o = ((InputMethodAdapter)l).getControlObject();
              if (o != null)
                  return o;
           }
       }
       return null;
    }

Here is the call graph for this function:

Locale sun.awt.im.iiimp.Manager.getCurrentLocale ( ) [inline, package]

Definition at line 464 of file Manager.java.

                              {
       if (currentLocale != null) {
           return currentLocale;
       }
       return Locale.getDefault();
    }
Locale sun.awt.im.iiimp.Manager.getCurrentLocale ( ) [inline, package]

Definition at line 464 of file Manager.java.

                              {
       if (currentLocale != null) {
           return currentLocale;
       }
       return Locale.getDefault();
    }

Here is the caller graph for this function:

Definition at line 200 of file Manager.java.

                                                     {
       return committedListener;
    }

Here is the caller graph for this function:

Definition at line 200 of file Manager.java.

                                                     {
       return committedListener;
    }
IIIMPreeditListener sun.awt.im.iiimp.Manager.getIIIMPreeditListener ( ) [inline, package]

Definition at line 191 of file Manager.java.

                                                 {
       return preeditListener;
    }

Here is the caller graph for this function:

IIIMPreeditListener sun.awt.im.iiimp.Manager.getIIIMPreeditListener ( ) [inline, package]

Definition at line 191 of file Manager.java.

                                                 {
       return preeditListener;
    }
static Manager sun.awt.im.iiimp.Manager.getInstance ( ) [inline, static]

Definition at line 159 of file Manager.java.

                                        {
       if (manager == null) {
           manager = new Manager();
           manager.setManageRule(new ManageRule(currentRuleString));
           collectRules();
       }
       return manager;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static Manager sun.awt.im.iiimp.Manager.getInstance ( ) [inline, static]

Definition at line 159 of file Manager.java.

                                        {
       if (manager == null) {
           manager = new Manager();
           manager.setManageRule(new ManageRule(currentRuleString));
           collectRules();
       }
       return manager;
    }

Here is the call graph for this function:

Definition at line 173 of file Manager.java.

                                            {
       return loader;
    }

Definition at line 173 of file Manager.java.

                                            {
       return loader;
    }
static String sun.awt.im.iiimp.Manager.getProperty ( String  key) [inline, static, package]

Definition at line 451 of file Manager.java.

                                          {
       return iiimProps.getProperty(key);
    }
static String sun.awt.im.iiimp.Manager.getProperty ( String  key) [inline, static, package]

Definition at line 451 of file Manager.java.

                                          {
       return iiimProps.getProperty(key);
    }

Here is the caller graph for this function:

static String sun.awt.im.iiimp.Manager.getProperty ( String  key,
String  def 
) [inline, static, package]

Definition at line 458 of file Manager.java.

                                                      {
       return iiimProps.getProperty(key, def);
    }
static String sun.awt.im.iiimp.Manager.getProperty ( String  key,
String  def 
) [inline, static, package]

Definition at line 458 of file Manager.java.

                                                      {
       return iiimProps.getProperty(key, def);
    }
static void sun.awt.im.iiimp.Manager.initProps ( ) [inline, static, package]

Definition at line 378 of file Manager.java.

                            {
       iiimProps = new Properties();
       AccessController.doPrivileged(new PrivilegedAction() {
           public Object run() {
              String javaHome = System.getProperty("java.home");
              String userHome = System.getProperty("user.home");
              File f;
              InputStream in;

              try {
                  // $JAVA_HOME/lib/iiimp.properties
                  f = new File(javaHome + File.separator +
                             "lib" + File.separator + "iiimp.properties");
                  if (f != null && f.canRead()) {
                     in = new BufferedInputStream
                         (new FileInputStream(f.getPath()));
                     iiimProps.load(in);
                     in.close();
                  }

                  // $HOME/.iiimp
                  userPropsFile = userHome + File.separator + ".iiimp";
                  f = new File(userPropsFile);
                  if (f != null && f.canRead()) {
                     in = new BufferedInputStream
                         (new FileInputStream(f.getPath()));
                     iiimProps.load(in);
                     in.close();
                  }
              } catch(Exception e) {
                  if (Manager.DEBUG) {
                     e.printStackTrace();
                  }
              }
              return null;
           }
       });
    }

Here is the call graph for this function:

static void sun.awt.im.iiimp.Manager.initProps ( ) [inline, static, package]

Definition at line 378 of file Manager.java.

                            {
       iiimProps = new Properties();
       AccessController.doPrivileged(new PrivilegedAction() {
           public Object run() {
              String javaHome = System.getProperty("java.home");
              String userHome = System.getProperty("user.home");
              File f;
              InputStream in;

              try {
                  // $JAVA_HOME/lib/iiimp.properties
                  f = new File(javaHome + File.separator +
                             "lib" + File.separator + "iiimp.properties");
                  if (f != null && f.canRead()) {
                     in = new BufferedInputStream
                         (new FileInputStream(f.getPath()));
                     iiimProps.load(in);
                     in.close();
                  }

                  // $HOME/.iiimp
                  userPropsFile = userHome + File.separator + ".iiimp";
                  f = new File(userPropsFile);
                  if (f != null && f.canRead()) {
                     in = new BufferedInputStream
                         (new FileInputStream(f.getPath()));
                     iiimProps.load(in);
                     in.close();
                  }
              } catch(Exception e) {
                  if (Manager.DEBUG) {
                     e.printStackTrace();
                  }
              }
              return null;
           }
       });
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.markProcessedUpperListener ( IIIMEvent  e,
IIIMListener  l 
) [inline]

Definition at line 356 of file Manager.java.

                                                                        {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener iiimListener = rule.get(i);
           e.processedBy(iiimListener);
           if (iiimListener.equals(rule.get(i))) {
              break;
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.markProcessedUpperListener ( IIIMEvent  e,
IIIMListener  l 
) [inline]

Definition at line 356 of file Manager.java.

                                                                        {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener iiimListener = rule.get(i);
           e.processedBy(iiimListener);
           if (iiimListener.equals(rule.get(i))) {
              break;
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.removeNotify ( ) [inline, package]

Definition at line 516 of file Manager.java.

                        {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).removeNotify();
           }
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.removeNotify ( ) [inline, package]

Definition at line 517 of file Manager.java.

                        {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).removeNotify();
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.setCCDEF ( String  ccdef) [inline, package]

Definition at line 151 of file Manager.java.

                                {
       rule.setCCDEF(ccdef);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.setCCDEF ( String  ccdef) [inline, package]

Definition at line 151 of file Manager.java.

                                {
       rule.setCCDEF(ccdef);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setCharacterSubsets ( Subset[]  subsets) [inline, package]

Definition at line 477 of file Manager.java.

                                               {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).setCharacterSubsets(subsets);
           }
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setCharacterSubsets ( Subset[]  subsets) [inline, package]

Definition at line 478 of file Manager.java.

                                               {
       for (int i = 0; i < rule.size(); i++) {
           IIIMListener l = rule.get(i);
           if (l instanceof InputMethodAdapter) {
              ((InputMethodAdapter)l).setCharacterSubsets(subsets);
           }
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMActionListener ( IIIMActionListener  l) [inline, package]

Definition at line 181 of file Manager.java.

                                                     {
       // override previous one
       actionListener = l;  
    }
void sun.awt.im.iiimp.Manager.setIIIMActionListener ( IIIMActionListener  l) [inline, package]

Definition at line 181 of file Manager.java.

                                                     {
       // override previous one
       actionListener = l;  
    }
void sun.awt.im.iiimp.Manager.setIIIMAuxListener ( IIIMAuxListener  l) [inline, package]

Definition at line 214 of file Manager.java.

                                               {
       // add existing auxes
       auxListeners = IIIMAuxListeners.add(auxListeners, l);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMAuxListener ( IIIMAuxListener  l) [inline, package]

Definition at line 214 of file Manager.java.

                                               {
       // add existing auxes
       auxListeners = IIIMAuxListeners.add(auxListeners, l);
    }

Here is the call graph for this function:

Definition at line 195 of file Manager.java.

                                                           {
       // override previous one
       committedListener = l;
    }

Definition at line 195 of file Manager.java.

                                                           {
       // override previous one
       committedListener = l;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMFAdapter ( IIIMFAdapter  adapter) [inline, package]

Definition at line 177 of file Manager.java.

                                               {
       this.adapter = adapter;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMLookupListener ( IIIMLookupListener  l) [inline, package]

Definition at line 204 of file Manager.java.

                                                     {
       // override previous one
       lookupListener = l;
    }
void sun.awt.im.iiimp.Manager.setIIIMLookupListener ( IIIMLookupListener  l) [inline, package]

Definition at line 204 of file Manager.java.

                                                     {
       // override previous one
       lookupListener = l;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMPAdapter ( IIIMPAdapter  adapter) [inline, package]

Definition at line 177 of file Manager.java.

                                               {
       this.adapter = adapter;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMPreeditListener ( IIIMPreeditListener  l) [inline, package]

Definition at line 186 of file Manager.java.

                                                       {
       // override previous one
       preeditListener = l;
    }
void sun.awt.im.iiimp.Manager.setIIIMPreeditListener ( IIIMPreeditListener  l) [inline, package]

Definition at line 186 of file Manager.java.

                                                       {
       // override previous one
       preeditListener = l;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setIIIMStatusListener ( IIIMStatusListener  l) [inline, package]

Definition at line 209 of file Manager.java.

                                                     {
       // override previous one
       statusListener = l;
    }
void sun.awt.im.iiimp.Manager.setIIIMStatusListener ( IIIMStatusListener  l) [inline, package]

Definition at line 209 of file Manager.java.

                                                     {
       // override previous one
       statusListener = l;
    }

Here is the caller graph for this function:

static void sun.awt.im.iiimp.Manager.setLoader ( ODClassLoader  ld) [inline, static, package]

Definition at line 169 of file Manager.java.

                                            {
       loader = ld;
    }

Here is the caller graph for this function:

static void sun.awt.im.iiimp.Manager.setLoader ( ODClassLoader  ld) [inline, static, package]

Definition at line 169 of file Manager.java.

                                            {
       loader = ld;
    }
boolean sun.awt.im.iiimp.Manager.setLocale ( Locale  locale) [inline, package]

Definition at line 472 of file Manager.java.

                                     {
       currentLocale = locale;
       protocolDriver.activate();
       return true;
    }

Here is the call graph for this function:

boolean sun.awt.im.iiimp.Manager.setLocale ( Locale  locale) [inline, package]

Definition at line 472 of file Manager.java.

                                     {
       currentLocale = locale;
       return true;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setManageRule ( ManageRule  rule) [inline, package]

Definition at line 147 of file Manager.java.

                                        {
       this.rule = rule;
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.Manager.setManageRule ( ManageRule  rule) [inline, package]

Definition at line 147 of file Manager.java.

                                        {
       this.rule = rule;
    }
static void sun.awt.im.iiimp.Manager.setPD ( ProtocolDriver  pd) [inline, static, package]

Definition at line 75 of file Manager.java.

                                         {
       protocolDriver = pd;
       String[] ims = pd.getEngineScript();

       if (ims != null) {
           for (int i = 0; i < ims.length; i++) {
              ruleTable.add(new ManageRule(ims[i]));
           }
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static void sun.awt.im.iiimp.Manager.setPD ( ProtocolDriver  pd) [inline, static, package]

Definition at line 75 of file Manager.java.

                                         {
       protocolDriver = pd;
       String[] ims = pd.getEngineScript();

       if (ims != null) {
           for (int i = 0; i < ims.length; i++) {
              ruleTable.add(new ManageRule(ims[i]));
           }
       }
    }

Here is the call graph for this function:

static String sun.awt.im.iiimp.Manager.setProperty ( String  key,
String  value 
) [inline, static, package]

Definition at line 420 of file Manager.java.

                                                        {
       String ret = (String)iiimProps.setProperty(key, value);
       
       AccessController.doPrivileged(new PrivilegedAction() {
           public Object run() {
              File f;
              OutputStream out;

              try {
                  f = new File(userPropsFile);
                  if (f != null && f.canWrite()) {
                     out = new BufferedOutputStream
                         (new FileOutputStream(f.getPath()));
                     iiimProps.store(out, "iiimf property file");
                     out.close();
                  }
              } catch(Exception e) {
                  if (Manager.DEBUG) {
                     e.printStackTrace();
                  }
              }
              return null;
           }
       });
                  
       return ret;
    }

Here is the call graph for this function:

static String sun.awt.im.iiimp.Manager.setProperty ( String  key,
String  value 
) [inline, static, package]

Definition at line 420 of file Manager.java.

                                                        {
       String ret = (String)iiimProps.setProperty(key, value);
       
       AccessController.doPrivileged(new PrivilegedAction() {
           public Object run() {
              File f;
              OutputStream out;

              try {
                  f = new File(userPropsFile);
                  if (f != null && f.canWrite()) {
                     out = new BufferedOutputStream
                         (new FileOutputStream(f.getPath()));
                     iiimProps.store(out, "iiimf property file");
                     out.close();
                  }
              } catch(Exception e) {
                  if (Manager.DEBUG) {
                     e.printStackTrace();
                  }
              }
              return null;
           }
       });
                  
       return ret;
    }

Here is the call graph for this function:


Member Data Documentation

IIIMActionListener sun.awt.im.iiimp.Manager.actionListener [private]

Definition at line 71 of file Manager.java.

Definition at line 73 of file Manager.java.

Definition at line 73 of file Manager.java.

IIIMAuxListener sun.awt.im.iiimp.Manager.auxListeners [private]

Definition at line 72 of file Manager.java.

static boolean sun.awt.im.iiimp.Manager.COLOR_SUPPORT = false [static]

Definition at line 106 of file Manager.java.

Definition at line 68 of file Manager.java.

Locale sun.awt.im.iiimp.Manager.currentLocale = null [package]

Definition at line 462 of file Manager.java.

static String sun.awt.im.iiimp.Manager.currentRuleString [static, private]

Definition at line 103 of file Manager.java.

static boolean sun.awt.im.iiimp.Manager.DEBUG = false [static]

Definition at line 105 of file Manager.java.

static final String sun.awt.im.iiimp.Manager.DEFAULT_RULE = " sun.awt.im.iiimp.ProtocolDriver" [static, private]

Definition at line 91 of file Manager.java.

static String sun.awt.im.iiimp.Manager.defaultRuleString [static, private]

Definition at line 102 of file Manager.java.

static IIIMKeyEvent sun.awt.im.iiimp.Manager.editHotKey = new IIIMKeyEvent("F12") [static, private]

Definition at line 111 of file Manager.java.

static Properties sun.awt.im.iiimp.Manager.iiimProps = null [static, private]

Definition at line 374 of file Manager.java.

Definition at line 168 of file Manager.java.

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

Definition at line 69 of file Manager.java.

static Manager sun.awt.im.iiimp.Manager.manager [static, private]

Definition at line 158 of file Manager.java.

static boolean sun.awt.im.iiimp.Manager.NO_STATUS = false [static]

Definition at line 107 of file Manager.java.

static final String sun.awt.im.iiimp.Manager.PCE_CLASSNAME = "sun.awt.im.iiimp.PCE" [static, private]

Definition at line 88 of file Manager.java.

static final String sun.awt.im.iiimp.Manager.PCE_TEST_RULE = " sun.awt.im.iiimp.PseudoPD" [static, private]

Definition at line 98 of file Manager.java.

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

Definition at line 67 of file Manager.java.

Definition at line 86 of file Manager.java.

Definition at line 66 of file Manager.java.

static HashSet sun.awt.im.iiimp.Manager.ruleTable = new HashSet() [static, private]

Definition at line 112 of file Manager.java.

IIIMStatusListener sun.awt.im.iiimp.Manager.statusListener [private]

Definition at line 70 of file Manager.java.

static final String sun.awt.im.iiimp.Manager.TEST_RULE = "sun.awt.im.iiimp.LWE2" [static, private]

Definition at line 94 of file Manager.java.

static IIIMKeyEvent sun.awt.im.iiimp.Manager.toggleKey = new IIIMKeyEvent("Alt+Shift") [static, private]

Definition at line 110 of file Manager.java.

static String sun.awt.im.iiimp.Manager.userPropsFile [static, private]

Definition at line 376 of file Manager.java.


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