< prev index next >

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

Print this page




  82  * @see Menu
  83  * @see MenuItem
  84  * @see RadioMenuItem
  85  *
  86  * @since JavaFX 2.0
  87  */
  88 public class CheckMenuItem extends MenuItem {
  89 
  90     /***************************************************************************
  91      *                                                                         *
  92      * Constructors                                                            *
  93      *                                                                         *
  94      **************************************************************************/
  95 
  96     public CheckMenuItem() {
  97         this(null,null);
  98     }
  99 
 100     /**
 101      * Constructs a CheckMenuItem and sets the display text with the specified text.

 102      */
 103     public CheckMenuItem(String text) {
 104         this(text,null);
 105     }
 106 
 107     /**
 108      * Constructs a CheckMenuItem and sets the display text with the specified text
 109      * and sets the graphic {@link Node} to the given node.


 110      */
 111     public CheckMenuItem(String text, Node graphic) {
 112         super(text,graphic);
 113         getStyleClass().add(DEFAULT_STYLE_CLASS);
 114     }
 115 
 116 
 117 
 118     /***************************************************************************
 119      *                                                                         *
 120      * Properties                                                              *
 121      *                                                                         *
 122      **************************************************************************/
 123     /**
 124      * Represents the current state of this CheckMenuItem. Bind to this to be
 125      * informed whenever the user interacts with the CheckMenuItem (and causes the
 126      * selected state to be toggled).
 127      *
 128      * @defaultValue false
 129      */




  82  * @see Menu
  83  * @see MenuItem
  84  * @see RadioMenuItem
  85  *
  86  * @since JavaFX 2.0
  87  */
  88 public class CheckMenuItem extends MenuItem {
  89 
  90     /***************************************************************************
  91      *                                                                         *
  92      * Constructors                                                            *
  93      *                                                                         *
  94      **************************************************************************/
  95 
  96     public CheckMenuItem() {
  97         this(null,null);
  98     }
  99 
 100     /**
 101      * Constructs a CheckMenuItem and sets the display text with the specified text.
 102      * @param text the display text
 103      */
 104     public CheckMenuItem(String text) {
 105         this(text,null);
 106     }
 107 
 108     /**
 109      * Constructs a CheckMenuItem and sets the display text with the specified text
 110      * and sets the graphic {@link Node} to the given node.
 111      * @param text the display text
 112      * @param graphic the graphic Node
 113      */
 114     public CheckMenuItem(String text, Node graphic) {
 115         super(text,graphic);
 116         getStyleClass().add(DEFAULT_STYLE_CLASS);
 117     }
 118 
 119 
 120 
 121     /***************************************************************************
 122      *                                                                         *
 123      * Properties                                                              *
 124      *                                                                         *
 125      **************************************************************************/
 126     /**
 127      * Represents the current state of this CheckMenuItem. Bind to this to be
 128      * informed whenever the user interacts with the CheckMenuItem (and causes the
 129      * selected state to be toggled).
 130      *
 131      * @defaultValue false
 132      */


< prev index next >