Package com.storedobject.ui
Interface LinkValue<T extends StoredObject>
- All Superinterfaces:
EditableList<T>
,StoredObjectLink<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.core.StoredObjectLink
StoredObjectLink.Copy<O extends StoredObject>
-
Field Summary
Fields inherited from interface com.storedobject.core.StoredObjectLink
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Aad a new item to the list.void
clear()
default boolean
Delete an item from the list.getField()
getLink()
default String
getName()
default int
getType()
default boolean
Check if the given item was added to the list or not.default boolean
Check if the given item was deleted from the list or not.default boolean
Check if the given item was edited or not.Get a stream of all items (including original, added, deleted and edited items).default boolean
Undelete an item that was deleted earlier.default boolean
Update an item.Methods inherited from interface com.storedobject.core.EditableList
add, append, append, contains, getDuplicate, isSavePending, size, stream, streamAdded, streamDeleted, streamEdited
Methods inherited from interface com.storedobject.core.StoredObjectLink
attach, checkForDuplicate, copy, detach, getMaster, isAllowAny, isDetail, save
-
Method Details
-
getLink
StoredObjectUtility.Link<T> getLink() -
getType
default int getType()- Specified by:
getType
in interfaceStoredObjectLink<T extends StoredObject>
-
getName
- Specified by:
getName
in interfaceStoredObjectLink<T extends StoredObject>
-
getEditableList
EditableProvider<T> getEditableList() -
isAdded
Description copied from interface:EditableList
Check if the given item was added to the list or not.- Specified by:
isAdded
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to check.- Returns:
- True/false.
-
isDeleted
Description copied from interface:EditableList
Check if the given item was deleted from the list or not.- Specified by:
isDeleted
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to check.- Returns:
- True/false.
-
isEdited
Description copied from interface:EditableList
Check if the given item was edited or not.- Specified by:
isEdited
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to check.- Returns:
- True/false.
-
streamAll
Description copied from interface:EditableList
Get a stream of all items (including original, added, deleted and edited items).- Specified by:
streamAll
in interfaceEditableList<T extends StoredObject>
- Returns:
- Stream of items.
-
add
Description copied from interface:EditableList
Aad a new item to the list.- Specified by:
add
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to add.- Returns:
- True if added, otherwise, false.
-
delete
Description copied from interface:EditableList
Delete an item from the list. (If the item was newly added, it will be removed).- Specified by:
delete
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to delete.- Returns:
- True if deleted, otherwise, false.
-
undelete
Description copied from interface:EditableList
Undelete an item that was deleted earlier.- Specified by:
undelete
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Item to undelete.- Returns:
- True if undeleted, otherwise, false.
-
update
Description copied from interface:EditableList
Update an item. Item will be marked as modified.- Specified by:
update
in interfaceEditableList<T extends StoredObject>
- Parameters:
item
- Updated item.- Returns:
- True if updated, otherwise, false.
-
clear
void clear() -
getField
ObjectLinkField<T> getField()
-