public final class Change extends 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,
List<RenderInfo> renderInfos,
List<?> prevData,
List<?> nextData) |
Modifier and Type | Method and Description |
---|---|
static String |
changeTypeToString(int type) |
int |
getCount() |
int |
getIndex() |
List<?> |
getNextData() |
List<?> |
getPrevData() |
RenderInfo |
getRenderInfo() |
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, List<RenderInfo> renderInfos, List<?> prevData, List<?> nextData)
public int getType()
public int getIndex()
public int getToIndex()
public int getCount()
public RenderInfo getRenderInfo()
public List<RenderInfo> getRenderInfos()
public List<?> getPrevData()
public List<?> getNextData()
public static String changeTypeToString(int type)