T - The type of the input value.public abstract class BaseInputComponent<T> extends BaseUIComponent
BaseComponent.ComponentReference<T extends BaseComponent>, BaseComponent.SubComponentlog| 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, 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, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientgetAttribute, hasAttribute, removeAttribute, setAttributepublic T getValue()
public void setValue(T value)
value - The input value.public void clear()
@Component.PropertyGetter(value="value", description="The input value as a string.") protected String _getValue()
@Component.PropertySetter(value="value", description="The input value as a string.") 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, mode="init") protected void _onChange(ChangeEvent event)
event - The change event.Copyright © 2018 Fujion Framework. All rights reserved.