T - The type of the input value.public abstract class BaseInputComponent<T> extends BaseUIComponent
BaseComponent.SubComponent| Constructor and Description |
|---|
BaseInputComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_getValue()
Returns the input value as a string.
|
protected void |
_onChange(ChangeEvent event)
Event handler for change events sent by the client.
|
protected void |
_setValue(String value)
Sets the input value as a string.
|
protected void |
_setValue(T value,
boolean notifyClient)
Sets the input value.
|
protected Object |
_toClient(T value)
Override to provide alternate serialization format for sending to client.
|
protected abstract String |
_toString(T value)
Converts a value to a string.
|
protected abstract T |
_toValue(String value)
Converts a string value to this component's value type.
|
void |
clear()
Clears the input value.
|
T |
getValue()
Returns the input value.
|
void |
setValue(T value)
Sets the input value.
|
_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, removeClass, removeMask, removeStyle, 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, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic T getValue()
public void setValue(T value)
value - The input value.public void clear()
@Component.PropertyGetter(value="value") protected String _getValue()
@Component.PropertySetter(value="value") protected void _setValue(String value)
value - The input value as a string.protected void _setValue(T value, boolean notifyClient)
value - The input value.notifyClient - If true, notify the client of the change.protected abstract T _toValue(String value)
value - String value to convert.protected abstract String _toString(T value)
value - The value to convert.protected Object _toClient(T value)
value - The raw value.@EventHandler(value="change", syncToClient=false) protected void _onChange(ChangeEvent event)
event - The change event.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.