Interface SelectedValueController<V extends DataItemValue<?>>
- All Superinterfaces:
ProcessingStep
-
Method Summary
Modifier and TypeMethodDescriptioncanBeDeselected(V value) Check if the user is allowed to deselect the itemcanBeSelected(V value) Check if the user is allowed to select the itembooleanRemove/Deselect the itemGet all no yet selected items - either even with those whose requirements are not met, or without them-getRecommendationState(V value) Get a list of all currently selected itemsgetToDos()Returns a list of steps to do in this controllerAdd/Select the item using the given decisionsMethods inherited from interface de.rpgframework.character.ProcessingStep
process
-
Method Details
-
getAvailable
-
getSelected
-
getRecommendationState
-
canBeSelected
Check if the user is allowed to select the item- Parameters:
value- Item to select- Returns:
- Selection allowed or not
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
select
Add/Select the item using the given decisions- Parameters:
value- Item to select- Returns:
- value instance of selected item
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
canBeDeselected
-
deselect
Remove/Deselect the item- Parameters:
value- Item to select- Returns:
- TRUE if item has been deselected
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
getToDos
List<ToDoElement> getToDos()Returns a list of steps to do in this controller
-