Java Doc for X11InputMethod.java in  » 6.0-JDK-Platform » solaris » sun » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Platform » solaris » sun.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


sun.awt.X11InputMethod

All known Subclasses:   sun.awt.X11.XInputMethod,  sun.awt.motif.MInputMethod,
X11InputMethod
abstract public class X11InputMethod extends InputMethodAdapter (Code)
Input Method Adapter for XIM
author:
   JavaSoft International


Field Summary
protected  ContainerclientComponentWindow
    

Constructor Summary
public  X11InputMethod()
     Constructs an X11InputMethod instance.

Method Summary
public synchronized  voidactivate()
     Activate input method.
abstract protected  voidawtLock()
    
abstract protected  voidawtUnlock()
    
abstract protected  booleancreateXIC()
    
public synchronized  voiddeactivate(boolean isTemporary)
     Deactivate input method.
public  voiddisableInputMethod()
     Explicitly disable the native IME.
 voiddispatchCommittedText(String str, long when)
     Dispatches committed text from XIM to the awt event queue.
 voiddispatchComposedText(String chgText, int chgStyles, int chgOffset, int chgLength, int caretPosition, long when)
     Updates composed text with XIM preedit information and posts composed text to the awt event queue.
public  voiddispatchEvent(AWTEvent e)
     Dispatch event to input method.
final public  voiddispose()
     Frees all X Window resources associated with this object.
protected synchronized  voiddisposeImpl()
    
public  voidendComposition()
     Ends any input composition that may currently be going on in this context.
protected  voidfinalize()
    
 voidflushText()
     Flushes composed and committed text held in this context.
public  ObjectgetControlObject()
     Returns null.
public  LocalegetLocale()
     Returns current input locale.
public  StringgetNativeInputMethodInfo()
     Returns a string with information about the current input method server, or null. On both Linux & SunOS, the value of environment variable XMODIFIERS is returned if set.
abstract protected  ContainergetParent(Component client)
    
abstract protected  ComponentPeergetPeer(Component client)
     Returns peer of the given client component.
public  voidhideWindows()
    
public  booleanisCompositionEnabled()
    
protected  booleanisDisposed()
    
public static  MapmapInputMethodHighlight(InputMethodHighlight highlight)
    
abstract protected  booleanopenXIM()
    
public synchronized  voidremoveNotify()
    
native protected  StringresetXIC()
    
final protected  voidresetXICifneeded()
    
protected  voidsetAWTFocussedComponent(Component component)
    
public  voidsetCharacterSubsets(Subset[] subsets)
     Does nothing - XIM doesn't let you specify which characters you expect.
public  voidsetCompositionEnabled(boolean enable)
    
public  voidsetInputMethodContext(InputMethodContext context)
     Does nothing - this adapter doesn't use the input method context.
public  booleansetLocale(Locale lang)
     Set locale to input.
abstract protected  voidsetXICFocus(ComponentPeer peer, boolean value, boolean active)
    
protected  voidstopListening()
    

Field Detail
clientComponentWindow
protected Container clientComponentWindow(Code)




Constructor Detail
X11InputMethod
public X11InputMethod() throws AWTException(Code)
Constructs an X11InputMethod instance. It initializes the XIM environment if it's not done yet.
exception:
  AWTException - if XOpenIM() failed.




Method Detail
activate
public synchronized void activate()(Code)
Activate input method.



awtLock
abstract protected void awtLock()(Code)
Used to protect preedit data



awtUnlock
abstract protected void awtUnlock()(Code)



createXIC
abstract protected boolean createXIC()(Code)



deactivate
public synchronized void deactivate(boolean isTemporary)(Code)
Deactivate input method.



disableInputMethod
public void disableInputMethod()(Code)
Explicitly disable the native IME. Native IME is not disabled when deactivate is called.



dispatchCommittedText
void dispatchCommittedText(String str, long when)(Code)
Dispatches committed text from XIM to the awt event queue. This method is invoked from the event handler in canvas.c in the AWT Toolkit thread context and thus inside the AWT Lock.
Parameters:
  str - committed text long when



dispatchComposedText
void dispatchComposedText(String chgText, int chgStyles, int chgOffset, int chgLength, int caretPosition, long when)(Code)
Updates composed text with XIM preedit information and posts composed text to the awt event queue. The args of this method correspond to the XIM preedit callback information. The XIM highlight attributes are translated via fixed mapping (i.e., independent from any underlying input method engine). This method is invoked in the AWT Toolkit (X event loop) thread context and thus inside the AWT Lock.



