public class Textarea extends Input implements org.zkoss.zk.ui.ext.AfterCompose
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.
AbstractTag.ExtraCtrl
_tagnm
AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED
Modifier and Type | Method and Description |
---|---|
void |
afterCompose() |
Integer |
getCols()
Returns the cols of this textarea tag.
|
Object |
getDynamicProperty(String name)
Returns the dynamic property, or null if not found.
|
Integer |
getRows()
Returns the rows of this textarea tag.
|
String |
getWidgetClass()
Returns the widget class, "zhtml.Input".
|
String |
getWrap()
Returns the wrap of this textarea tag.
|
protected void |
redrawChildrenDirectly(TagRenderContext rc,
org.zkoss.zk.ui.Execution exec,
Writer out)
Renders the children directly to the given output.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setCols(Integer cols)
Sets the cols of this textarea tag.
|
void |
setDynamicProperty(String name,
Object value)
Sets the dynamic property.
|
void |
setRows(Integer rows)
Sets the rows of this textarea tag.
|
void |
setWrap(String wrap)
Sets the wrap of this textarea tag.
|
getAccept, getAlt, getAutocomplete, getDirname, getHeight, getInputmode, getList, getMax, getMaxlength, getMin, getName, getPattern, getPlaceholder, getSelectiondirection, getSize, getSrc, getStep, getType, getValue, getWidth, isAutofocus, isChecked, isDisabled, isMultiple, isReadonly, isRequired, service, setAccept, setAlt, setAutocomplete, setAutofocus, setChecked, setDirname, setDisabled, setHeight, setInputmode, setList, setMax, setMaxlength, setMin, setMultiple, setName, setPattern, setPlaceholder, setReadonly, setRequired, setSelectiondirection, setSize, setSrc, setStep, setType, setValue, setWidth, smartUpdate
clone, getAccesskey, getDir, 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
addAnnotation, addAnnotation, addCallback, 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, getCallback, 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, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, 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, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
public Textarea()
public Textarea(String value)
public Integer getCols()
public void setCols(Integer cols) throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueException
public Integer getRows()
public void setRows(Integer rows) throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueException
public String getWrap()
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.
public void setWrap(String wrap) throws org.zkoss.zk.ui.WrongValueException
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.
org.zkoss.zk.ui.WrongValueException
public void afterCompose()
afterCompose
in interface org.zkoss.zk.ui.ext.AfterCompose
public void setDynamicProperty(String name, Object value) throws org.zkoss.zk.ui.WrongValueException
AbstractTag
Objects.toString(java.lang.Object)
).
Note: it handles the style property specially. Refer to AbstractTag.setStyle(java.lang.String)
for details.
setDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
setDynamicProperty
in class AbstractTag
org.zkoss.zk.ui.WrongValueException
public Object getDynamicProperty(String name)
AbstractTag
getDynamicProperty
in interface org.zkoss.zk.ui.ext.DynamicPropertied
getDynamicProperty
in class AbstractTag
public String getWidgetClass()
getWidgetClass
in interface org.zkoss.zk.ui.Component
getWidgetClass
in class Input
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException
renderProperties
in class AbstractTag
IOException
protected void redrawChildrenDirectly(TagRenderContext rc, org.zkoss.zk.ui.Execution exec, Writer out) throws IOException
AbstractTag
AbstractTag.redraw(java.io.Writer)
is going to render the content (HTML tags) directly. If it is about to
generate the JavaScript code AbstractComponent.redrawChildren(java.io.Writer)
will be called instead.
You have to override this method if the deriving class has additional information to render.
redrawChildrenDirectly
in class AbstractTag
IOException
Copyright © 2017. All Rights Reserved.