Package org.zkoss.zul

Class Auxheader

All Implemented Interfaces:
Serializable, Cloneable, Component, Scope, ComponentCtrl

public class Auxheader extends HeaderElement
An auxiliary header.

Default getZclass(): z-auxheader.(since 3.5.0)

Since:
3.0.0
Author:
tomyeh
See Also:
  • Constructor Details

    • Auxheader

      public Auxheader()
    • Auxheader

      public Auxheader(String label)
    • Auxheader

      public Auxheader(String label, String src)
  • Method Details

    • 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(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
    • setWidth

      public void setWidth(String width)
      Description copied from class: HtmlBasedComponent
      Sets the width. If null, the best fit is used.
      Overrides:
      setWidth in class HtmlBasedComponent
      Since:
      8.0.0
      See Also:
    • setVflex

      public void setVflex(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:
    • setHflex

      public void setHflex(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:
    • getZclass

      public String getZclass()
      Description copied from class: HtmlBasedComponent
      Returns the ZK Cascading Style class for this component. It usually depends on the implementation of the mold (AbstractComponent.getMold()).

      Default: null (the default value depends on element).

      HtmlBasedComponent.setZclass(java.lang.String)) will completely replace the default style of a component. In other words, the default style of a component is associated with the default value of HtmlBasedComponent.getZclass(). Once it is changed, the default style won't be applied at all. If you want to perform small adjustments, use HtmlBasedComponent.setSclass(java.lang.String) instead.

      Overrides:
      getZclass in class HtmlBasedComponent
      See Also:
    • renderProperties

      protected void renderProperties(ContentRenderer renderer) throws IOException
      Description copied from class: HtmlBasedComponent
      Renders the content of this component, excluding the enclosing tags and children.

      See also ZK Client-side Reference: Property Rendering

      Overrides:
      renderProperties in class HeaderElement
      Throws:
      IOException
    • beforeParentChanged

      public void beforeParentChanged(Component parent)
      Description copied from class: AbstractComponent
      Default: If parent is null, execute the @Destroy method if any.
      Specified by:
      beforeParentChanged in interface ComponentCtrl
      Overrides:
      beforeParentChanged in class AbstractComponent
      Parameters:
      parent - the new parent. If null, it means detachment.
      See Also: