本文整理汇总了Java中java.awt.im.spi.InputMethodContext类的典型用法代码示例。如果您正苦于以下问题:Java InputMethodContext类的具体用法?Java InputMethodContext怎么用?Java InputMethodContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InputMethodContext类属于java.awt.im.spi包,在下文中一共展示了InputMethodContext类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LookupPanel
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
LookupPanel(NeoeInputMethod inputMethod, InputMethodContext context) {
this.inputMethod = inputMethod;
setFont(font);
setOpaque(true);
setForeground(Color.black);
setBackground(Color.white);
enableEvents(AWTEvent.KEY_EVENT_MASK);
enableEvents(AWTEvent.MOUSE_EVENT_MASK);
setLayout(new BorderLayout());
add(getIMEPanel(), BorderLayout.CENTER);
}
示例2: run
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public Object run() {
try {
return InputMethodContext.class.getMethod("createInputMethodJFrame",
new Class[] { String.class, Boolean.TYPE });
} catch (NoSuchMethodException e) {
return null;
}
}
示例3: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public void setInputMethodContext(InputMethodContext context) {
this.context = context;
}
示例4: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
@Override
public synchronized void setInputMethodContext(InputMethodContext context) {
inputContext = context;
}
示例5: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public void setInputMethodContext(InputMethodContext context) {
context.enableClientWindowNotification(this, true);
}
示例6: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public void setInputMethodContext(InputMethodContext context) {
log("setInputMethodContext(" + context + ")");
this.context = context;
context.enableClientWindowNotification(this, false);
}
示例7: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public synchronized void setInputMethodContext(InputMethodContext context) {
inputContext = context;
}
示例8: setInputMethodContext
import java.awt.im.spi.InputMethodContext; //导入依赖的package包/类
public void setInputMethodContext(InputMethodContext context) {
imc = context;
}