modules/controls/src/main/java/javafx/scene/control/Hyperlink.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene.control;
  27 
  28 import javafx.beans.property.BooleanProperty;
  29 import javafx.beans.property.BooleanPropertyBase;
  30 import javafx.beans.value.WritableValue;
  31 import javafx.event.ActionEvent;
  32 import javafx.scene.AccessibleAttribute;
  33 import javafx.scene.AccessibleRole;
  34 import javafx.scene.Cursor;
  35 import javafx.scene.Node;
  36 import javafx.css.PseudoClass;
  37 
  38 import com.sun.javafx.scene.control.skin.HyperlinkSkin;
  39 
  40 import javafx.css.StyleableProperty;
  41 
  42 
  43 /**
  44  * <p>An HTML like label which can be a graphic and/or text which responds to rollovers and clicks.
  45  * When a hyperlink is clicked/pressed {@link #isVisited} becomes {@code true}.  A Hyperlink behaves
  46  * just like a {@link Button}.  When a hyperlink is pressed and released
  47  * a {@link ActionEvent} is sent, and your application can perform some action based on this event.
  48  * </p>
  49  *
  50  * <p>Example:</p>
  51  * {@code Hyperlink link = new Hyperlink("www.oracle.com"); }
  52  * @since JavaFX 2.0
  53  */
  54 public class Hyperlink extends ButtonBase {
  55 
  56     /***************************************************************************
  57      *                                                                         *
  58      * Constructors                                                            *




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene.control;
  27 
  28 import javafx.beans.property.BooleanProperty;
  29 import javafx.beans.property.BooleanPropertyBase;
  30 import javafx.beans.value.WritableValue;
  31 import javafx.event.ActionEvent;
  32 import javafx.scene.AccessibleAttribute;
  33 import javafx.scene.AccessibleRole;
  34 import javafx.scene.Cursor;
  35 import javafx.scene.Node;
  36 import javafx.css.PseudoClass;
  37 
  38 import javafx.scene.control.skin.HyperlinkSkin;
  39 
  40 import javafx.css.StyleableProperty;
  41 
  42 
  43 /**
  44  * <p>An HTML like label which can be a graphic and/or text which responds to rollovers and clicks.
  45  * When a hyperlink is clicked/pressed {@link #isVisited} becomes {@code true}.  A Hyperlink behaves
  46  * just like a {@link Button}.  When a hyperlink is pressed and released
  47  * a {@link ActionEvent} is sent, and your application can perform some action based on this event.
  48  * </p>
  49  *
  50  * <p>Example:</p>
  51  * {@code Hyperlink link = new Hyperlink("www.oracle.com"); }
  52  * @since JavaFX 2.0
  53  */
  54 public class Hyperlink extends ButtonBase {
  55 
  56     /***************************************************************************
  57      *                                                                         *
  58      * Constructors                                                            *