dispatchEvent
public void dispatchEvent(AWTEvent e)(Code)
Dispatch event to input method. InputContext dispatch event with this method. Input method set consume flag if event is consumed in input method.
Parameters:
  e - event



dispose
final public void dispose()(Code)
Frees all X Window resources associated with this object.
See Also:   java.awt.im.spi.InputMethod.dispose



disposeImpl
protected synchronized void disposeImpl()(Code)



endComposition
public void endComposition()(Code)
Ends any input composition that may currently be going on in this context. Depending on the platform and possibly user preferences, this may commit or delete uncommitted text. Any changes to the text are communicated to the active component using an input method event.

A text editing component may call this in a variety of situations, for example, when the user moves the insertion point within the text (but outside the composed text), or when the component's text is saved to a file or copied to the clipboard.




finalize
protected void finalize() throws Throwable(Code)



flushText
void flushText()(Code)
Flushes composed and committed text held in this context. This method is invoked in the AWT Toolkit (X event loop) thread context and thus inside the AWT Lock.



getControlObject
public Object getControlObject()(Code)
Returns null.
See Also:   java.awt.im.spi.InputMethod.getControlObject



getLocale
public Locale getLocale()(Code)
Returns current input locale.



getNativeInputMethodInfo
public String getNativeInputMethodInfo()(Code)
Returns a string with information about the current input method server, or null. On both Linux & SunOS, the value of environment variable XMODIFIERS is returned if set. Otherwise, on SunOS, $HOME/.dtprofile will be parsed to find out the language service engine (atok or wnn) since there is no API in Xlib which returns the information of native IM server or language service and we want to try our best to return as much information as possible. Note: This method could return null on Linux if XMODIFIERS is not set properly or if any IOException is thrown. See man page of XSetLocaleModifiers(3X11) for the usgae of XMODIFIERS, atok12setup(1) and wnn6setup(1) for the information written to $HOME/.dtprofile when you run these two commands.



getParent
abstract protected Container getParent(Component client)(Code)



getPeer
abstract protected ComponentPeer getPeer(Component client)(Code)
Returns peer of the given client component. If the given client component doesn't have peer, peer of the native container of the client is returned.



hideWindows
public void hideWindows()(Code)



isCompositionEnabled
public boolean isCompositionEnabled()(Code)

See Also:   java.awt.im.spi.InputMethod.isCompositionEnabled



isDisposed
protected boolean isDisposed()(Code)



mapInputMethodHighlight
public static Map mapInputMethodHighlight(InputMethodHighlight highlight)(Code)

See Also:   java.awt.Toolkit.mapInputMethodHighlight



openXIM
abstract protected boolean openXIM()(Code)



removeNotify
public synchronized void removeNotify()(Code)

See Also:   java.awt.im.spi.InputMethod.removeNotify



resetXIC
native protected String resetXIC()(Code)



resetXICifneeded
final protected void resetXICifneeded()(Code)



setAWTFocussedComponent
protected void setAWTFocussedComponent(Component component)(Code)

See Also:   sun.awt.im.InputMethodAdapter.setAWTFocussedComponent



setCharacterSubsets
public void setCharacterSubsets(Subset[] subsets)(Code)
Does nothing - XIM doesn't let you specify which characters you expect.
See Also:   java.awt.im.spi.InputMethod.setCharacterSubsets



setCompositionEnabled
public void setCompositionEnabled(boolean enable)(Code)

See Also:   java.awt.im.spi.InputMethod.setCompositionEnabled(boolean)



setInputMethodContext
public void setInputMethodContext(InputMethodContext context)(Code)
Does nothing - this adapter doesn't use the input method context.
See Also:   java.awt.im.spi.InputMethod.setInputMethodContext



setLocale
public boolean setLocale(Locale lang)(Code)
Set locale to input. If input method doesn't support specified locale, false will be returned and its behavior is not changed.
Parameters:
  lang - locale to input the true is returned when specified locale is supported.



setXICFocus
abstract protected void setXICFocus(ComponentPeer peer, boolean value, boolean active)(Code)



stopListening
protected void stopListening()(Code)

See Also:   sun.awt.im.InputMethodAdapter.stopListening



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.