|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Head.Link
public class Head.Link
Inner class for the <link> tag which only ever appears in the header.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
Head.Link(java.lang.String relationship,
java.lang.String href,
java.lang.String type)
The <link> tag defines the relationship between the current document and another in a Web collection. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHREF()
Returns the source URL attribute of this Link tag. |
java.lang.String |
getMedia()
Returns the media attribute of this Link tag. |
java.lang.String |
getRelationship()
Returns the relationship attribute of this Link tag. |
java.lang.String |
getRelationshipType()
Returns the relationship type attribute of this Link tag. |
protected void |
setAttribute(TagAttribute attribute)
Adds the specified attribute. |
void |
setContent(java.lang.String href)
Sets the HREF attribute of this LINK tag. |
Head.Link |
setHREF(java.lang.String href)
Sets the source URL attribute of this Link tag. |
Head.Link |
setMedia(java.lang.String media)
Sets the media attribute of this Link tag. |
Head.Link |
setRelationship(java.lang.String relationship)
Sets the relationship attribute of this Link tag. |
Head.Link |
setRelationshipType(java.lang.String type)
Sets the relationship type attribute of this Link tag. |
void |
write(Browser browser)
Over-rides the inherited write() from HTML. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Head.Link(java.lang.String relationship,
java.lang.String href,
java.lang.String type)
relationship - defines the relationship between the current element and
the destination of the linkhref - the URL of the destination linktype - the type of Link (eg 'stylesheet')| Method Detail |
|---|
public java.lang.String getHREF()
public java.lang.String getMedia()
public java.lang.String getRelationship()
public java.lang.String getRelationshipType()
public void setContent(java.lang.String href)
setContent in interface HTMLsetContent in class Taghref - the href attribute of this Link tag.setHREF(java.lang.String)public Head.Link setHREF(java.lang.String href)
href - the href attribute of this Link tag.
public Head.Link setMedia(java.lang.String media)
media - used to specify different styles for different media
types.
public Head.Link setRelationship(java.lang.String relationship)
relationship - defines the relationship between the current element and
the destination of the link
public Head.Link setRelationshipType(java.lang.String type)
type - the type attribute of this Link tag.
public void write(Browser browser)
throws java.io.IOException
write in interface HTMLwrite in class Tagbrowser - the browser to which the results are to be output.
java.io.IOException - if an IO exception occursTag.setWriteEndTag(boolean),
Tag.writeContent(org.pajes.servlet.Browser)protected void setAttribute(TagAttribute attribute)
Tag
setAttribute in class Tagattribute - The attribute.Tag.setAttribute(org.pajes.html.TagAttribute)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||