< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/MenuButton.java
Print this page
rev 10598 : 8185767: Fix broken links in Javadocs
*** 43,56 ****
/**
* MenuButton is a button which, when clicked or pressed, will show a
* {@link ContextMenu}. A MenuButton shares a very similar API to the {@link Menu}
* control, insofar that you set the items that should be shown in the
! * {@link #items} ObservableList, and there is a {@link #text} property to specify the
* label shown within the MenuButton.
* <p>
! * As mentioned, like the Menu API itself, you'll find an {@link #items} ObservableList
* within which you can provide anything that extends from {@link MenuItem}.
* There are several useful subclasses of {@link MenuItem} including
* {@link RadioMenuItem}, {@link CheckMenuItem}, {@link Menu},
* {@link SeparatorMenuItem} and {@link CustomMenuItem}.
* <p>
--- 43,56 ----
/**
* MenuButton is a button which, when clicked or pressed, will show a
* {@link ContextMenu}. A MenuButton shares a very similar API to the {@link Menu}
* control, insofar that you set the items that should be shown in the
! * {@link #getItems() items} ObservableList, and there is a {@link #textProperty() text} property to specify the
* label shown within the MenuButton.
* <p>
! * As mentioned, like the Menu API itself, you'll find an {@link #getItems() items} ObservableList
* within which you can provide anything that extends from {@link MenuItem}.
* There are several useful subclasses of {@link MenuItem} including
* {@link RadioMenuItem}, {@link CheckMenuItem}, {@link Menu},
* {@link SeparatorMenuItem} and {@link CustomMenuItem}.
* <p>
*** 228,239 ****
/**
* Indicates on which side the {@link ContextMenu} should open in
* relation to the MenuButton. Menu items are generally laid
* out vertically in either case.
* For example, if the menu button were in a vertical toolbar on the left
! * edge of the application, you might change {@link #popupSide} to {@code Side.RIGHT} so that
! * the popup will appear to the right of the MenuButton.
*
* @defaultValue {@code Side.BOTTOM}
*/
// TODO expose via CSS
private ObjectProperty<Side> popupSide;
--- 228,239 ----
/**
* Indicates on which side the {@link ContextMenu} should open in
* relation to the MenuButton. Menu items are generally laid
* out vertically in either case.
* For example, if the menu button were in a vertical toolbar on the left
! * edge of the application, you might change {@link #popupSideProperty() popupSide}
! * to {@code Side.RIGHT} so that the popup will appear to the right of the MenuButton.
*
* @defaultValue {@code Side.BOTTOM}
*/
// TODO expose via CSS
private ObjectProperty<Side> popupSide;
< prev index next >