public final class Change
extends java.lang.Object
ChangeSet
. A Change can be one of
Insert, Update or Delete. When creating a Change an index at which the Change will be applied has
to be specified. The index is local in the DiffSectionSpec
coordinates. So to insert a
new item represented by a given Component in any give ChangeSetSpec at the top, a change would
have to be created with
Change.insert(0, component);
Modifier and Type | Field and Description |
---|---|
static int |
DELETE |
static int |
DELETE_RANGE |
static int |
INSERT |
static int |
INSERT_RANGE |
static int |
MOVE |
static int |
UPDATE |
static int |
UPDATE_RANGE |
Constructor and Description |
---|
Change(int ct,
int index,
int toIndex,
int count,
RenderInfo renderInfo,
java.util.List<RenderInfo> renderInfos,
java.util.List<?> prevData,
java.util.List<?> nextData) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
changeTypeToString(int type) |
int |
getCount() |
int |
getIndex() |
java.util.List<?> |
getNextData() |
java.util.List<?> |
getPrevData() |
RenderInfo |
getRenderInfo() |
java.util.List<RenderInfo> |
getRenderInfos() |
int |
getToIndex() |
int |
getType() |
public static final int INSERT
public static final int INSERT_RANGE
public static final int UPDATE
public static final int UPDATE_RANGE
public static final int DELETE
public static final int DELETE_RANGE
public static final int MOVE
public Change(int ct, int index, int toIndex, int count, RenderInfo renderInfo, java.util.List<RenderInfo> renderInfos, java.util.List<?> prevData, java.util.List<?> nextData)
public int getType()
public int getIndex()
public int getToIndex()
public int getCount()
public RenderInfo getRenderInfo()
public java.util.List<RenderInfo> getRenderInfos()
public java.util.List<?> getPrevData()
public java.util.List<?> getNextData()
public static java.lang.String changeTypeToString(int type)