|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.LinkRef
public class LinkRef
Encapsulates a web link, suitable for use in lists, etc. A LinkRef includes a required URL reference with its optional link text:
<a href="http://www.sealioncaves.com/webcam/">Sea Lion Caves WebCam</a>
| Field Summary | |
|---|---|
static boolean |
compareCaseSensitive
When true, sorting (using the Comparable interface) on link text is case sensitive. |
| Constructor Summary | |
|---|---|
LinkRef(String uri,
String linktext)
Constructor with a required URI and an optional link text, both as Strings. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Returns 0 if the provided LinkRef has the same URI and text as this, and +1 or -1 based on sort order on the two titles. |
String |
getText()
Returns the link text as a String. |
String |
getURI()
Returns the link URI as a String. |
boolean |
hasText()
Returns true if the link text has been set. |
void |
setText(String text)
Sets the link text to the String text. |
void |
setURI(String uri)
Sets the link URI to the String uri. |
String |
toString()
Return a String representation of this LinkRef, ie., its link text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean compareCaseSensitive
| Constructor Detail |
|---|
public LinkRef(String uri,
String linktext)
| Method Detail |
|---|
public void setURI(String uri)
public String getURI()
public boolean hasText()
public void setText(String text)
public String getText()
public String toString()
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||