< prev index next >

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

Print this page




  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 /*
  27  * To change this template, choose Tools | Templates
  28  * and open the template in the editor.
  29  */
  30 package javafx.scene.control;
  31 
  32 import javafx.geometry.Orientation;
  33 
  34 /**
  35  * <p>
  36  * A {@link MenuItem} that as the name suggests allows for a horizontal Separator to be embedded within it,
  37  * by assigning a {@link Separator} to the {@link #contentProperty() content} property of the {@link CustomMenuItem}
  38  * This is provided for convenience as groups of {@link MenuItem menuitems} can be separated
  39  * by a separator. Instead of a creating a {@link CustomMenuItem}  for this purpose, the user
  40  * can use this class as indicated below.
  41  * <p>
  42  * <p>
  43 <pre><code>
  44 SeparatorMenuItem separatorMenuItem = new SeparatorMenuItem();
  45 </code></pre>
  46  * <p>
  47  *
  48  * @see CustomMenuItem
  49  * @see MenuItem
  50  * @see Menu
  51  * @since JavaFX 2.0
  52  */
  53 public class SeparatorMenuItem extends CustomMenuItem {
  54 
  55     /***************************************************************************
  56      *                                                                         *
  57      * Constructors                                                            *
  58      *                                                                         *
  59      **************************************************************************/
  60 
  61     /**
  62      * Creates a default SeparatorMenuItem instance.


  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 /*
  27  * To change this template, choose Tools | Templates
  28  * and open the template in the editor.
  29  */
  30 package javafx.scene.control;
  31 
  32 import javafx.geometry.Orientation;
  33 
  34 /**
  35  * <p>
  36  * A {@link MenuItem} that as the name suggests allows for a horizontal Separator to be embedded within it,
  37  * by assigning a {@link Separator} to the {@link #contentProperty() content} property of the {@link CustomMenuItem}
  38  * This is provided for convenience as groups of {@link MenuItem menuitems} can be separated
  39  * by a separator. Instead of a creating a {@link CustomMenuItem}  for this purpose, the user
  40  * can use this class as indicated below.
  41  *

  42 <pre><code>
  43 SeparatorMenuItem separatorMenuItem = new SeparatorMenuItem();
  44 </code></pre>
  45  * <p>
  46  *
  47  * @see CustomMenuItem
  48  * @see MenuItem
  49  * @see Menu
  50  * @since JavaFX 2.0
  51  */
  52 public class SeparatorMenuItem extends CustomMenuItem {
  53 
  54     /***************************************************************************
  55      *                                                                         *
  56      * Constructors                                                            *
  57      *                                                                         *
  58      **************************************************************************/
  59 
  60     /**
  61      * Creates a default SeparatorMenuItem instance.
< prev index next >