Package org.zkoss.zul

Class Div

  • All Implemented Interfaces:, java.lang.Cloneable, Component, Scope, ComponentCtrl
    Direct Known Subclasses:

    public class Div
    extends XulElement
    The same as HTML DIV tag.

    An extension. It has the same effect as <h:div xmlns:h="">. Note: a Window without title and caption has the same visual effect as Div, but Div doesn't implement IdSpace. In other words, Div won't affect the uniqueness of identifiers.

    See Also:
    Serialized Form
    • Constructor Detail

      • Div

        public Div()
    • Method Detail

      • getAlign

        public java.lang.String getAlign()
        as of release 6.0.0, use CSS instead.
        Returns the alignment.

        Default: null (use browser default).

      • setAlign

        public void setAlign​(java.lang.String align)
        as of release 6.0.0, use CSS instead.
        Sets the alignment: one of left, center, right, justify,