|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWLabelWrapper ilog.webui.dhtml.components.IlxWLink
public class IlxWLink
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
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary |
---|
Fields inherited from class ilog.webui.dhtml.components.IlxWLabelWrapper |
---|
cssDescriptor, cssModel, label |
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWLink()
Creates an empty link component. |
|
IlxWLink(String text)
Creates a link component displaying the given text. |
Method Summary | |
---|---|
void |
addActionListener(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(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. |
Methods inherited from class ilog.webui.dhtml.components.IlxWLabelWrapper |
---|
getCSSModel, getIconPath, getIcoPath, getText, setIconPath, setText |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
---|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
---|
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlxWLink()
public IlxWLink(String text)
Method Detail |
---|
public IlxWLabel getLabel()
getLabel
in class ilog.webui.dhtml.components.IlxWLabelWrapper
public 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
.
getAction()
,
setAction(ilog.webui.dhtml.components.IlxWAction)
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class ilog.webui.dhtml.components.IlxWLabelWrapper
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
protected void printHtmlTagAttributes(IlxWPort port) throws IOException
IOException
public void addActionListener(ActionListener l)
Action listeners are fired by the default action.
l
- The action listener.createDefaultAction()
,
setAction(ilog.webui.dhtml.components.IlxWAction)
public void removeActionListener(ActionListener l)
l
- The action listener.protected void fireActionPerformed()
public void notifyDependencies(IlxWPort port)
notifyDependencies
in interface ilog.webui.dhtml.IlxWDependencyProvider
notifyDependencies
in class IlxWComponent
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |