public static final class RemotableSelect.Builder extends RemotableAbstractControl.Builder implements RemotableSelectContract
Modifier and Type | Method and Description |
---|---|
RemotableSelect |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static RemotableSelect.Builder |
create(List<RemotableSelectGroup.Builder> groups) |
static RemotableSelect.Builder |
create(Map<String,String> keyLabels) |
List<RemotableSelectGroup.Builder> |
getGroups()
Gets an immutable list of Grouped keyLabel pairs.
|
Map<String,String> |
getKeyLabels()
The key-label pairs to display on the control.
|
Integer |
getSize()
The size value to make the control.
|
boolean |
isMultiple()
Whether the select control allows selection of multiple values.
|
boolean |
isRefreshOnChange()
If true, indicates that the page needs to be refreshed whenever the drop-down value is changed.
|
void |
setGroups(List<RemotableSelectGroup.Builder> groups) |
void |
setKeyLabels(Map<String,String> keyLabels) |
void |
setMultiple(boolean multiple) |
void |
setRefreshOnChange(boolean refreshOnChange) |
void |
setSize(Integer size) |
public static RemotableSelect.Builder create(Map<String,String> keyLabels)
public static RemotableSelect.Builder create(List<RemotableSelectGroup.Builder> groups)
public Integer getSize()
Sized
public Map<String,String> getKeyLabels()
KeyLabeled
getKeyLabels
in interface KeyLabeled
public void setKeyLabels(Map<String,String> keyLabels)
public List<RemotableSelectGroup.Builder> getGroups()
RemotableSelectContract
KeyLabeled.getKeyLabels()
must be empty. Cannot be null.getGroups
in interface RemotableSelectContract
public void setGroups(List<RemotableSelectGroup.Builder> groups)
public boolean isMultiple()
RemotableSelectContract
isMultiple
in interface RemotableSelectContract
public void setMultiple(boolean multiple)
public boolean isRefreshOnChange()
RemotableSelectContract
isRefreshOnChange
in interface RemotableSelectContract
public void setRefreshOnChange(boolean refreshOnChange)
public RemotableSelect build()
ModelBuilder
build
in interface ModelBuilder
build
in class RemotableAbstractControl.Builder
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.