Lines Matching defs:meta

29  * meta keys such as SHIFT, ALT and SYM as well as the pseudo-meta state of selecting text.
31 * Key listeners that care about meta state should inherit from this class;
34 * This class provides two mechanisms for tracking meta state that can be used
39 * {@link #getMetaState(long)} operate on a meta key state bit mask.</li>
41 * {@link #getMetaState(CharSequence, int)} operate on meta key state flags stored
43 * meta key state of the text editor; they do not carry any positional information.</li>
53 * meta state integer managed by the client. These latched or locked modifiers
56 * In other words, the {@link MetaKeyKeyListener} augments the meta state
58 * to ensure that meta keys not handled by {@link MetaKeyKeyListener} such as
62 * To ensure correct meta key behavior, the following pattern should be used
67 * // Use the combined meta states from the event and the key listener.
108 // These bits are privately used by the meta key key listener.
110 // so as not to conflict with any meta key states publicly defined by KeyEvent.
142 * Resets all meta state to inactive.
152 * Gets the state of the meta keys.
154 * @param text the buffer in which the meta key would have been pressed.
157 * or locked meta key.
167 * Gets the state of the meta keys for a specific key event.
170 * is stored into the text buffer. This method retrieves the meta state
175 * @param text the buffer in which the meta key would have been pressed.
176 * @param event the event for which to evaluate the meta state.
178 * or locked meta key.
190 // omission in @param meta
192 * Gets the state of a particular meta key.
194 * @param meta META_SHIFT_ON, META_ALT_ON, META_SYM_ON
195 * @param text the buffer in which the meta key would have been pressed.
199 public static final int getMetaState(CharSequence text, int meta) {
200 switch (meta) {
219 * Gets the state of a particular meta key to use with a particular key event.
222 * key modifiers, like a virtual keyboard for example, only the meta state in
225 * @param meta META_SHIFT_ON, META_ALT_ON, META_SYM_ON
226 * @param text the buffer in which the meta key would have been pressed.
227 * @param event the event for which to evaluate the meta state.
230 public static final int getMetaState(final CharSequence text, final int meta,
237 if (META_SELECTING == meta) {
246 return getMetaState(metaState, meta);
249 private static int getActive(CharSequence text, Object meta,
256 int flag = sp.getSpanFlags(meta);
268 * Call this method after you handle a keypress so that the meta
280 * keep track of any meta state in the specified text.
289 * keep track of the selecting meta state in the specified text.
305 * Call this if you are a method that ignores the locked meta state
323 * Handles presses of the meta keys.
378 * Handles release of the meta keys.
429 * Call this if you are a method that ignores the locked meta state
450 * Gets the state of the meta keys.
452 * @param state the current meta state bits.
455 * or locked meta key.
482 * Gets the state of a particular meta key.
485 * @param meta META_SHIFT_ON, META_ALT_ON, or META_SYM_ON
489 public static final int getMetaState(long state, int meta) {
490 switch (meta) {
512 * Call this method after you handle a keypress so that the meta
539 * Handles presses of the meta keys.
577 * Handles release of the meta keys.
617 * Clears the state of the specified meta key if it is locked.
618 * @param state the meta key state
619 * @param which meta keys to clear, may be a combination of {@link #META_SHIFT_ON},
636 * The meta key has been pressed but has not yet been used.
642 * The meta key has been pressed and released but has still
649 * The meta key has been pressed and used but has not yet been released.
655 * The meta key has been pressed and released without use, and then