< prev index next >

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

Print this page

        

@@ -115,19 +115,22 @@
         this(null,null);
     }
 
     /**
      * Constructs a MenuItem and sets the display text with the specified text
+     * @param text the display text
      * @see #setText
      */
     public MenuItem(String text) {
         this(text,null);
     }
 
     /**
      * Constructor s MenuItem and sets the display text with the specified text
      * and sets the graphic {@link Node} to the given node.
+     * @param text the display text
+     * @param graphic the graphic node
      * @see #setText
      * @see #setGraphic
      */
     public MenuItem(String text, Node graphic) {
         setText(text);

@@ -579,10 +582,11 @@
 
     /**
      * {@inheritDoc}
      * @since JavaFX 8.0
      */
+    @Override
     public final ObservableSet<PseudoClass> getPseudoClassStates() {
         return FXCollections.emptyObservableSet();
     }
 
     @Override
< prev index next >