|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.impl.InputElement
org.zkoss.zul.Textbox
public class Textbox
A textbox.
See Specification.
Default getZclass(): z-textbox.(since 3.5.0)
When multiline is true, only default mold is available.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
org.zkoss.zk.ui.AbstractComponent.Children |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zul.impl.InputElement |
|---|
_value |
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
_zclass |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
|---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
| Constructor Summary | |
|---|---|
Textbox()
|
|
Textbox(String value)
|
|
| Method Summary | |
|---|---|
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). |
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. |
| Methods inherited from class org.zkoss.zul.impl.InputElement |
|---|
checkUserError, clearErrorMessage, clearErrorMessage, getCols, getConstraint, getErrorMessage, getInstant, getMaxlength, getName, getPlaceholder, getRawText, getRawValue, getTabindex, getTargetValue, getText, isChildable, isDisabled, isInplace, 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, validate |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, 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, setZIndexDirectly |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Textbox()
public Textbox(String value)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueException| Method Detail |
|---|
public String getValue()
throws org.zkoss.zk.ui.WrongValueException
InputElement.getText().
Default: "".
org.zkoss.zk.ui.WrongValueException - if user entered a wrong value
public 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 wrong
protected 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 InputElement
public 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 InputElement
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class InputElementIOExceptionpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||