public final class KanaKey extends Key
ALT, ALT_GR, BACK_SPACE, CAPS_LOCK, CLEAR, content, CONTEXT, CTRL, DELETE, END, ENTER, ESC, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HOME, INSERT, isLocked, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, LANG, NUM_5, NUM_DELETE, NUM_DIV, NUM_DOWN, NUM_END, NUM_HOME, NUM_INSERT, NUM_LEFT, NUM_LOCK, NUM_MINUS, NUM_MULT, NUM_PAGEDOWN, NUM_PAGEUP, NUM_PLUS, NUM_RIGHT, NUM_UP, PAGE_DOWN, PAGE_UP, PAUSE_BREAK, PRTSCR, SCROLL_LOCK, SHIFT, SPACE, TAB, WINDOWS| Constructor and Description |
|---|
KanaKey()
Initializes a new instance of the KanaKey class.
|
KanaKey(char character)
Initializes a new instance of the KanaKey class with specified character code.
|
KanaKey(char character,
char smallLetter)
Initializes a new instance of the KanaKey class with specified character code.
|
KanaKey(char character,
char smallLetter,
java.lang.Object content)
Initializes a new instance of the KanaKey class with specified character code.
|
KanaKey(char character,
java.lang.Object content)
Initializes a new instance of the KanaKey class with specified character code and content.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this key.
|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance and a specified Key object represent the same value.
|
char |
getCharacter()
Gets the Unicode character associated with this key.
|
char |
getLowerCase()
Gets the lower-case character label.
|
int |
getRepeat()
Gets how many times to send the key code when this key is pressed.
|
java.lang.Character |
getSmallLetter()
Gets a small-letter kana associated with this key.
|
char |
getUpperCase()
Gets the upper-case character label.
|
int |
hashCode()
Returns a hash code for this Key.
|
boolean |
isDakuten()
Gets if this is dakuten modal key.
|
boolean |
isHandakuten()
Gets if this is handakuten modal key.
|
void |
send(boolean releaseSpecialKeys)
Sends this key to the foreground window.
|
void |
setCharacter(char value)
Sets the Unicode character associated with this key.
|
void |
setDakuten(boolean value)
Sets if this is dakuten modal key.
|
void |
setHandakuten(boolean value)
Sets if this is handakuten modal key.
|
void |
setRepeat(int value)
Sets how many times to send the key code when this key is pressed.
|
void |
setSmallLetter(java.lang.Character value)
Sets a small-letter kana associated with this key.
|
copy, getContent, getHeight, getImage, getImagePath, getIsLocked, getLeft, getTop, getWidth, setContent, setHeight, setImage, setImage, setIsLocked, setLeft, setTop, setWidth, updateKeypublic KanaKey()
public KanaKey(char character)
character - public KanaKey(char character,
char smallLetter)
character - The character to send when this key is pressed.smallLetter - The small-letter kana.public KanaKey(char character,
java.lang.Object content)
character - The character to send when this key is pressed.content - Content sent as input to the focused control.public KanaKey(char character,
char smallLetter,
java.lang.Object content)
character - The character to send when this key is pressed.smallLetter - The small-letter kana.content - Content sent as input to the focused control.public char getCharacter()
public void setCharacter(char value)
value - A Unicode character.public java.lang.Character getSmallLetter()
public void setSmallLetter(java.lang.Character value)
value - A Unicode character.public char getLowerCase()
public char getUpperCase()
public int getRepeat()
public void setRepeat(int value)
value - An int value specifying the number of repeats.public void send(boolean releaseSpecialKeys)
Keypublic java.lang.Object clone()
Keypublic boolean equals(java.lang.Object obj)
Keypublic int hashCode()
Keypublic boolean isDakuten()
public void setDakuten(boolean value)
value - A boolean value specifying if this is dakuten modal key.public boolean isHandakuten()
public void setHandakuten(boolean value)
value - A boolean value specifying if this is handakuten modal key.