|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hamsam.api.URLComponent
A component to represent URLs in instant messages. A URL is special in that clients may want to show it as a "web link" rather than plain text. The URL component allows this by providing a link text and link URL. The link text is plain text that needs to be displayed to the user, while the link URL is a URL to which the user may connect to.
Constructor Summary | |
URLComponent(java.lang.String linkText,
java.net.URL linkURL)
Construct a url component with a link text and link url. |
Method Summary | |
java.lang.String |
getLinkText()
Returns the link text asociated with this URL component. |
java.net.URL |
getLinkURL()
Returns the link URL asociated with this URL component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLComponent(java.lang.String linkText, java.net.URL linkURL)
linkText
- the link text for this component.linkURL
- the link URL for this component.Method Detail |
public java.lang.String getLinkText()
public java.net.URL getLinkURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |