WUI : API


org.westofj.wui
Class WExternalLink

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WAbstractButton
          extended byorg.westofj.wui.WLink
              extended byorg.westofj.wui.WExternalLink

public class WExternalLink
extends WLink

Presents a link that forwards the user to the specified URL. Processing for this redirection is first passed through the WUI event framework. The rendered HTML link returns the user to the WUI framework which processes all active listeners. The user is then presented with a redirection page which forwards them to the specified URL. For a more direct link that does not involve server side procesing use WAnchor.

Version:
$Revision: 1.2 $, $Date: 2004/03/08 01:57:35 $
Author:
bill

Constructor Summary
WExternalLink()
          Constructs an external link.
WExternalLink(String text, String url)
          Constructs an external link with the specified label and URL.
WExternalLink(WDisplayable text, String url)
          Constructs an external link with the specified label and URL.
 
Method Summary
 String getUrl()
          Returns the target of the external link.
 void setUrl(String url)
          Sets the target of the external link.
 
Methods inherited from class org.westofj.wui.WLink
getColor, getFont, getLinkColor, render, setColor, setFont, setLinkColor
 
Methods inherited from class org.westofj.wui.WAbstractButton
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, press, removeActionListener, setActionCommand, setEnabled, setText, setText
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WExternalLink

public WExternalLink()
Constructs an external link.


WExternalLink

public WExternalLink(String text,
                     String url)
Constructs an external link with the specified label and URL.

Parameters:
text - the label of the external link.
url - the target of the external link.

WExternalLink

public WExternalLink(WDisplayable text,
                     String url)
Constructs an external link with the specified label and URL.

Parameters:
text - the label of the external link.
url - the target of the external link.
Method Detail

getUrl

public String getUrl()
Returns the target of the external link.

Returns:
String the target of the external link.

setUrl

public void setUrl(String url)
Sets the target of the external link.

Parameters:
url - the target of the external link.

Copyright (c) 2003 West of J - All rights reserved.