public class Textbox extends InputElement
See Specification.
Default getZclass(): z-textbox.(since 3.5.0)
When multiline is true, only default mold is available.
_value| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
protected Object |
coerceFromString(String value)
Coerces the value passed to
setValue(java.lang.String). |
protected String |
coerceToString(Object value)
Coerces the value passed to
setValue(java.lang.String). |
org.zkoss.zk.ui.sys.PropertyAccess |
getPropertyAccess(String prop) |
int |
getRows()
Returns the rows.
|
String |
getType()
Returns the type.
|
String |
getValue()
Returns the value.
|
String |
getZclass() |
boolean |
isMultiline()
Returns whether it is multiline.
|
boolean |
isTabbable()
Returns whether TAB is allowed.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setMultiline(boolean multiline)
Sets whether it is multiline.
|
void |
setRows(int rows)
Sets the rows.
|
void |
setTabbable(boolean tabbable)
Sets whether TAB is allowed.
|
void |
setType(String type)
Sets the type.
|
void |
setValue(String value)
Sets the value.
|
checkUserError, clearErrorMessage, clearErrorMessage, getCols, getConstraint, getErrorMessage, getInstant, getMaxlength, getName, getPlaceholder, getRawText, getRawValue, getTabindex, getTargetValue, getText, isChildable, isDisabled, isInplace, isInstant, isReadonly, isValid, marshall, onWrongValue, select, service, setCols, setConstraint, setConstraint, setDisabled, setErrorMessage, setInplace, setInstant, setMaxlength, setName, setPlaceholder, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText, setValueDirectly, showCustomError, unmarshall, validategetContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltipfocus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowRoots, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic Textbox()
public Textbox(String value) throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic String getValue() throws org.zkoss.zk.ui.WrongValueException
InputElement.getText().
Default: "".
org.zkoss.zk.ui.WrongValueException - if user entered a wrong valuepublic void setValue(String value) throws org.zkoss.zk.ui.WrongValueException
value - the value; If null, it is considered as empty.org.zkoss.zk.ui.WrongValueException - if value is wrongprotected Object coerceFromString(String value) throws org.zkoss.zk.ui.WrongValueException
setValue(java.lang.String).
Default: convert null to an empty string.
coerceFromString in class InputElementorg.zkoss.zk.ui.WrongValueExceptionprotected String coerceToString(Object value)
setValue(java.lang.String).
Default: convert null to an empty string.
coerceToString in class InputElementpublic String getType()
Default: text.
getType in class InputElementpublic void setType(String type) throws org.zkoss.zk.ui.WrongValueException
type - the type. Acceptable values are "text" and "password".
Unlike XUL, "timed" is redundant because it is enabled as long as
onChanging is added. Since 6.5.0 type also support tel, email and url.org.zkoss.zk.ui.WrongValueExceptionpublic int getRows()
Default: 1.
public void setRows(int rows)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic boolean isMultiline()
Default: false.
isMultiline in class InputElementpublic void setMultiline(boolean multiline)
public boolean isTabbable()
Default: false.
public void setTabbable(boolean tabbable)
Default: false.
public Object clone()
clone in interface org.zkoss.zk.ui.Componentclone in class InputElementpublic org.zkoss.zk.ui.sys.PropertyAccess getPropertyAccess(String prop)
getPropertyAccess in interface org.zkoss.zk.ui.sys.ComponentCtrlgetPropertyAccess in class InputElementprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class InputElementIOExceptionpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2015. All rights reserved.