/** * Handles the caretPositionChanged event by invoking the caretPositionChanged methods on * listener-a and listener-b. * * @param e the item event */ public void caretPositionChanged(InputMethodEvent e) { ((InputMethodListener) a).caretPositionChanged(e); ((InputMethodListener) b).caretPositionChanged(e); }
/** * Handles the inputMethodTextChanged event by invoking the inputMethodTextChanged methods on * listener-a and listener-b. * * @param e the item event */ public void inputMethodTextChanged(InputMethodEvent e) { ((InputMethodListener) a).inputMethodTextChanged(e); ((InputMethodListener) b).inputMethodTextChanged(e); }