Package org.zkoss.zul

Class A

    • Constructor Detail

      • A

        public A()
      • A

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

        public A​(java.lang.String label,
                 java.lang.String image)
    • Method Detail

      • isDisabled

        public boolean isDisabled()
        Returns whether it is disabled.

        Default: false.

        Specified by:
        isDisabled in interface Disable
      • setDisabled

        public void setDisabled​(boolean disabled)
        Sets whether it is disabled.
        Specified by:
        setDisabled in interface Disable
      • getAutodisable

        public java.lang.String getAutodisable()
        Returns a list of component IDs that shall be disabled when the user clicks this anchor.
      • setAutodisable

        public void setAutodisable​(java.lang.String autodisable)
        Sets a list of component IDs that shall be disabled when the user clicks this anchor.

        To represent the anchor itself, the developer can specify self. For example, <a id="ok" autodisable="self,cancel"/> is the same as <a id="ok" autodisable="ok,cancel"/> that will disable both the ok and cancel anchor when an user clicks it.

        The anchor being disabled will be enabled automatically once the client receives a response from the server. In other words, the server doesn't notice if a anchor is disabled with this method.

        However, if you prefer to enable them later manually, you can prefix with '+'. For example, <a id="ok" autodisable="+self,+cancel"/>

        Then, you have to enable them manually such as

        if (something_happened){

        Default: null.

      • getDir

        public java.lang.String getDir()
        Returns the direction.

        Default: "normal".

      • setDir

        public void setDir​(java.lang.String dir)
                    throws WrongValueException
        Sets the direction to layout with image.
        dir - either "normal" or "reverse".
      • getHref

        public java.lang.String getHref()
        Returns the href that the browser shall jump to, if an user clicks this button.

        Default: null. If null, the button has no function unless you specify the onClick event listener.

        If it is not null, the onClick event won't be sent.

      • setHref

        public void setHref​(java.lang.String href)
        Sets the href.
      • getTarget

        public java.lang.String getTarget()
        Returns the target frame or window.

        Note: it is useful only if href (setHref(java.lang.String)) is specified (i.e., use the onClick listener).

        Default: null.

      • setTarget

        public void setTarget​(java.lang.String target)
        Sets the target frame or window.
        target - the name of the frame or window to hyperlink.