org.wings.header
Class Link
java.lang.Object
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
|
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"))); |
rel
protected String rel
rev
protected String rev
type
protected String type
target
protected String target
urlSource
protected URLResource urlSource
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 -
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 ;-)