java.lang.Object | |
↳ | android.text.method.MetaKeyKeyListener |
Known Direct Subclasses |
Known Indirect Subclasses |
This base class encapsulates the behavior for handling the meta keys (shift and alt) and the pseudo-meta state of selecting text. Key listeners that care about meta state should inherit from it; you should not instantiate this class directly in a client.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | META_ALT_LOCKED | ||||||||||
int | META_ALT_ON | ||||||||||
int | META_CAP_LOCKED | ||||||||||
int | META_SHIFT_ON | ||||||||||
int | META_SYM_LOCKED | ||||||||||
int | META_SYM_ON |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Call this method after you handle a keypress so that the meta
state will be reset to unshifted (if it is not still down)
or primed to be reset to unshifted (once it is released).
| |||||||||||
Call this method after you handle a keypress so that the meta
state will be reset to unshifted (if it is not still down)
or primed to be reset to unshifted (once it is released).
| |||||||||||
Gets the state of the meta keys.
| |||||||||||
Gets the state of the meta keys.
| |||||||||||
Gets the state of a particular meta key.
| |||||||||||
Gets the state of a particular meta key.
| |||||||||||
Handles presses of the meta keys.
| |||||||||||
Handles release of the meta keys.
| |||||||||||
Returns true if this object is one that this class would use to
keep track of any meta state in the specified text.
| |||||||||||
Returns true if this object is one that this class would use to
keep track of the selecting meta state in the specified text.
| |||||||||||
Handles presses of the meta keys.
| |||||||||||
Handles release of the meta keys.
| |||||||||||
Call this if you are a method that ignores the locked meta state
(arrow keys, for example) and you handle a key.
| |||||||||||
Resets all meta state to inactive.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Call this if you are a method that ignores the locked meta state
(arrow keys, for example) and you handle a key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Call this method after you handle a keypress so that the meta state will be reset to unshifted (if it is not still down) or primed to be reset to unshifted (once it is released).
Call this method after you handle a keypress so that the meta state will be reset to unshifted (if it is not still down) or primed to be reset to unshifted (once it is released). Takes the current state, returns the new state.
Gets the state of the meta keys.
state | the current meta state bits. |
---|
Gets the state of the meta keys.
text | the buffer in which the meta key would have been pressed. |
---|
Gets the state of a particular meta key.
text | the buffer in which the meta key would have been pressed. |
---|---|
meta | META_SHIFT_ON, META_ALT_ON, META_SYM_ON, or META_SELECTING |
Gets the state of a particular meta key.
state | the current state bits. |
---|---|
meta | META_SHIFT_ON, META_ALT_ON, or META_SYM_ON |
Handles presses of the meta keys.
Handles release of the meta keys.
Returns true if this object is one that this class would use to keep track of any meta state in the specified text.
Returns true if this object is one that this class would use to keep track of the selecting meta state in the specified text.
Handles presses of the meta keys.
Handles release of the meta keys.
Call this if you are a method that ignores the locked meta state (arrow keys, for example) and you handle a key.
Resets all meta state to inactive.
Call this if you are a method that ignores the locked meta state (arrow keys, for example) and you handle a key.