Class 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 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:
    Serialized Form
    • Constructor Detail

      • Textarea

        public Textarea()
      • Textarea

        public Textarea​(java.lang.String value)
    • 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.WrongValueException
        Sets 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.WrongValueException
        Sets 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.WrongValueException
        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:
        org.zkoss.zk.ui.WrongValueException
        Since:
        8.0.3
      • afterCompose

        public void afterCompose()
        Specified by:
        afterCompose in interface org.zkoss.zk.ui.ext.AfterCompose
      • setDynamicProperty

        public void setDynamicProperty​(java.lang.String name,
                                       java.lang.Object value)
                                throws org.zkoss.zk.ui.WrongValueException
        Description copied from class: AbstractTag
        Sets the dynamic property. Note: it converts the value to a string object (by use of Objects.toString(java.lang.Object)).

        Note: it handles the style property specially. Refer to AbstractTag.setStyle(java.lang.String) for details.

        Specified by:
        setDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertied
        Overrides:
        setDynamicProperty in class AbstractTag
        Throws:
        org.zkoss.zk.ui.WrongValueException
      • getDynamicProperty

        public java.lang.Object getDynamicProperty​(java.lang.String name)
        Description copied from class: AbstractTag
        Returns the dynamic property, or null if not found. Note: it must be a String object or null.
        Specified by:
        getDynamicProperty in interface org.zkoss.zk.ui.ext.DynamicPropertied
        Overrides:
        getDynamicProperty in class AbstractTag
      • getWidgetClass

        public java.lang.String getWidgetClass()
        Returns the widget class, "zhtml.Input".
        Specified by:
        getWidgetClass in interface org.zkoss.zk.ui.Component
        Overrides:
        getWidgetClass in class Input
        Since:
        8.0.0
      • renderProperties

        protected void renderProperties​(org.zkoss.zk.ui.sys.ContentRenderer renderer)
                                 throws java.io.IOException
        Overrides:
        renderProperties in class AbstractTag
        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: AbstractTag
        Renders the children directly to the given output. Notice it is called only if 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.

        Overrides:
        redrawChildrenDirectly in class AbstractTag
        Throws:
        java.io.IOException