| Constructor and Description |
|---|
ActionHelper(org.springframework.http.ResponseEntity<Action> action) |
| Modifier and Type | Method and Description |
|---|---|
static ActionHelper |
create(org.springframework.http.ResponseEntity<Action> action) |
ActionHelper |
deselectAllOptions(String name)
De-selects all
Options of a selection |
Optional<ActionField> |
getField(List<ActionField> fields,
String name) |
Optional<ActionField> |
getField(String name) |
ActionHelper |
setFieldSelectionValue(String name,
String value)
Marks an
Option as selected. |
ActionHelper |
setFieldValue(String name,
Object value) |
public ActionHelper(org.springframework.http.ResponseEntity<Action> action)
public static ActionHelper create(org.springframework.http.ResponseEntity<Action> action)
public ActionHelper setFieldValue(String name, Object value)
public ActionHelper setFieldSelectionValue(String name, String value)
Option as selected. If the field's Options allow multiple selected values, active
Options will remain active. Otherwise, previously active Options will be de-selected.name - the name of the fieldvalue - the option value to selectActionHelperpublic ActionHelper deselectAllOptions(String name)
Options of a selectionname - the name of the selection fieldpublic Optional<ActionField> getField(List<ActionField> fields, String name)
public Optional<ActionField> getField(String name)
Copyright © 2011–2021 aiticon GmbH. All rights reserved.