Sequenceablepublic class EditingCapability extends Object implements Sequenceable
This class describes the attributes of the text that an input method expects to obtain from an application. The text is transferred from the edit box of the application to the input method. The text attributes include the maximum number of lines and maximum number of characters in the text.
SystemCapability.Miscservices#INPUTMETHODSequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
EditingCapability() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getMaxChars() |
Obtains the maximum number of characters in the text.
|
int |
getMaxLines() |
Obtains the maximum number of lines in the text.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
void |
setMaxChars(int maxChars) |
Sets the maximum number of characters in the text.
|
void |
setMaxLines(int maxLines) |
Sets the maximum number of lines in the text.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic 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.public int getMaxLines()
This method obtains the maximum number of text lines that the component should return, as suggested by the input method.
public void setMaxLines(int maxLines)
maxLines - Indicates the maximum number of lines to set. The value is a positive integer.public int getMaxChars()
This method obtains the maximum number of characters that the component should return, as suggested by the input method.
public void setMaxChars(int maxChars)
maxChars - Indicates the maximum number of characters to set. The value is a positive integer.