Class Textarea
- All Implemented Interfaces:
Serializable,Cloneable,Component,AfterCompose,DynamicPropertied,RawId,Scope,ComponentCtrl
If you instantiate Textarea directly, you shall use Input.setValue(java.lang.String) to set up the
value. You shall not add children to it.
- Author:
- tomyeh
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zhtml.impl.AbstractTag
AbstractTag.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.Children, AbstractComponent.ForwardInfo, AbstractComponent.TargetInfo -
Field Summary
Fields inherited from class org.zkoss.zhtml.impl.AbstractTag
_tagnmFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_CLONED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, AFTER_PARENT_CHANGED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes after ZK loader creates this component, initializes it and composes all its children, if any.getCols()Returns the cols of this textarea tag.getDynamicProperty(String name) Returns the dynamic property, or null if not found.getRows()Returns the rows of this textarea tag.Returns the widget class, "zhtml.Input".getWrap()Returns the wrap of this textarea tag.protected voidredrawChildrenDirectly(TagRenderContext rc, Execution exec, Writer out) Renders the children directly to the given output.protected voidrenderProperties(ContentRenderer renderer) Called by (ComponentCtrl.redraw(java.io.Writer)) to render the properties, excluding the enclosing tag and children.voidSets the cols of this textarea tag.voidsetDynamicProperty(String name, Object value) Sets the dynamic property.voidSets the rows of this textarea tag.voidSets 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, smartUpdateMethods 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, toStringMethods 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, getStubonlyDescendants, 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, setStubonlyDescendants, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Constructor Details
-
Textarea
public Textarea() -
Textarea
-
-
Method Details
-
getCols
Returns the cols of this textarea tag.- Since:
- 8.0.3
-
setCols
Sets the cols of this textarea tag.- Throws:
WrongValueException- Since:
- 8.0.3
-
getRows
Returns the rows of this textarea tag.- Since:
- 8.0.3
-
setRows
Sets the rows of this textarea tag.- Throws:
WrongValueException- Since:
- 8.0.3
-
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
Sets 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:
WrongValueException- Since:
- 8.0.3
-
afterCompose
public void afterCompose()Description copied from interface:AfterComposeInvokes after ZK loader creates this component, initializes it and composes all its children, if any.- Specified by:
afterComposein interfaceAfterCompose
-
setDynamicProperty
Description 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 interfaceDynamicPropertied- Overrides:
setDynamicPropertyin classAbstractTag- Throws:
WrongValueException
-
getDynamicProperty
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 interfaceDynamicPropertied- Overrides:
getDynamicPropertyin classAbstractTag
-
getWidgetClass
Returns the widget class, "zhtml.Input".- Specified by:
getWidgetClassin interfaceComponent- Overrides:
getWidgetClassin classInput- Since:
- 8.0.0
- See Also:
-
renderProperties
Description copied from class:AbstractComponentCalled by (ComponentCtrl.redraw(java.io.Writer)) to render the properties, excluding the enclosing tag and children.Default: it renders
AbstractComponent.getId()if it was assigned, and event names if listened (and listed inAbstractComponent.getClientEvents()).Note: it doesn't render
AbstractComponent.getWidgetClass(),AbstractComponent.getUuid()andAbstractComponent.getMold(), which are caller's job.- Overrides:
renderPropertiesin classAbstractTag- Throws:
IOException
-
redrawChildrenDirectly
protected void redrawChildrenDirectly(TagRenderContext rc, Execution exec, Writer out) throws 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:
IOException
-