Class LabelElement

    • Constructor Detail

      • LabelElement

        public LabelElement()
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Returns the label (never null).

        Default: "".

      • setLabel

        public void setLabel​(java.lang.String label)
        Sets the label.

        If label is changed, the whole component is invalidate. Thus, you want to smart-update, you have to override this method.

      • renderCrawlable

        protected void renderCrawlable​(java.lang.String label)
                                throws java.io.IOException
        Renders the crawlable information. It is called by renderProperties(org.zkoss.zk.ui.sys.ContentRenderer), and designed to be overridden if the deriving class wants to generate it differently.

        Default: org.zkoss.zul.impl.Utils.renderCrawlableText(label)

        Throws:
        java.io.IOException
        Since:
        5.0.5
      • getPropertyAccess

        public PropertyAccess getPropertyAccess​(java.lang.String prop)
        Description copied from interface: ComponentCtrl
        Returns the corresponding property access object from the given property name, if any.
        Specified by:
        getPropertyAccess in interface ComponentCtrl
        Overrides:
        getPropertyAccess in class XulElement
        Parameters:
        prop - the name of the property
        Returns:
        null it means not to support for the property name.