Method
|
Description
|
Constructor
|
public ListenerPanel()
Sets the following settings to make this object
operate as ActiveClient.
this.requestFocus();
this.enableInputMethods(true);
this.addInputMethodListener(this);
this.addKeyListener(this);
this.addMouseListener(this);
|
getMouseListenersInfo
|
public String getMouseListenersInfo()
Returns the string representing the list of the MouseListener objects registered
to this object.
|
printMouseListeners
|
public void printMouseListeners()
This method is for debug.
|
isMouseListener
|
public boolean isMouseListener(MouseListener listener)
Returns true if the MouseLister object specified by the parameter is registered
to this object.
|
isMouseMotionListener
|
public boolean isMouseMotionListener(MouseMotionListener listener)
Returns true if the MouseMotionLister object specified by the parameter
is registered to this object.
|
keyTyped
|
public void keyTyped(KeyEvent event)
This method is defined by the KeyListener.
Performs the following operation for the key in the KeyEvent.
∙ If the key code is an ASCII control code (0x00-0x20), then receives only "
\n" (0x0a, line feed), otherwise receives any key.
: The accelerator - ctrl+x: cut, ctrl+c: copy, ctrl+v: paste
The accelerator belongs to ASCII control codes, so if an ASCII control
code was accepted, then unclear characters would be inserted to the sentence.
=> Key code in the KeyEvent
∙ Gets an editable TextBox object by the getEditableTextBox method of the ContainerManager . If found, then transfers the KeyEvent object to the keyTyped method of the TextBox.
|
keyPressed
|
public void keyPressed(KeyEvent event)
If the key code in the KeyEvent equals Home, End, Up or Down key,
then transfers the KeyEvent object to the keyTyped method of the editable TextBox.
=> Key code in the KeyEvent (*5)
|
keyReleased
|
public void keyReleased(KeyEvent event)
Nothing is done.
|
getInputMethodRequests
|
public InputMethodRequests getInputMethodRequests()
Returns this object.
|
inputMethodTextChanged
|
public void inputMethodTextChanged(InputMethodEvent event)
Gets an editable TextBox object by the getEditableTextBox method of the ContainerManager. If it is found, then transfers the InputMethodEvent object to the inputMethodTextChanged method of the TextBox.
|
caretPositionChanged
|
public void caretPositionChanged(InputMethodEvent event)
Nothing is done.
|
getCommittedTextLength
|
public int getCommittedTextLength()
Nothing is done.
|
getTextLocation
|
public Rectangle getTextLocation(TextHitInfo offset)
Returns the current text input location.
Gets an editable TextBox object by the getEditableTextBox method of the ContainerManager. If it is found, then the current text input location by the getTextLocation method of the TextBox.
If this method isn't implemented, some error occurs when the window of
a candidate list of kana/kanj is displayed.
|
getLocationOffset
|
public TextHitInfo getLocationOffset(int x, int y)
Nothing is done.
|
getInsertPositionOffset
|
public int getInsertPositionOffset()
Nothing is done.
|
getCommittedText
|
public AttributedCharacterIterator getCommittedText(int beginIndex, int
endIndex, Attribute[] attributes)
Nothing is done.
|
cancelLatestCommitted
Text
|
public AttributedCharacterIterator cancelLatestCommittedText(Attribute[]
attributes)
Nothing is done.
|
getSelectedText
|
public AttributedCharacterIterator getSelectedText(Attribute[] attributes)
Nothing is done.
|
mousePressed
|
public void mousePressed(MouseEvent e)
Calls the next two steps to activate the ActiveClient of the Input Method Framework.
this.requestFocus();
this.enableInputMethods(true);
|
mouseClicked
|
public void mouseClicked(MouseEvent e)
Calls the next two steps to activate the ActiveClient of the Input Method Framework.
this.requestFocus();
this.enableInputMethods(true);
|
mouseReleased
|
public void mouseReleased(MouseEvent e)
Nothing is done.
|
mouseEntered
|
public void mouseEntered(MouseEvent e)
Nothing is done.
|
mouseExited
|
public void mouseExited(MouseEvent e)
Nothing is done.
|