public interface ILink extends ILabel
ILabel
.
The link text is interpreted as a pre-formatted text and is properly encoded if contains HTML unsafe characters.
A link may have a target URL or a Consumer
defining an action to be called when clicked.
If a target URL
is set, it will be returned as the default tool tip.
Modifier and Type | Method and Description |
---|---|
Consumer<java.awt.event.MouseEvent> |
getConsumer()
Returns the consumer to be called when clicked.
|
java.net.URL |
getUrl()
Returns the
URL to be opened when clicked. |
void |
setConsumer(Consumer<java.awt.event.MouseEvent> consumer)
Sets the consumer to be called when clicked.
|
void |
setUrl(java.net.URL url)
Sets the the
URL to be opened when clicked. |
allBorder, allBorder, asLabel, boldFont, bottomBorder, color, horizontalBorder, italicFont, leftBorder, rightBorder, topBorder, verticalBorder
java.net.URL getUrl()
URL
to be opened when clicked.URL
to be opened when clickedvoid setUrl(java.net.URL url)
URL
to be opened when clicked.url
- the URL
to be opened when clickedConsumer<java.awt.event.MouseEvent> getConsumer()
void setConsumer(Consumer<java.awt.event.MouseEvent> consumer)
consumer
- the consumer to be called when clicked
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.