Interface EntitiesList.Callback<T>
-
- Enclosing class:
- EntitiesList<T>
public static interface EntitiesList.Callback<T>Callback methods for view's user actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRead()Allows enabling or disabling the entities read feature.booleancanRemove()Allows enabling or disabling the entities delete feature.booleancanSelect()Allows enabling or disabling the entities selection feature.StringgetEntityType()The title for the entity type to manage, such as "user" or "group".StringgetIdentifier(T entity)The entity identifier.StringgetTitle(T entity)The entity title.booleanisSelected(String identifier)Specify if the entity must be marked as selected..voidonChangePage(int currentPage, int goToPage)Change current page.voidonReadEntity(String identifier)Read an entityvoidonRemoveEntity(String identifier)Remove an entityvoidonSelectEntity(String identifier, boolean isSelected)Select or unselect an entity from the list.
-
-
-
Method Detail
-
getEntityType
String getEntityType()
The title for the entity type to manage, such as "user" or "group".
- Returns:
- The entity type title.
-
canRead
boolean canRead()
Allows enabling or disabling the entities read feature.
- Returns:
Two possible values:
true- The entities list widget enables the read feature.false- The entities list widget disables the read feature.
-
canRemove
boolean canRemove()
Allows enabling or disabling the entities delete feature.
- Returns:
Two possible values:
true- The entities list widget enables the delete feature.false- The entities list widget disables the delete feature.
-
canSelect
boolean canSelect()
Allows enabling or disabling the entities selection feature.
- Returns:
Two possible values:
true- The entities list widget enables the selection feature.false- The entities list widget disables the selection feature.
-
isSelected
boolean isSelected(String identifier)
Specify if the entity must be marked as selected..
-
getIdentifier
String getIdentifier(T entity)
The entity identifier.
- Parameters:
entity- The entity.- Returns:
- The entity identifier.
-
getTitle
String getTitle(T entity)
The entity title.
- Parameters:
entity- The title.- Returns:
- The entity identifier.
-
onReadEntity
void onReadEntity(String identifier)
Read an entity
- Parameters:
identifier- The entity's identifier to read.
-
onRemoveEntity
void onRemoveEntity(String identifier)
Remove an entity
- Parameters:
identifier- The entity's identifier to remove.
-
onSelectEntity
void onSelectEntity(String identifier, boolean isSelected)
Select or unselect an entity from the list.
- Parameters:
identifier- The entity's identifier to remove.isSelected- Iftrue, the entity has been selected, otherwise has been unselected.
-
onChangePage
void onChangePage(int currentPage, int goToPage)Change current page.
- Parameters:
currentPage- Current page.goToPage- The target page number to navigate.
-
-