|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swing.data.Link
An object which represents an URL link in a table cell, tree cell or list item.
| Constructor Summary | |
Link(String text,
String target,
String template,
String[] args)
|
|
Link(String text,
String target,
URL url)
|
|
| Method Summary | |
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
|
String |
getTarget()
Return the target for the URL. |
String |
getText()
|
URL |
getURL()
|
boolean |
getVisited()
|
int |
hashCode()
|
void |
setTarget(String target)
Set the target that the URL should load into. |
void |
setText(String text)
Set the display text. |
void |
setURL(URL url)
Set the url. |
void |
setVisited(boolean visited)
Sets a flag to indicate if the link has been visited. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Link(String text,
String target,
URL url)
public Link(String text,
String target,
String template,
String[] args)
text - text to that a renderer would displaytarget - the target that a URL should load into.template - a string that represents a URL with @{N} place holders
for string substitutionargs - an array of strings which will be used for substitition| Method Detail |
public void setText(String text)
public String getText()
public void setURL(URL url)
public URL getURL()
public void setTarget(String target)
public String getTarget()
public void setVisited(boolean visited)
public boolean getVisited()
public int compareTo(Object obj)
compareTo in interface Comparablepublic boolean equals(Object obj)
public int hashCode()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||