下面列出了怎么用java.awt.event.InputMethodListener的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Maps {@code Component.addInputMethodListener(InputMethodListener)}
* through queue
*/
public void addInputMethodListener(final InputMethodListener inputMethodListener) {
runMapping(new MapVoidAction("addInputMethodListener") {
@Override
public void map() {
getSource().addInputMethodListener(inputMethodListener);
}
});
}
/**
* Maps
* {@code Component.removeInputMethodListener(InputMethodListener)}
* through queue
*/
public void removeInputMethodListener(final InputMethodListener inputMethodListener) {
runMapping(new MapVoidAction("removeInputMethodListener") {
@Override
public void map() {
getSource().removeInputMethodListener(inputMethodListener);
}
});
}
@Override
public void addInputMethodListener(InputMethodListener listener) {
if (this.ipFields != null) {
for (JIPV4Field field : this.ipFields) {
field.addInputMethodListener(listener);
}
}
}
@Override
public void removeInputMethodListener(InputMethodListener listener) {
if (this.ipFields != null) {
for (JIPV4Field field : this.ipFields) {
field.removeInputMethodListener(listener);
}
}
}
@Override
public void addInputMethodListener(final InputMethodListener l) {}
@Override
public void addInputMethodListener(final InputMethodListener l) {}
@Override
public void addInputMethodListener(final InputMethodListener l) {}