org.wings.header
Class Link

java.lang.Object
  extended by org.wings.header.Link
All Implemented Interfaces:
Serializable, Header, Renderable
Direct Known Subclasses:
FaviconHeader, StyleSheetHeader, StyleSheetLink

public class Link
extends Object
implements Header, Serializable

Include a <LINK>-element inside the HTML header of rendered page.

Example usage to include a customer stylesheet.
frame.addHeader(new Link("stylesheet", null, "text/css", null, new DefaultURLResource("../css/appstyles.css")));

Author:
Holger Engels
See Also:
Serialized Form

Field Summary
protected  String rel
           
protected  String rev
           
protected  String target
           
protected  String type
           
protected  URLResource urlSource
           
 
Constructor Summary
Link(String rel, String rev, String type, String target, URLResource urlSource)
          Example usage to include a customer stylesheet.
frame.addHeader(new Link("stylesheet", null, "text/css", null, new DefaultURLResource("../css/appstyles.css")));
 
Method Summary
 boolean equals(Object obj)
           
 String getRel()
           
 String getRev()
           
 String getTarget()
           
 String getType()
           
 SimpleURL getURL()
           
 int hashCode()
           
 void setRel(String rel)
           
 void setRev(String rev)
           
 void setTarget(String target)
           
 void setType(String type)
           
 String toString()
           
 void write(Device d)
          Write this Renderable component to some output device.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rel

protected String rel

rev

protected String rev

type

protected String type

target

protected String target

urlSource

protected URLResource urlSource
Constructor Detail

Link

public Link(String rel,
            String rev,
            String type,
            String target,
            URLResource urlSource)
Example usage to include a customer stylesheet.
frame.addHeader(new Link("stylesheet", null, "text/css", null, new DefaultURLResource("../css/appstyles.css")));

Parameters:
rel -
rev -
type -
target -
urlSource -
Method Detail

setRel

public void setRel(String rel)

getRel

public String getRel()

setRev

public void setRev(String rev)

getRev

public String getRev()

setType

public void setType(String type)

getType

public String getType()

getURL

public SimpleURL getURL()

setTarget

public void setTarget(String target)

getTarget

public String getTarget()

write

public void write(Device d)
           throws IOException
Description copied from interface: Renderable
Write this Renderable component to some output device.

Specified by:
write in interface Renderable
Throws:
IOException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


wingS Swings ;-)