T - The type of item within the collection of choices.P - The type of child picker item component.public abstract class BasePickerComponent<T,P extends BasePickerItem<T>> extends BaseInputboxComponent<T> implements ISupportsModel<P>
BaseComponent.SubComponentlog| Modifier | Constructor and Description |
|---|---|
protected |
BasePickerComponent(Class<P> itemClass) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_toString(T value)
Converts a value to a string.
|
protected T |
_toValue(String text)
Converts a string value to this component's value type.
|
IModelAndView<P,?> |
getModelAndView()
Returns the model and view for this component.
|
boolean |
getShowHints()
Returns the showHints property.
|
boolean |
getShowText()
Returns showText property.
|
void |
setShowHints(boolean showHints)
Sets the showHints property.
|
void |
setShowText(boolean showText)
Sets showText property.
|
getMaxLength, getMaxValue, getMinValue, getPattern, getPlaceholder, getSynchronized, isReadonly, isRequired, selectAll, selectRange, setMaxLength, setMaxValue, setMinValue, setPattern, setPlaceholder, setReadonly, setRequired, setSynchronized_getValue, _onChange, _setValue, _setValue, _toClient, clear, getValue, setValue_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, onDestroyTracked, print, print, removeClass, removeMask, removeStyle, reportSize, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, detachChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getLastController, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, swapTrackedComponents, sync, toString, trackComponent, trimify, untrackComponent, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeferredRendering, getModel, getModel, getModelAndView, getPaginator, getRenderer, getRenderer, setDeferredRendering, setModel, setRenderertransformForClientgetAttribute, hasAttribute, removeAttribute, setAttribute@Component.PropertyGetter(value="showText", description="If true, the text representation of the selection is displayed.") public boolean getShowText()
@Component.PropertySetter(value="showText", defaultValue="false", description="If true, the text representation of the selection is displayed.") public void setShowText(boolean showText)
showText - If true, the text representation of the selection is displayed.@Component.PropertyGetter(value="showHints", description="If true, the text representation of pick list items is displayed when hovering over them.") public boolean getShowHints()
@Component.PropertySetter(value="showHints", defaultValue="false", description="If true, the text representation of pick list items is displayed when hovering over them.") public void setShowHints(boolean showHints)
showHints - If true, the text representation of pick list items is displayed when
hovering over them.protected T _toValue(String text)
BaseInputComponent_toValue in class BaseInputComponent<T>text - String value to convert.protected String _toString(T value)
BaseInputComponent_toString in class BaseInputComponent<T>value - The value to convert.public IModelAndView<P,?> getModelAndView()
ISupportsModelgetModelAndView in interface ISupportsModel<P extends BasePickerItem<T>>Copyright © 2018 Fujion Framework. All rights reserved.