Spec-Zone .ru
спецификации, руководства, описания, API
|
@Generated(value="Generated by javafx.builder.processor.BuilderProcessor") public class MenuBuilder<B extends MenuBuilder<B>> extends MenuItemBuilder<B>
Menu
Modifier | Constructor and Description |
---|---|
protected |
MenuBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(Menu x) |
Menu |
build()
Make an instance of
Menu based on the properties set on this builder. |
static MenuBuilder<?> |
create()
Creates a new instance of MenuBuilder.
|
B |
items(java.util.Collection<? extends MenuItem> x)
Add the given items to the List of items in the
items property for the instance constructed by this builder. |
B |
items(MenuItem... x)
Add the given items to the List of items in the
items property for the instance constructed by this builder. |
B |
onHidden(EventHandler<Event> x)
Set the value of the
onHidden property for the instance constructed by this builder. |
B |
onHiding(EventHandler<Event> x)
Set the value of the
onHiding property for the instance constructed by this builder. |
B |
onShowing(EventHandler<Event> x)
Set the value of the
onShowing property for the instance constructed by this builder. |
B |
onShown(EventHandler<Event> x)
Set the value of the
onShown property for the instance constructed by this builder. |
accelerator, applyTo, disable, graphic, id, mnemonicParsing, onAction, onMenuValidation, style, styleClass, styleClass, text, userData, visible
public static MenuBuilder<?> create()
public void applyTo(Menu x)
public B items(java.util.Collection<? extends MenuItem> x)
items
property for the instance constructed by this builder.public B items(MenuItem... x)
items
property for the instance constructed by this builder.public B onHidden(EventHandler<Event> x)
onHidden
property for the instance constructed by this builder.public B onHiding(EventHandler<Event> x)
onHiding
property for the instance constructed by this builder.public B onShowing(EventHandler<Event> x)
onShowing
property for the instance constructed by this builder.public B onShown(EventHandler<Event> x)
onShown
property for the instance constructed by this builder.public Menu build()
Menu
based on the properties set on this builder.build
in interface Builder<MenuItem>
build
in class MenuItemBuilder<B extends MenuBuilder<B>>
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to