Package org.zkoss.zul

Class Cell

    • Constructor Detail

      • Cell

        public Cell()
    • Method Detail

      • getAlign

        public java.lang.String getAlign()
        Returns the horizontal alignment.

        Default: null (system default: left unless CSS specified).

      • setAlign

        public void setAlign​(java.lang.String align)
        Sets the horizontal alignment. Allowed values: left,right,center,justify,char.
      • getValign

        public java.lang.String getValign()
        Returns the vertical alignment.

        Default: null (system default: top).

      • setValign

        public void setValign​(java.lang.String valign)
        Sets the vertical alignment of this grid. Allowed values: top, middle, bottom, baseline
      • getColspan

        public int getColspan()
        Returns number of columns to span. Default: 1.
      • setColspan

        public void setColspan​(int colspan)
                        throws WrongValueException
        Sets the number of columns to span.

        It is the same as the colspan attribute of HTML TD tag.

        Throws:
        WrongValueException
      • getRowspan

        public int getRowspan()
        Returns number of rows to span. Default: 1.
      • setRowspan

        public void setRowspan​(int rowspan)
                        throws WrongValueException
        Sets the number of rows to span.

        It is the same as the rowspan attribute of HTML TD tag.

        Throws:
        WrongValueException
      • clone

        public java.lang.Object clone()
        Description copied from interface: Component
        Clones the component. All of its children and descendants are cloned. Also, ID are preserved.
        Specified by:
        clone in interface Component
        Overrides:
        clone in class XulElement
        Returns:
        the new component. Notice that it doesn't belong to any page, nor desktop. It doesn't have a parent, either.