Package org.zkoss.zul

Class Div

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

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

    An extension. It has the same effect as <h:div xmlns:h="http://www.w3.org/1999/xhtml">. 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.

    Author:
    tomyeh
    See Also:
    Serialized Form
    • Constructor Detail

      • Div

        public Div()
    • Method Detail

      • getAlign

        public java.lang.String getAlign()
        Deprecated.
        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)
        Deprecated.
        as of release 6.0.0, use CSS instead.
        Sets the alignment: one of left, center, right, justify,