public class IlxWLink
extends ilog.webui.dhtml.components.IlxWLabelWrapper
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.
IlxWComponent.DynamicStyleMapcssDescriptor, cssModel, labellistenerList| Constructor and Description |
|---|
IlxWLink()
Creates an empty link component.
|
IlxWLink(java.lang.String text)
Creates a link component displaying the given text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive
action events from this links.
|
protected IlxWAction |
createDefaultAction()
Creates the action which will be returned by default by
getAction. |
protected void |
fireActionPerformed()
Notifies all listeners that have registered interest for
notification on this event type.
|
IlxWAction |
getAction()
Gets the action which will be called when the user clicks on the link.
|
IlxWLabel |
getLabel()
Gets the child label component.
|
void |
notifyDependencies(IlxWPort port) |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical
representation of this component.
|
protected void |
printHtmlTagAttributes(IlxWPort port) |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer
receives action events from this textfield.
|
void |
setAction(IlxWAction action)
Sets the action which will be called when the user clicks on the link.
|
getCSSModel, getIconPath, getIcoPath, getText, setIconPath, setTextaddPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlxWLink()
public IlxWLink(java.lang.String text)
public IlxWLabel getLabel()
getLabel in class ilog.webui.dhtml.components.IlxWLabelWrapperpublic void setAction(IlxWAction action)
action - The action to perform.getAction()public IlxWAction getAction()
By default, this action is a Java action (IlxWJavaAction)
of which the perform method calls
fireActionPerformed() on the link component.
setAction(ilog.webui.dhtml.components.IlxWAction)protected IlxWAction createDefaultAction()
getAction.protected void printComponent(IlxWPort port) throws java.io.IOException
IlxWComponentIlxWComponent.print(ilog.webui.dhtml.IlxWPort) method.printComponent in class ilog.webui.dhtml.components.IlxWLabelWrapperjava.io.IOExceptionport - The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)protected void printHtmlTagAttributes(IlxWPort port) throws java.io.IOException
java.io.IOExceptionpublic void addActionListener(java.awt.event.ActionListener l)
Action listeners are fired by the default action.
l - The action listener.createDefaultAction(),
setAction(ilog.webui.dhtml.components.IlxWAction)public void removeActionListener(java.awt.event.ActionListener l)
l - The action listener.protected void fireActionPerformed()
public void notifyDependencies(IlxWPort port)
notifyDependencies in interface ilog.webui.dhtml.IlxWDependencyProvidernotifyDependencies in class IlxWComponent© Copyright IBM Corp. 1987, 2017