public abstract static class HalFormsOptions.AbstractHalFormsOptions<T extends HalFormsOptions.AbstractHalFormsOptions<T>> extends Object implements HalFormsOptions
HalFormsOptions.AbstractHalFormsOptions<T extends HalFormsOptions.AbstractHalFormsOptions<T>>, HalFormsOptions.Inline, HalFormsOptions.Remote| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHalFormsOptions(String promptRef,
String valueRef,
Long minItems,
Long maxItems,
Object selectedValue) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getMaxItems()
Returns the maximum number of items to be selected.
|
Long |
getMinItems()
Returns the minimum number of items to be selected.
|
String |
getPromptField()
The field to look up the prompt from.
|
Object |
getSelectedValue() |
String |
getValueField()
The field to use as the value to be sent.
|
protected abstract T |
with(String promptRef,
String valueRef,
Long minItems,
Long maxItems,
Object selectedValue)
Create a new concrete
HalFormsOptions.AbstractHalFormsOptions |
T |
withMaxItems(Long maxItems)
Configures the maximum number of items to be selected.
|
T |
withMinItems(Long minItems)
Configures the minimum number of items to be selected.
|
T |
withPromptField(String promptField)
Configures the given field to be used as prompt field.
|
T |
withSelectedValue(Object value)
Configured the value to be initially selected
|
T |
withValueField(String valueField)
Configures the given field to be used as value field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinline, inline, remote, remote@Nullable public String getPromptField()
HalFormsOptionsgetPromptField in interface HalFormsOptions@Nullable public String getValueField()
HalFormsOptionsgetValueField in interface HalFormsOptions@Nullable public Long getMinItems()
HalFormsOptionsgetMinItems in interface HalFormsOptionsLong.@Nullable public Long getMaxItems()
HalFormsOptionsgetMaxItems in interface HalFormsOptionsLong.@Nullable public Object getSelectedValue()
getSelectedValue in interface HalFormsOptionspublic T withPromptField(String promptField)
promptField - must either be null or actually have text.public T withValueField(String valueField)
valueField - must either be null or actually have text.public T withMinItems(Long minItems)
minItems - must be null or greater than or equal to zero.public T withMaxItems(@Nullable Long maxItems)
maxItems - must be null or greater than zero.public T withSelectedValue(@Nullable Object value)
value - Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.