org.wings
Class SAnchor

java.lang.Object
  extended by org.wings.SComponent
      extended by org.wings.SContainer
          extended by org.wings.SAnchor
All Implemented Interfaces:
Serializable, Cloneable, Renderable

public class SAnchor
extends SContainer

Container used to force a HTML Link.

Creates a 'normal' <a href="http://whatever/">...</a> HTML link around some components that are stored in the container.

Author:
Henner Zeller
See Also:
Serialized Form

Field Summary
protected  String target
          the target frame/window.
protected  SimpleURL url
          the URL to link to.
 
Fields inherited from class org.wings.SComponent
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME
 
Constructor Summary
SAnchor()
          creates an anchor with emtpy URL and target.
SAnchor(SimpleURL url, String target)
          creates an anchor that points to the URL and is openend in the frame or window named target.
SAnchor(String url)
          create an anchor that points to the URL url.
SAnchor(String url, String target)
          creates an anchor that points to the URL and is openend in the frame or window named target.
 
Method Summary
 String getTarget()
          get the name of the target frame/window.
 SimpleURL getURL()
          get the url the anchor points to.
 void setCG(AnchorCG cg)
           
 void setTarget(String t)
          set the name of the target frame/window.
 void setURL(SimpleURL r)
          set the url this anchor points to.
 void setURL(String url)
          set the url this anchor points to.
 void setURL(URL ref)
          set the url this anchor points to.
 
Methods inherited from class org.wings.SContainer
add, add, add, add, addComponent, addComponent, addComponent, addComponent, addContainerListener, addNotify, clone, fireContainerEvent, getComponent, getComponentCount, getComponentList, getComponents, getConstraintAt, getConstraintList, getLayout, invite, inviteEachComponent, isShowingChildren, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCG, setLayout, setParentFrame, updateCG
 
Methods inherited from class org.wings.SComponent
addComponentListener, addDynamicStyle, addEventListener, addParentFrameListener, addPropertyChangeListener, addPropertyChangeListener, addRenderListener, addScriptListener, addStyle, fireComponentChangeEvent, fireFinalEvents, fireKeyEvents, fireRenderEvent, getActionMap, getBackground, getBorder, getCG, getClientProperty, getComponentPopupMenu, getDynamicStyle, getDynamicStyles, getFocusTraversalIndex, getFont, getForeground, getHorizontalAlignment, getInputMap, getInputMap, getListenerCount, getListenerList, getListeners, getLowLevelEventId, getName, getParent, getParentFrame, getPreferredSize, getRequestURL, getResidesInForm, getScriptListenerList, getScriptListeners, getSession, getShowAsFormComponent, getStyle, getToolTipText, getVerticalAlignment, isDifferent, isEnabled, isFocusOwner, isRecursivelyVisible, isReloadForced, isUpdatePossible, isVisible, paramString, processComponentEvent, processKeyEvents, processLowLevelEvent, putClientProperty, reload, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, removeComponentListener, removeDynamicStyle, removeEventListener, removeParentFrameListener, removePropertyChangeListener, removePropertyChangeListener, removeRenderListener, removeScriptListener, removeStyle, requestFocus, scrollRectToVisible, setActionMap, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setBackground, setBorder, setCG, setComponentPopupMenu, setDynamicStyles, setEnabled, setFocusTraversalIndex, setFont, setForeground, setHorizontalAlignment, setInputMap, setInputMap, setName, setNameRaw, setParent, setPreferredSize, setReloadForced, setShowAsFormComponent, setStyle, setToolTipText, setVerticalAlignment, setVisible, toString, update, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

url

protected SimpleURL url
the URL to link to.


target

protected String target
the target frame/window.

Constructor Detail

SAnchor

public SAnchor()
creates an anchor with emtpy URL and target.


SAnchor

public SAnchor(String url)
create an anchor that points to the URL url.

Parameters:
url - the url to point to.

SAnchor

public SAnchor(String url,
               String target)
creates an anchor that points to the URL and is openend in the frame or window named target.

Parameters:
url - the url to link to.
target - the target window or frame.

SAnchor

public SAnchor(SimpleURL url,
               String target)
creates an anchor that points to the URL and is openend in the frame or window named target.

Parameters:
url - the url to link to.
target - the target window or frame.
Method Detail

setURL

public void setURL(URL ref)
set the url this anchor points to.

Parameters:
ref - the url.

setURL

public void setURL(SimpleURL r)
set the url this anchor points to.

Parameters:
r - the url.

setURL

public void setURL(String url)
set the url this anchor points to.

Parameters:
url - the url.

setTarget

public void setTarget(String t)
set the name of the target frame/window.


getTarget

public String getTarget()
get the name of the target frame/window.


getURL

public SimpleURL getURL()
get the url the anchor points to.


setCG

public void setCG(AnchorCG cg)


wingS Swings ;-)