|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.InputNodeContainer
to.etc.domui.dom.html.Select
to.etc.domui.component.input.ComboComponentBase<ValueLabelPair<T>,T>
to.etc.domui.component.input.ComboFixed<T>
public class ComboFixed<T>
Simple combobox handling [String, Object] pairs where the string is the
presented label value and the Object represents the values selected.
Please see UIControlUtil
for factory methods that help you to
create ComboFixed instances easily.
Constructor Summary | |
---|---|
ComboFixed()
Generic constructor. |
|
ComboFixed(java.lang.Class<? extends IComboDataSet<ValueLabelPair<T>>> dataSetClass)
|
|
ComboFixed(java.lang.Class<? extends IComboDataSet<ValueLabelPair<T>>> set,
INodeContentRenderer<ValueLabelPair<T>> r)
|
|
ComboFixed(IComboDataSet<ValueLabelPair<T>> dataSet)
|
|
ComboFixed(IListMaker<ValueLabelPair<T>> maker)
|
|
ComboFixed(java.util.List<ValueLabelPair<T>> in)
Use the specified list of pairs directly. |
Method Summary | ||
---|---|---|
static
|
createCombo(IObjectToStringConverter<T> converter,
T... items)
Create a combo for a manually specified list of objects. |
|
static
|
createCombo(T... items)
Create a combo for a manually specified list of objects. |
|
static
|
createEnumCombo(java.lang.Class<?> base,
java.lang.String property)
Returns a combo for all of the list-of-value items for the specified property. |
|
static
|
createEnumCombo(java.lang.Class<?> base,
java.lang.String property,
T... domainvalues)
Create a combobox having only the specified enum labels. |
|
static
|
createEnumCombo(java.lang.Class<T> clz)
Create a combo for all members of an enum. |
|
static
|
createEnumCombo(PropertyMetaModel<?> pmm)
Returns a combo for all of the list-of-value items for the specified property. |
|
static
|
createEnumCombo(PropertyMetaModel<?> pmm,
T... domainvalues)
Create a combobox having only the specified enum labels. |
|
static
|
createEnumCombo(T... items)
Create a combobox having only the specified enum labels. |
|
protected T |
listToValue(ValueLabelPair<T> in)
|
Methods inherited from class to.etc.domui.component.input.ComboComponentBase |
---|
bind, createContent, getContentRenderer, getContentRendererClass, getData, getEmptyOption, getEmptyText, getListMaker, getPropertyMetaModel, getValue, getValueSafe, getValueTransformer, hasError, internalGetCurrentValue, internalOnUserInput, internalSetCurrentValue, isBound, provideData, renderOptionLabel, setContentRenderer, setContentRendererClass, setData, setEmptyOption, setEmptyText, setListMaker, setPropertyMetaModel, setValue, setValueTransformer |
Methods inherited from class to.etc.domui.dom.html.Select |
---|
acceptRequestParameter, addExtraButton, canContain, clearSelected, getOption, getSelectedIndex, getSize, internalSetSelectedIndex, isDisabled, isModified, isMultiple, onAddedToPage, onRemoveFromPage, setDisabled, setModified, setMultiple, setReadOnly, setSelectedIndex, setSize, visit |
Methods inherited from class to.etc.domui.dom.html.InputNodeContainer |
---|
callOnValueChanged, getOnValueChanged, isMandatory, isReadOnly, setMandatory, setOnValueChanged |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface to.etc.domui.dom.html.IControl |
---|
getErrorLocation, isDisabled, isMandatory, isReadOnly, setErrorLocation, setMandatory, setReadOnly |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setDisabled, setTestID |
Methods inherited from interface to.etc.domui.dom.html.IHasChangeListener |
---|
getOnValueChanged, setOnValueChanged |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Methods inherited from interface to.etc.domui.dom.html.IHasModifiedIndication |
---|
isModified, setModified |
Constructor Detail |
---|
public ComboFixed()
public ComboFixed(java.lang.Class<? extends IComboDataSet<ValueLabelPair<T>>> set, INodeContentRenderer<ValueLabelPair<T>> r)
public ComboFixed(java.lang.Class<? extends IComboDataSet<ValueLabelPair<T>>> dataSetClass)
public ComboFixed(IComboDataSet<ValueLabelPair<T>> dataSet)
public ComboFixed(IListMaker<ValueLabelPair<T>> maker)
public ComboFixed(java.util.List<ValueLabelPair<T>> in)
in
- Method Detail |
---|
protected T listToValue(ValueLabelPair<T> in) throws java.lang.Exception
listToValue
in class ComboComponentBase<ValueLabelPair<T>,T>
java.lang.Exception
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(java.lang.Class<T> clz)
T
- clz
-
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(java.lang.Class<?> base, java.lang.String property)
T
- base
- The classproperty
- The property on the class.
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(PropertyMetaModel<?> pmm)
T
- pmm
-
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(T... items)
T
- items
-
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(java.lang.Class<?> base, java.lang.String property, T... domainvalues)
T
- base
- property
- domainvalues
-
public static <T extends java.lang.Enum<T>> ComboFixed<T> createEnumCombo(PropertyMetaModel<?> pmm, T... domainvalues)
T
- pmm
- domainvalues
-
public static <T> ComboFixed<T> createCombo(T... items)
T
- items
-
public static <T> ComboFixed<T> createCombo(@Nonnull IObjectToStringConverter<T> converter, T... items)
T
- converter
- items
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |