public class TextChange
extends java.lang.Object
TextChange class provides an information of changes
made on a RichText object.RichText| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
begin
The beginning index of the text changed, inclusive.
|
int |
changeStatus
The change status.
|
int |
end
The ending index of the text changed, exclusive.
|
static int |
FULL_LAYOUT
Constant for the full layout.
|
int |
layoutBegin
The beginning index of the text to be laid out, inclusive.
|
int |
layoutEnd
The ending index of the text to be laid out, exclusive.
|
int |
lengthChanged
The length changed.
|
static int |
NO_LAYOUT
Constant for the no layout.
|
boolean |
paragraphStyleChanged
True if the paragraph style at the
layoutBegin index
of the text was changed. |
static int |
PARTIAL_LAYOUT
Constant for the partial layout.
|
boolean |
textReplaced
True if the text was replaced.
|
| コンストラクタと説明 |
|---|
TextChange(int changeStatus)
Constructs a non or full change information.
|
TextChange(int begin,
int end,
int layoutBegin,
int layoutEnd,
int lengthChanged,
boolean textReplaced,
boolean paragraphStyleChanged)
Constructs a partial change information.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
isFullLayout()
Checks if the full layout is needed.
|
boolean |
isNoLayout()
Checks if no layout is needed.
|
boolean |
isPartialLayout()
Checks if the partial layout is needed.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public int changeStatus
PARTIAL_LAYOUT,
NO_LAYOUT,
FULL_LAYOUTpublic int begin
public int end
public int layoutBegin
public int layoutEnd
public int lengthChanged
public boolean textReplaced
public boolean paragraphStyleChanged
layoutBegin index
of the text was changed.
This variable is valid when partail layout is needed.public static final int PARTIAL_LAYOUT
public static final int NO_LAYOUT
public static final int FULL_LAYOUT
public TextChange(int begin,
int end,
int layoutBegin,
int layoutEnd,
int lengthChanged,
boolean textReplaced,
boolean paragraphStyleChanged)
begin - the beginning index of the text changed,
inclusive.end - the ending index of the text changed,
exclusive.layoutBegin - the beginning index of the text to be
laid out, inclusive.layoutEnd - the ending index of the text to be laid
out, exclusive.lengthChanged - the length changed.textReplaced - true if the text was replaced.paragraphStyleChanged - true if the paragraph style
at the layoutBegin index of
the text was changed.public TextChange(int changeStatus)
changeStatus - the change status. NO_LAYOUT and
FULL_LAYOUT are valied.public boolean isPartialLayout()
public boolean isNoLayout()
public boolean isFullLayout()
public java.lang.String toString()
toString クラス内 java.lang.Object