public class Select extends InputNodeContainer implements INativeChangeListener, IHasModifiedIndication, IHtmlInput
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptRequestParameter(String[] values) |
void |
addExtraButton(String img,
String title,
IClicked<NodeBase> click)
Add a small image button after the combo.
|
protected void |
canContain(NodeBase node)
Only allow SelectOption as child.
|
void |
clearSelected()
Deprecated.
|
void |
componentHandleWebAction(RequestContextImpl ctx,
String action)
Handle the action sent by the return pressed Javascript thingerydoo.
|
SelectOption |
getOption(int ix) |
IReturnPressed<Select> |
getReturnPressed()
Set or clear return press handler.
|
int |
getSelectedIndex() |
int |
getSize() |
protected boolean |
internalOnUserInput(int oldindex,
int nindex)
Called when user input has changed the selected index.
|
void |
internalSetSelectedIndex(int ix)
Fast way to set index without walking the option tree, to use if the subclass knows
a faster way to set all option selected values.
|
boolean |
isDisabled() |
boolean |
isModified()
Returns the modified-by-user flag.
|
boolean |
isMultiple() |
void |
onAddedToPage(Page p) |
void |
onRemoveFromPage(Page p) |
void |
setDisabled(boolean disabled) |
void |
setDisabled(UIMessage rsn)
Util for updating select enabled / disabled state depending on existence of error (reason for disabling).
|
void |
setModified(boolean as)
Set or clear the modified by user flag.
|
void |
setMultiple(boolean multiple) |
void |
setReadOnly(boolean readOnly)
WARNING: The "select" node HAS NO READONLY!!!
|
void |
setReturnPressed(IReturnPressed<Select> returnPressed) |
void |
setSelectedIndex(int ix)
Set the selected index - expensive because it has to walk all Option children and reset their
selected attribute - O(n) runtime.
|
void |
setSize(int size) |
void |
visit(INodeVisitor v)
This must visit the appropriate method in the node visitor.
|
callOnValueChanged, getOnValueChanged, immediate, immediate, isImmediate, isMandatory, isReadOnly, setMandatory, setOnValueChangedadd, add, add, addTable, addTableForLayout, addTableForLayout, appendTreeErrors, 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$, addBinding, addCssClass, addGlobalMessage, addNotificationListener, afterCreateContent, 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, createContent, 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, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, 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, waitgetOnValueChangedforEach, spliteratorpublic Select()
public Select(String... txt)
public void visit(INodeVisitor v) throws Exception
NodeBasevisit in class InputNodeContainerExceptionprotected void canContain(@Nonnull NodeBase node)
canContain in class NodeContainerNodeContainer.canContain(to.etc.domui.dom.html.NodeBase)public boolean isMultiple()
public void setMultiple(boolean multiple)
public boolean isDisabled()
isDisabled in interface IHtmlInputpublic void setDisabled(boolean disabled)
setDisabled in interface IHtmlInputpublic void setDisabled(@Nullable UIMessage rsn)
rsn - reason to disable select. If null, select gets enabled, otherwise it gets disabled with rsn.getMessage() as title (hint)public int getSize()
public void setSize(int size)
public void setReadOnly(boolean readOnly)
setReadOnly in class InputNodeContainerInputNodeContainer.setReadOnly(boolean)public SelectOption getOption(int ix)
public final boolean acceptRequestParameter(@Nonnull String[] values) throws Exception
acceptRequestParameter in class NodeBaseExceptionprotected boolean internalOnUserInput(int oldindex,
int nindex)
oldindex - nindex - @Deprecated public void clearSelected()
public int getSelectedIndex()
public void internalSetSelectedIndex(int ix)
ix - public void setSelectedIndex(int ix)
ix - public void addExtraButton(String img, String title, IClicked<NodeBase> click)
img - title - click - public void onAddedToPage(Page p)
onAddedToPage in class NodeBasepublic void onRemoveFromPage(Page p)
onRemoveFromPage in class NodeBasepublic final boolean isModified()
isModified in interface IHasModifiedIndicationIHasModifiedIndication.isModified()public final void setModified(boolean as)
setModified in interface IHasModifiedIndicationIHasModifiedIndication.setModified(boolean)public IReturnPressed<Select> getReturnPressed()
public void setReturnPressed(IReturnPressed<Select> returnPressed)
public void componentHandleWebAction(@Nonnull RequestContextImpl ctx, @Nonnull String action) throws Exception
componentHandleWebAction in class NodeBaseExceptionNodeBase.componentHandleWebAction(to.etc.domui.server.RequestContextImpl, java.lang.String)Copyright © 2017 etc.to. All rights reserved.