Package org.zkoss.zhtml
Class Textarea
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zhtml.impl.AbstractTag
-
- org.zkoss.zhtml.Input
-
- org.zkoss.zhtml.Textarea
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.AfterCompose,org.zkoss.zk.ui.ext.DynamicPropertied,org.zkoss.zk.ui.ext.RawId,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl
public class Textarea extends Input implements org.zkoss.zk.ui.ext.AfterCompose
The TEXTAREA tag.If you instantiate
Textareadirectly, you shall useInput.setValue(java.lang.String)to set up the value. You shall not add children to it.- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.zhtml.impl.AbstractTag
AbstractTag.ExtraCtrl
-
-
Field Summary
-
Fields inherited from class org.zkoss.zhtml.impl.AbstractTag
_tagnm
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCompose()java.lang.IntegergetCols()Returns the cols of this textarea tag.java.lang.ObjectgetDynamicProperty(java.lang.String name)Returns the dynamic property, or null if not found.java.lang.IntegergetRows()Returns the rows of this textarea tag.java.lang.StringgetWidgetClass()Returns the widget class, "zhtml.Input".java.lang.StringgetWrap()Returns the wrap of this textarea tag.protected voidredrawChildrenDirectly(TagRenderContext rc, org.zkoss.zk.ui.Execution exec, java.io.Writer out)Renders the children directly to the given output.protected voidrenderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)voidsetCols(java.lang.Integer cols)Sets the cols of this textarea tag.voidsetDynamicProperty(java.lang.String name, java.lang.Object value)Sets the dynamic property.voidsetRows(java.lang.Integer rows)Sets the rows of this textarea tag.voidsetWrap(java.lang.String wrap)Sets the wrap of this textarea tag.-
Methods inherited from class org.zkoss.zhtml.Input
getAccept, getAlt, getAutocomplete, getCapture, getDirname, getForm, getFormaction, getFormenctype, getFormmethod, getFormnovalidate, getFormtarget, getHeight, getInputmode, getList, getMax, getMaxlength, getMin, getMinlength, getName, getPattern, getPlaceholder, getSelectiondirection, getSize, getSrc, getStep, getType, getValue, getWidth, isAutofocus, isChecked, isDisabled, isMultiple, isReadonly, isRequired, service, setAccept, setAlt, setAutocomplete, setAutofocus, setCapture, setChecked, setDirname, setDisabled, setForm, setFormaction, setFormenctype, setFormmethod, setFormnovalidate, setFormtarget, setHeight, setInputmode, setList, setMax, setMaxlength, setMin, setMinlength, setMultiple, setName, setPattern, setPlaceholder, setReadonly, setRequired, setSelectiondirection, setSize, setSrc, setStep, setType, setValue, setWidth, smartUpdate
-
Methods inherited from class org.zkoss.zhtml.impl.AbstractTag
clone, getAccesskey, getDir, getDynamicProperties, getExtraCtrl, getLang, getPropertyAccess, getSclass, getStyle, getTabindex, getTag, getTitle, hasDynamicProperty, isChildable, isContenteditable, isDraggable, isHidden, isOrphanTag, isSpellcheck, redraw, setAccesskey, setContenteditable, setDir, setDraggable, setHidden, setLang, setSclass, setSpellcheck, setStyle, setTabindex, setTitle, setVisible, shallHideId, toString
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, insertBefore, invalidate, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, 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, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Method Detail
-
getCols
public java.lang.Integer getCols()
Returns the cols of this textarea tag.- Since:
- 8.0.3
-
setCols
public void setCols(java.lang.Integer cols) throws org.zkoss.zk.ui.WrongValueExceptionSets the cols of this textarea tag.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 8.0.3
-
getRows
public java.lang.Integer getRows()
Returns the rows of this textarea tag.- Since:
- 8.0.3
-
setRows
public void setRows(java.lang.Integer rows) throws org.zkoss.zk.ui.WrongValueExceptionSets the rows of this textarea tag.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 8.0.3
-
getWrap
public java.lang.String getWrap()
Returns the wrap of this textarea tag.Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.
- Since:
- 8.0.3
-
setWrap
public void setWrap(java.lang.String wrap) throws org.zkoss.zk.ui.WrongValueExceptionSets the wrap of this textarea tag.Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.
- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 8.0.3
-
afterCompose
public void afterCompose()
- Specified by:
afterComposein interfaceorg.zkoss.zk.ui.ext.AfterCompose
-
setDynamicProperty
public void setDynamicProperty(java.lang.String name, java.lang.Object value) throws org.zkoss.zk.ui.WrongValueExceptionDescription copied from class:AbstractTagSets the dynamic property. Note: it converts the value to a string object (by use ofObjects.toString(java.lang.Object)).Note: it handles the style property specially. Refer to
AbstractTag.setStyle(java.lang.String)for details.- Specified by:
setDynamicPropertyin interfaceorg.zkoss.zk.ui.ext.DynamicPropertied- Overrides:
setDynamicPropertyin classAbstractTag- Throws:
org.zkoss.zk.ui.WrongValueException
-
getDynamicProperty
public java.lang.Object getDynamicProperty(java.lang.String name)
Description copied from class:AbstractTagReturns the dynamic property, or null if not found. Note: it must be a String object or null.- Specified by:
getDynamicPropertyin interfaceorg.zkoss.zk.ui.ext.DynamicPropertied- Overrides:
getDynamicPropertyin classAbstractTag
-
getWidgetClass
public java.lang.String getWidgetClass()
Returns the widget class, "zhtml.Input".- Specified by:
getWidgetClassin interfaceorg.zkoss.zk.ui.Component- Overrides:
getWidgetClassin classInput- Since:
- 8.0.0
-
renderProperties
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException- Overrides:
renderPropertiesin classAbstractTag- Throws:
java.io.IOException
-
redrawChildrenDirectly
protected void redrawChildrenDirectly(TagRenderContext rc, org.zkoss.zk.ui.Execution exec, java.io.Writer out) throws java.io.IOException
Description copied from class:AbstractTagRenders the children directly to the given output. Notice it is called only ifAbstractTag.redraw(java.io.Writer)is going to render the content (HTML tags) directly. If it is about to generate the JavaScript codeAbstractComponent.redrawChildren(java.io.Writer)will be called instead.You have to override this method if the deriving class has additional information to render.
- Overrides:
redrawChildrenDirectlyin classAbstractTag- Throws:
java.io.IOException
-
-