public static interface EntitiesList.Callback<T>
Callback methods for view's user actions.
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Allows enabling or disabling the entities read feature.
|
boolean |
canRemove()
Allows enabling or disabling the entities delete feature.
|
boolean |
canSelect()
Allows enabling or disabling the entities selection feature.
|
String |
getEntityType()
The title for the entity type to manage, such as "user" or "group".
|
String |
getIdentifier(T entity)
The entity identifier.
|
String |
getTitle(T entity)
The entity title.
|
boolean |
isSelected(String identifier)
Specify if the entity must be marked as selected..
|
void |
onChangePage(int currentPage,
int goToPage)
Change current page.
|
void |
onReadEntity(String identifier)
Read an entity
|
void |
onRemoveEntity(String identifier)
Remove an entity
|
void |
onSelectEntity(String identifier,
boolean isSelected)
Select or unselect an entity from the list.
|
String getEntityType()
The title for the entity type to manage, such as "user" or "group".
boolean canRead()
Allows enabling or disabling the entities read feature.
Two possible values:
true
- The entities list widget enables the read feature.false
- The entities list widget disables the read feature.boolean canRemove()
Allows enabling or disabling the entities delete feature.
Two possible values:
true
- The entities list widget enables the delete feature.false
- The entities list widget disables the delete feature.boolean canSelect()
Allows enabling or disabling the entities selection feature.
Two possible values:
true
- The entities list widget enables the selection feature.false
- The entities list widget disables the selection feature.boolean isSelected(String identifier)
Specify if the entity must be marked as selected..
String getIdentifier(T entity)
The entity identifier.
entity
- The entity.String getTitle(T entity)
The entity title.
entity
- The title.void onReadEntity(String identifier)
Read an entity
identifier
- The entity's identifier to read.void onRemoveEntity(String identifier)
Remove an entity
identifier
- The entity's identifier to remove.void onSelectEntity(String identifier, boolean isSelected)
Select or unselect an entity from the list.
identifier
- The entity's identifier to remove.isSelected
- If true
, the entity has been selected, otherwise has been unselected.void onChangePage(int currentPage, int goToPage)
Change current page.
currentPage
- Current page.goToPage
- The target page number to navigate.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.