An HTML like label which can be a graphic and/or text which responds to rollovers and clicks.
When a hyperlink is clicked/pressed isVisited becomes true. A Hyperlink behaves
just like a Button. When a hyperlink is pressed and released
a ActionEvent is sent, and your application can perform some action based on this event.
Example:
Hyperlink link = new Hyperlink("www.oracle.com");
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final PseudoClass | |
| private BooleanProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public void | fire()
Implements abstract javafx. Implemented to invoke the |
| protected Cursor | getInitialCursor()
Overrides javafx. Returns the initial cursor state of this control, for use by the JavaFX CSS engine to correctly set its initial value. |
| private void | |
| public final boolean | |
| public Object | queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public final void | |
| public final BooleanProperty | Returns: true if this link has already been "visited"Indicates whether this link has already been "visited". |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| PSEUDO_CLASS_VISITED | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_VISITED | |
| visited | back to summary |
|---|---|
| private BooleanProperty visited | |
| Hyperlink | back to summary |
|---|---|
| public Hyperlink() Creates a hyperlink with no label. | |
| Hyperlink | back to summary |
|---|---|
| public Hyperlink(String text) Create a hyperlink with the specified text as its label.
| |
| Hyperlink | back to summary |
|---|---|
| public Hyperlink(String text, Node graphic) Create a hyperlink with the specified text and graphic as its label. | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| fire | back to summary |
|---|---|
| public void fire() Implements abstract javafx. Implemented to invoke the
| |
| getInitialCursor | back to summary |
|---|---|
| protected Cursor getInitialCursor() Overrides javafx. Returns the initial cursor state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden to use the HAND cursor initially.
| |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| isVisited | back to summary |
|---|---|
| public final boolean isVisited() | |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| setVisited | back to summary |
|---|---|
| public final void setVisited(boolean value) | |
| visitedProperty | back to summary |
|---|---|
| public final BooleanProperty visitedProperty() Indicates whether this link has already been "visited".
| |