public enum Payload extends java.lang.Enum<Payload>
notifyItemChanged().
The value of this enumeration will be provided to the bind method to optimize the view binding in order to update only the inner views interested for the change.
You can still pass your own Object instead of one of these values.| Enum Constant and Description |
|---|
ADD_SUB_ITEM
when a subItem is added to the siblings below a parent
|
CHANGE
for a general update of the content item
|
COLLAPSED
when an item is collapsed by the user or system
|
EXPANDED
when an item is expanded by the user or system
|
FILTER
when the filter has changed and item is still visible
|
LINK
when linking a header from a sectionable item
|
MERGE
when items are notified after a merge
|
MOVE
when item has been moved, the original header/parent receives this payload
|
NO_MORE_LOAD
when no more load is triggered
|
REM_SUB_ITEM
when a subItem is removed from the siblings below a parent
|
SELECTION
when items are notified due to Selecting All items / Clearing Selection)
|
SPLIT
when items are notified after a split
|
UNDO
when header or parent receive back its child after the restoration
|
UNLINK
when un-linking a header from a sectionable item
|
| Modifier and Type | Method and Description |
|---|---|
static Payload |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Payload[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Payload CHANGE
public static final Payload NO_MORE_LOAD
public static final Payload FILTER
public static final Payload UNDO
public static final Payload ADD_SUB_ITEM
public static final Payload REM_SUB_ITEM
public static final Payload MOVE
public static final Payload LINK
public static final Payload UNLINK
public static final Payload SELECTION
public static final Payload MERGE
public static final Payload SPLIT
public static final Payload EXPANDED
public static final Payload COLLAPSED
public static Payload[] values()
for (Payload c : Payload.values()) System.out.println(c);
public static Payload valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null