Sequenceablepublic class EditorAttribute extends Object implements Sequenceable
SystemCapability.Miscservices#INPUTMETHODSequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
ENTER_KEY_TYPE_DONE |
Indicates that there is no more context to enter and the input method engine will be closed.
|
static int |
ENTER_KEY_TYPE_GO |
Indicates that the content entered in the text box will be searched.
|
static int |
ENTER_KEY_TYPE_NEXT |
Indicates that the next text box will be used.
|
static int |
ENTER_KEY_TYPE_PREVIOUS |
Indicates that the previous text box will be used.
|
static int |
ENTER_KEY_TYPE_SEARCH |
Indicates that a user will be redirected to the address entered in the text box.
|
static int |
ENTER_KEY_TYPE_SEND |
Indicates that the content entered in text box will be sent.
|
static int |
ENTER_KEY_TYPE_UNSPECIFIED |
Indicates that no action is specified.
|
static int |
OPTION_ASCII |
Indicates that ASCII codes can be entered.
|
static int |
OPTION_AUTO_CAP_CHARACTERS |
Indicates all caps, for example, "THIS IS THE ALL CAPS STYLE".
|
static int |
OPTION_AUTO_CAP_SENTENCES |
Indicates the sentence case, for example, "This is the sentence case style".
|
static int |
OPTION_AUTO_CAP_WORDS |
Indicates the title case, for example, "This Is The Title Case Style".
|
static int |
OPTION_MULTI_LINE |
Indicates that the text can be displayed in multiple lines.
|
static int |
OPTION_NO_FULLSCREEN |
Indicates that the full-screen mode is not supported.
|
static int |
OPTION_NONE |
Indicates that there is no specific attribute about the text box action.
|
static int |
PATTERN_DATETIME |
Indicates the text box of date and time.
|
static int |
PATTERN_EMAIL |
Indicates the plain text box for email addresses.
|
static int |
PATTERN_NULL |
Indicates that the text box does not belong to any category.
|
static int |
PATTERN_NUMBER |
Indicates the text box of numerics.
|
static int |
PATTERN_PASSWORD |
Indicates the plain text box for passwords.
|
static int |
PATTERN_PHONE |
Indicates the text box of phone numbers.
|
static int |
PATTERN_TEXT |
Indicates the text box of plain texts.
|
static int |
PATTERN_URI |
Indicates the plain text box for URIs.
|
| 构造器 | 说明 |
|---|---|
EditorAttribute() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getEnterKeyType() |
Obtains the key type of the text box.
|
int |
getInputOption() |
Obtains the text box action.
|
int |
getInputPattern() |
Obtains the input pattern of the text box.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
void |
setEnterKeyType(int type) |
Sets a key type of the text box.
|
void |
setInputOption(int option) |
Sets the text box action.
|
void |
setInputPattern(int pattern) |
Sets an input pattern of the text box.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final int ENTER_KEY_TYPE_DONE
public static final int ENTER_KEY_TYPE_GO
public static final int ENTER_KEY_TYPE_NEXT
public static final int ENTER_KEY_TYPE_PREVIOUS
public static final int ENTER_KEY_TYPE_SEARCH
public static final int ENTER_KEY_TYPE_SEND
public static final int ENTER_KEY_TYPE_UNSPECIFIED
public static final int OPTION_ASCII
public static final int OPTION_AUTO_CAP_CHARACTERS
public static final int OPTION_AUTO_CAP_SENTENCES
public static final int OPTION_AUTO_CAP_WORDS
public static final int OPTION_MULTI_LINE
public static final int OPTION_NONE
public static final int OPTION_NO_FULLSCREEN
public static final int PATTERN_DATETIME
public static final int PATTERN_EMAIL
public static final int PATTERN_NULL
public static final int PATTERN_NUMBER
public static final int PATTERN_PASSWORD
public static final int PATTERN_PHONE
public static final int PATTERN_TEXT
public static final int PATTERN_URI
public int getInputPattern()
public void setInputPattern(int pattern)
pattern - Indicates the input pattern to set. Available options are as follows:
EditorAttribute#PATTERN_NULL
EditorAttribute#PATTERN_TEXT
EditorAttribute#PATTERN_NUMBER
EditorAttribute#PATTERN_PHONE
EditorAttribute#PATTERN_DATETIME
EditorAttribute#PATTERN_URI
EditorAttribute#PATTERN_EMAIL,
EditorAttribute#PATTERN_PASSWORD.public int getEnterKeyType()
public void setEnterKeyType(int type)
type - Indicates the key type to set. For example, to search after pressing the Enter key, set this
parameter to EditorAttribute#ENTER_KEY_TYPE_SEARCH. Available options are as follows:
EditorAttribute#ENTER_KEY_TYPE_UNSPECIFIED
EditorAttribute#ENTER_KEY_TYPE_SEARCH
EditorAttribute#ENTER_KEY_TYPE_GO
EditorAttribute#ENTER_KEY_TYPE_SEND
EditorAttribute#ENTER_KEY_TYPE_DONE
EditorAttribute#ENTER_KEY_TYPE_NEXT
EditorAttribute#ENTER_KEY_TYPE_PREVIOUS.public void setInputOption(int option)
option - Indicates the information about the text box action to set. The value can be any of the
following constants or the bitwise inclusive OR result of any two of the following constants:
EditorAttribute#OPTION_NONE
EditorAttribute#OPTION_MULTI_LINE
EditorAttribute#OPTION_AUTO_CAP_CHARACTERS
EditorAttribute#OPTION_AUTO_CAP_WORDS
EditorAttribute#OPTION_AUTO_CAP_SENTENCES
EditorAttribute#OPTION_NO_FULLSCREEN
EditorAttribute#OPTION_ASCII
For example, EditorAttribute#OPTION_NONE | EditorAttribute#OPTION_MULTI_LINE.public int getInputOption()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.