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 booleanAad a new item to the list.voidclear()default booleanDelete an item from the list.getField()getLink()default StringgetName()default intgetType()default booleanCheck if the given item was added to the list or not.default booleanCheck if the given item was deleted from the list or not.default booleanCheck if the given item was edited or not.Get a stream of all items (including original, added, deleted and edited items).default booleanUndelete an item that was deleted earlier.default booleanUpdate an item.Methods inherited from interface com.storedobject.core.EditableList
add, append, append, contains, getDuplicate, isSavePending, size, stream, streamAdded, streamDeleted, streamEditedMethods 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:
getTypein interfaceStoredObjectLink<T extends StoredObject>
-
getName
- Specified by:
getNamein interfaceStoredObjectLink<T extends StoredObject>
-
getEditableList
EditableProvider<T> getEditableList() -
isAdded
Description copied from interface:EditableListCheck if the given item was added to the list or not.- Specified by:
isAddedin interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to check.- Returns:
- True/false.
-
isDeleted
Description copied from interface:EditableListCheck if the given item was deleted from the list or not.- Specified by:
isDeletedin interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to check.- Returns:
- True/false.
-
isEdited
Description copied from interface:EditableListCheck if the given item was edited or not.- Specified by:
isEditedin interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to check.- Returns:
- True/false.
-
streamAll
Description copied from interface:EditableListGet a stream of all items (including original, added, deleted and edited items).- Specified by:
streamAllin interfaceEditableList<T extends StoredObject>- Returns:
- Stream of items.
-
add
Description copied from interface:EditableListAad a new item to the list.- Specified by:
addin interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to add.- Returns:
- True if added, otherwise, false.
-
delete
Description copied from interface:EditableListDelete an item from the list. (If the item was newly added, it will be removed).- Specified by:
deletein interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to delete.- Returns:
- True if deleted, otherwise, false.
-
undelete
Description copied from interface:EditableListUndelete an item that was deleted earlier.- Specified by:
undeletein interfaceEditableList<T extends StoredObject>- Parameters:
item- Item to undelete.- Returns:
- True if undeleted, otherwise, false.
-
update
Description copied from interface:EditableListUpdate an item. Item will be marked as modified.- Specified by:
updatein interfaceEditableList<T extends StoredObject>- Parameters:
item- Updated item.- Returns:
- True if updated, otherwise, false.
-
clear
void clear() -
getField
ObjectLinkField<T> getField()
-