|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opencms.frontend.templateone.CmsTemplateLink
public class CmsTemplateLink
Represents a single link to be used to display on the page.
These objects are used for the head link row creation of template one.
| Constructor Summary | |
|---|---|
CmsTemplateLink()
Creates a new CmsTemplateLink. |
|
CmsTemplateLink(java.lang.String anchor,
java.lang.String text,
java.lang.String target,
int order)
Creates a new CmsTemplateLink with initialized parameters. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this instance to another given object instance of this class to sort a list of links. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAnchor()
Returns the link anchor. |
int |
getOrder()
Returns the order number of the link. |
java.lang.String |
getTarget()
Returns the target of the link. |
java.lang.String |
getText()
Returns the displayed link text. |
int |
hashCode()
|
void |
setAnchor(java.lang.String anchor)
Sets the link anchor. |
void |
setOrder(int order)
Sets the order number of the link. |
void |
setTarget(java.lang.String target)
Sets the target of the link. |
void |
setText(java.lang.String text)
Sets the displayed link text. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsTemplateLink()
public CmsTemplateLink(java.lang.String anchor,
java.lang.String text,
java.lang.String target,
int order)
anchor - the link anchortext - the text to display for the linktarget - the linkt target, can be left emptyorder - the order number for sorting link lists| Method Detail |
|---|
public int compareTo(java.lang.Object obj)
Use java.util.Collections.sort(List) to sort a list of link objects by their order number ascending.
compareTo in interface java.lang.Comparableobj - the other given object instance to compare with
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getAnchor()
public int getOrder()
public java.lang.String getTarget()
public java.lang.String getText()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void setAnchor(java.lang.String anchor)
anchor - the link anchorpublic void setOrder(int order)
order - the order number of the linkpublic void setTarget(java.lang.String target)
target - the target of the linkpublic void setText(java.lang.String text)
text - the displayed link text
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||