to.etc.domui.component.input
Class ComboLookup<T>

java.lang.Object
  extended by to.etc.domui.dom.css.CssBase
      extended by to.etc.domui.dom.html.NodeBase
          extended by to.etc.domui.dom.html.NodeContainer
              extended by to.etc.domui.dom.html.InputNodeContainer
                  extended by to.etc.domui.dom.html.Select
                      extended by to.etc.domui.component.input.ComboComponentBase<T,T>
                          extended by to.etc.domui.component.input.ComboLookup<T>
All Implemented Interfaces:
java.lang.Iterable<NodeBase>, IModelBinding, IBindable, INodeErrorDelegate, IActionControl, IControl<T>, IDisplayControl<T>, IHasChangeListener, IHasModifiedIndication, IInputNode<T>

public class ComboLookup<T>
extends ComboComponentBase<T,T>

Combobox component where the list type is the same as the value type, i.e. it uses some List<T> and getValue() returns T.

Author:
Frits Jalvingh Created on Dec 16, 2010

Constructor Summary
ComboLookup()
           
ComboLookup(java.lang.Class<? extends IComboDataSet<T>> set, INodeContentRenderer<T> r)
           
ComboLookup(IListMaker<T> maker)
          Use the specified cached list maker to fill the combobox.
ComboLookup(java.util.List<T> in)
           
ComboLookup(QCriteria<T> query)
          Create a combo which fills it's list with the result of the query passed.
ComboLookup(QCriteria<T> query, INodeContentRenderer<T> cr)
          Create a combo which fills it's list with the result of the query passed.
ComboLookup(QCriteria<T> query, java.lang.String... properties)
          Create a combo which fills it's list with the result of the query.
 
Method Summary
protected  T listToValue(T in)
          This implements the identical conversion, i.e.
 
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 to.etc.domui.dom.html.NodeBase
$, addCssClass, addGlobalMessage, afterCreateContent, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, build, changed, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, componentHandleWebAction, findComponentBundle, getActualID, getAllocationTracepoint, getClicked, getComponentBundle, getCreateJS, getCssClass, getErrorDelegate, getErrorLocation, getMessage, getOnClickJS, getOnMouseDownJS, getPage, getParent, getParent, getParent, getSharedContext, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTitle, getUserObject, handleDrop, hasCssClass, internalGetOldParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isBuilt, isFocusRequested, isStretchHeight, onBeforeFullRender, onForceRebuild, onHeaderContributors, onShelve, onUnshelve, refresh, remove, removeCssClass, renderJavascriptState, replaceWith, setClicked, setComponentBundle, setCssClass, setErrorDelegate, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setSpecialAttribute, setStretchHeight, setTestID, setTitle, setUserObject, toString
 
Methods inherited from class to.etc.domui.dom.css.CssBase
getBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndex
 
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

ComboLookup

public ComboLookup()

ComboLookup

public ComboLookup(IListMaker<T> maker)
Use the specified cached list maker to fill the combobox.

Parameters:
maker -

ComboLookup

public ComboLookup(java.util.List<T> in)

ComboLookup

public ComboLookup(java.lang.Class<? extends IComboDataSet<T>> set,
                   INodeContentRenderer<T> r)

ComboLookup

public ComboLookup(QCriteria<T> query)
Create a combo which fills it's list with the result of the query passed.

Parameters:
query -

ComboLookup

public ComboLookup(QCriteria<T> query,
                   INodeContentRenderer<T> cr)
Create a combo which fills it's list with the result of the query passed.

Parameters:
query -

ComboLookup

public ComboLookup(QCriteria<T> query,
                   java.lang.String... properties)
Create a combo which fills it's list with the result of the query. Each value is filled from the values of the properties specified.

Parameters:
query -
properties -
Method Detail

listToValue

protected T listToValue(T in)
                 throws java.lang.Exception
This implements the identical conversion, i.e. in=out, because this component returns the list type.

Overrides:
listToValue in class ComboComponentBase<T,T>
Returns:
Throws:
java.lang.Exception
See Also:
ComboComponentBase.listToValue(java.lang.Object)