public class Textarea extends Input implements 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.ExtraCtrlAbstractComponent.Children_tagnmAFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHEDAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPECE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE| Constructor and Description |
|---|
Textarea() |
Textarea(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompose()
Invokes after ZK loader creates this component,
initializes it and composes all its children, if any.
|
java.lang.Integer |
getCols()
Returns the cols of this textarea tag.
|
java.lang.Object |
getDynamicProperty(java.lang.String name)
Returns the dynamic property, or null if not found.
|
java.lang.Integer |
getRows()
Returns the rows of this textarea tag.
|
java.lang.String |
getWidgetClass()
Returns the widget class, "zhtml.Input".
|
java.lang.String |
getWrap()
Returns the wrap of this textarea tag.
|
protected void |
redrawChildrenDirectly(TagRenderContext rc,
Execution exec,
java.io.Writer out)
Renders the children directly to the given output.
|
protected void |
renderProperties(ContentRenderer renderer)
Called by (
ComponentCtrl.redraw(java.io.Writer)) to render the
properties, excluding the enclosing tag and children. |
void |
setCols(java.lang.Integer cols)
Sets the cols of this textarea tag.
|
void |
setDynamicProperty(java.lang.String name,
java.lang.Object value)
Sets the dynamic property.
|
void |
setRows(java.lang.Integer rows)
Sets the rows of this textarea tag.
|
void |
setWrap(java.lang.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, smartUpdateclone, 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, toStringaddAnnotation, 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, willSerializepublic java.lang.Integer getCols()
public void setCols(java.lang.Integer cols)
throws WrongValueException
WrongValueExceptionpublic java.lang.Integer getRows()
public void setRows(java.lang.Integer rows)
throws WrongValueException
WrongValueExceptionpublic java.lang.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(java.lang.String wrap)
throws 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.
WrongValueExceptionpublic void afterCompose()
AfterComposeafterCompose in interface AfterComposepublic void setDynamicProperty(java.lang.String name,
java.lang.Object value)
throws WrongValueException
AbstractTagObjects.toString(java.lang.Object)).
Note: it handles the style property specially. Refer to AbstractTag.setStyle(java.lang.String) for details.
setDynamicProperty in interface DynamicPropertiedsetDynamicProperty in class AbstractTagWrongValueExceptionpublic java.lang.Object getDynamicProperty(java.lang.String name)
AbstractTaggetDynamicProperty in interface DynamicPropertiedgetDynamicProperty in class AbstractTagpublic java.lang.String getWidgetClass()
getWidgetClass in interface ComponentgetWidgetClass in class InputComponent.setWidgetClass(java.lang.String)protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
AbstractComponentComponentCtrl.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 in AbstractComponent.getClientEvents()).
Note: it doesn't render AbstractComponent.getWidgetClass(), AbstractComponent.getUuid()
and AbstractComponent.getMold(), which are caller's job.
renderProperties in class AbstractTagjava.io.IOExceptionprotected void redrawChildrenDirectly(TagRenderContext rc, Execution exec, java.io.Writer out) throws java.io.IOException
AbstractTagAbstractTag.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 AbstractTagjava.io.IOExceptionCopyright © 2005-2011 Potix Corporation. All Rights Reserved.