public class MultipleLookupInput<T> extends Div implements IControl<List<T>>, ITypedControl<T>
| Constructor and Description |
|---|
MultipleLookupInput(Class<T> clazz,
String... renderColumns) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelection(T item) |
protected void |
applyIE10Workaround()
There is a problem in Internet Explorer 10 with min and max height parameters for empty div.
The problem occurs when container have scroller (bigger than max height) and than it's cleared. |
protected void |
clearSelection(Object object) |
void |
createContent() |
void |
endUpdate()
Call to mark end selection update changes.
|
Class<T> |
getActualType() |
List<T> |
getBindValue() |
String |
getCssForSelectedItems() |
String |
getCssForSelectionContainer() |
LookupInput<T> |
getLookupInput() |
String |
getMaxHeightForSelectionContainer() |
LookupInput<T> |
getMultipleLookupInput() |
IValueChanged<?> |
getOnValueChanged() |
String[] |
getRenderColumns() |
INodeContentRenderer<T> |
getSelectedItemContentRenderer() |
List<T> |
getValue()
Returns the current value of this input component.
|
List<T> |
getValueSafe()
Like
IControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. |
boolean |
isDisabled()
Returns T if the control is currently in disabled.
|
boolean |
isMandatory()
Returns T if this control is a mandatory input.
|
boolean |
isReadOnly()
Returns T if the control is currently in readonly mode.
|
void |
removeItem(T item)
Remove item from selection list.
|
void |
setBindValue(List<T> value) |
void |
setCssForSelectedItems(String cssForSelectedItems) |
void |
setCssForSelectionContainer(String cssForSelectionContainer) |
void |
setDisabled(boolean d)
Set the input to disabled mode.
|
void |
setMandatory(boolean mandatory)
Make the control mandatory.
|
void |
setMaxHeightForSelectionContainer(String height) |
void |
setOnValueChanged(IValueChanged<?> onValueChanged) |
void |
setReadOnly(boolean ro)
Sets the input to readonly-mode.
|
void |
setRenderColumns(String[] renderColumns) |
void |
setSearchImmediately(boolean searchImmediately) |
void |
setSelectedItemContentRenderer(INodeContentRenderer<T> render) |
void |
setValue(List<T> v)
Set a new value into this control.
|
void |
startUpdate()
Call once you want to mark start of selection update.
|
protected void |
updateClearButtonState() |
afterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visitadd, add, add, addTable, addTableForLayout, addTableForLayout, appendTreeErrors, canContain, createFrame, delegateTo, disableAllChildControlsDeep, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChildren, getDelegate, getErrorFence, getTextContents, hasError, internalAdd, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalCreateFrame, internalGetNodeCount, internalGetOldChildren, internalOnBeforeRender, internalShelve, internalUnshelve, iterator, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setErrorFence, setErrorFence, setText, setValue, undelegatedAdd, undelegatedGetChild$, acceptRequestParameter, addBinding, addCssClass, addGlobalMessage, addNotificationListener, alignToLeft, alignToLeft, alignToMiddle, alignToMiddle, alignTopToBottom, alignTopToBottom, alignToRight, alignToRight, alignToTop, alignToTop, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, appendJQuerySelector, appendJsCustomUpdatesContributor, appendShowOverflowTextAsTitleJs, appendStatement, beforeCreateContent, bind, bind, bindErrors, build, calcTestID, changed, changedJavascriptState, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, clearValidationFailure, componentHandleWebDataRequest, createStatement, findComponentBundle, findParent, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getBrowserWindowSize, getCalculatedTestID, getClicked, getClientBounds, getComponentBundle, getComponentDataURL, getComponentDataURL, getComponentInfo, getComponentJSONURL, getCreateJS, getCssClass, getErrorList, getErrorLocation, getFocusID, getMessage, getOnClickJS, getOnMouseDownJS, getOnSizeAndPositionChange, getPage, getParent, getParent, getParent, getParentOfTypes, getSharedContext, getSharedContextFactory, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTestRepeatId, getThemedResourceRURL, getTitle, getUserObject, handleDrop, hasCssClass, hasParent, internalGetOldParent, internalGetParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalRenderJavascriptDelta, internalRenderJavascriptState, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isAttached, isBuilt, isFocusable, isFocusRequested, isRendersOwnClose, isStretchHeight, lc, notify, notifyParentOrOpenerPage, onAddedToPage, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, onRemoveFromPage, onShelve, onUnshelve, refresh, remove, removeBinding, removeCssClass, renderJavascriptDelta, renderJavascriptState, renderJavascriptState, replaceWith, setBrowserWindowSize, setCalculcatedId, setCalculcatedId, setClicked, setClientBounds, setComponentBundle, setCssClass, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setOnSizeAndPositionChange, setOverrideTitle, setSpecialAttribute, setStretchHeight, setTestID, setTestRepeatID, setTitle, setUserObject, toStringgetBackgroundAttachment, 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, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, 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, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorLocation, hasError, setErrorLocationsetTestIDclearMessage, getMessage, setMessageforEach, spliterator@Nonnull public Class<T> getActualType()
getActualType in interface ITypedControl<T>protected void applyIE10Workaround()
public void createContent()
throws Exception
createContent in class NodeBaseExceptionpublic void startUpdate()
public void endUpdate()
throws Exception
Exception@Nonnull public LookupInput<T> getMultipleLookupInput()
protected void updateClearButtonState()
public LookupInput<T> getLookupInput()
public List<T> getValueSafe()
IControlIControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. For this method NULL either means the value was invalid OR
it's content was empty. To distinguish between the two call IControl.hasError() or use
IControl.getValue() instead of this call.getValueSafe in interface IControl<List<T>>public boolean isDisabled()
IControlisDisabled in interface IControl<List<T>>public boolean isMandatory()
IControlisMandatory in interface IControl<List<T>>public boolean isReadOnly()
IControlisReadOnly in interface IControl<List<T>>public void setMandatory(boolean mandatory)
IControlsetMandatory in interface IControl<List<T>>public void setReadOnly(boolean ro)
IControlsetReadOnly in interface IControl<List<T>>public List<T> getValue()
IControlValidationException. This means that this
call either delivers correct input (as defined by it's converter and validators), null
(when empty) or throws an exception. When a ValidationException occurs the framework
mostly ignores it - it does not produce a stacktrace or error in the client. Instead
the resulting error as posted by the error handling framework gets displayed on the
form when the request completes.
To get the value of a component while ignoring exceptions call IControl.getValueSafe().
public void setValue(@Nullable List<T> v)
IControlpublic void setDisabled(boolean d)
IActionControlsetDisabled in interface IActionControlpublic IValueChanged<?> getOnValueChanged()
getOnValueChanged in interface IHasChangeListenerpublic void setOnValueChanged(IValueChanged<?> onValueChanged)
setOnValueChanged in interface IHasChangeListenerpublic INodeContentRenderer<T> getSelectedItemContentRenderer()
public void setSelectedItemContentRenderer(INodeContentRenderer<T> render)
public String[] getRenderColumns()
public void setRenderColumns(String[] renderColumns)
public String getCssForSelectedItems()
public void setCssForSelectedItems(String cssForSelectedItems)
public String getCssForSelectionContainer()
public void setCssForSelectionContainer(String cssForSelectionContainer)
public String getMaxHeightForSelectionContainer()
public void setMaxHeightForSelectionContainer(String height)
public void removeItem(T item) throws Exception
item - Exceptionpublic void setSearchImmediately(boolean searchImmediately)
Copyright © 2017 etc.to. All rights reserved.