Package org.zkoss.zul

Class Auxheader

    • Constructor Detail

      • Auxheader

        public Auxheader()
      • Auxheader

        public Auxheader​(java.lang.String label)
      • Auxheader

        public Auxheader​(java.lang.String label,
                         java.lang.String src)
    • Method Detail

      • getColspan

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

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

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

        Throws:
        WrongValueException
      • getRowspan

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

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

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

        Throws:
        WrongValueException
      • setHeight

        public void setHeight​(java.lang.String height)
        Description copied from class: HtmlBasedComponent
        Sets the height. If null, the best fit is used.
        Overrides:
        setHeight in class HtmlBasedComponent
        Since:
        8.0.0
      • setVflex

        public void setVflex​(java.lang.String flex)
        Description copied from class: HtmlBasedComponent
        Sets vertical flexibility hint of this component.

        Number flex indicates how this component's container distributes remaining empty space among its children vertically. Flexible component grow and shrink to fit their given space. Flexible components with larger flex values will be made larger than components with lower flex values, at the ratio determined by all flexible components. The actual flex value is not relevant unless there are other flexible components within the same container. Once the default sizes of components in a container are calculated, the remaining space in the container is divided among the flexible components, according to their flex ratios.

        Specify a flex value of negative value, 0, or "false" has the same effect as leaving the flex attribute out entirely. Specify a flex value of "true" has the same effect as a flex value of 1.

        Special flex hint, "min", indicates that the minimum space shall be given to this flexible component to enclose all of its children components. That is, the flexible component grow and shrink to fit its children components.

        Overrides:
        setVflex in class HtmlBasedComponent
        Parameters:
        flex - the vertical flex hint.
        Since:
        8.0.0
        See Also:
        HtmlBasedComponent.setHflex(java.lang.String), HtmlBasedComponent.getVflex()
      • setHflex

        public void setHflex​(java.lang.String flex)
        Description copied from class: HtmlBasedComponent
        Sets horizontal flex hint of this component.

        Number flex indicates how this component's container distributes remaining empty space among its children horizontally. Flexible component grow and shrink to fit their given space. Flexible components with larger flex values will be made larger than components with lower flex values, at the ratio determined by all flexible components. The actual flex value is not relevant unless there are other flexible components within the same container. Once the default sizes of components in a container are calculated, the remaining space in the container is divided among the flexible components, according to their flex ratios.

        Specify a flex value of negative value, 0, or "false" has the same effect as leaving the flex attribute out entirely. Specify a flex value of "true" has the same effect as a flex value of 1.

        Special flex hint, "min", indicates that the minimum space shall be given to this flexible component to enclose all of its children components. That is, the flexible component grow and shrink to fit its children components.

        Overrides:
        setHflex in class HtmlBasedComponent
        Parameters:
        flex - horizontal flex hint of this component.
        Since:
        8.0.0
        See Also:
        HtmlBasedComponent.setVflex(java.lang.String), HtmlBasedComponent.getHflex()