ilog.webui.dhtml.components

Class IlxWLink

  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable


    public class IlxWLink
    extends ilog.webui.dhtml.components.IlxWLabelWrapper
    Hyperlink component.

    This component is rendered either as an <a href> HTML element or as an interactive <span> HTML element, depending on the target browser. It is made up of a label component which you can retrieve through getLabel.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlxWLink

        public IlxWLink()
        Creates an empty link component.
      • IlxWLink

        public IlxWLink(java.lang.String text)
        Creates a link component displaying the given text.
    • Method Detail

      • getLabel

        public IlxWLabel getLabel()
        Gets the child label component.
        Overrides:
        getLabel in class ilog.webui.dhtml.components.IlxWLabelWrapper
        Returns:
        The child label component.
      • setAction

        public void setAction(IlxWAction action)
        Sets the action which will be called when the user clicks on the link.
        Parameters:
        action - The action to perform.
        See Also:
        getAction()
      • getAction

        public IlxWAction getAction()
        Gets the action which will be called when the user clicks on the link.

        By default, this action is a Java action (IlxWJavaAction) of which the perform method calls fireActionPerformed() on the link component.

        Returns:
        The action to perform when the user clicks on the link.
        See Also:
        setAction(ilog.webui.dhtml.components.IlxWAction)
      • printHtmlTagAttributes

        protected void printHtmlTagAttributes(IlxWPort port)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • removeActionListener

        public void removeActionListener(java.awt.event.ActionListener l)
        Removes the specified action listener so that it no longer receives action events from this textfield.
        Parameters:
        l - The action listener.
      • fireActionPerformed

        protected void fireActionPerformed()
        Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method. The listener list is processed in last to first order.
      • notifyDependencies

        public void notifyDependencies(IlxWPort port)
        Specified by:
        notifyDependencies in interface ilog.webui.dhtml.IlxWDependencyProvider
        Overrides:
        notifyDependencies in class IlxWComponent

© Copyright IBM Corp. 1987, 2017