|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.LinkModel
public class LinkModel
An bean which represents an URL link. Text, URL and visited are bound properties. Compares by Text.
Field Summary | |
---|---|
static String |
VISITED_PROPERTY
|
Constructor Summary | |
---|---|
LinkModel()
|
|
LinkModel(String text)
|
|
LinkModel(String text,
String target,
String template,
String[] args)
|
|
LinkModel(String text,
String target,
URL url)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
|
protected void |
firePropertyChange(String property,
boolean oldValue,
boolean newValue)
|
protected void |
firePropertyChange(String property,
Object oldValue,
Object newValue)
|
String |
getTarget()
Return the target for the URL. |
String |
getText()
|
URL |
getURL()
|
boolean |
getVisited()
|
int |
hashCode()
|
void |
removePropertyChangeListener(PropertyChangeListener l)
|
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 and resets the visited flag. |
void |
setURLString(String howToURLString)
|
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 |
Field Detail |
---|
public static final String VISITED_PROPERTY
Constructor Detail |
---|
public LinkModel(String text, String target, URL url)
text
- target
- url
- public LinkModel()
public LinkModel(String text)
public LinkModel(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 substititionMethod Detail |
---|
public void setText(String text)
public String getText()
public void setURLString(String howToURLString)
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 void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
protected void firePropertyChange(String property, Object oldValue, Object newValue)
protected void firePropertyChange(String property, boolean oldValue, boolean newValue)
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |