Spec-Zone .ru
спецификации, руководства, описания, API
|
@Generated(value="Generated by javafx.builder.processor.BuilderProcessor") public class ContextMenuBuilder<B extends ContextMenuBuilder<B>> extends PopupControlBuilder<B>
ContextMenu
Modifier | Constructor and Description |
---|---|
protected |
ContextMenuBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(ContextMenu x) |
ContextMenu |
build()
Make an instance of
ContextMenu based on the properties set on this builder. |
static ContextMenuBuilder<?> |
create()
Creates a new instance of ContextMenuBuilder.
|
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 |
onAction(EventHandler<ActionEvent> x)
Set the value of the
onAction property for the instance constructed by this builder. |
applyTo, id, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, style, styleClass, styleClass
applyTo, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide
applyTo, eventDispatcher, focused, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, width, x, y
public static ContextMenuBuilder<?> create()
public void applyTo(ContextMenu 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 onAction(EventHandler<ActionEvent> x)
onAction
property for the instance constructed by this builder.public ContextMenu build()
ContextMenu
based on the properties set on this builder.build
in interface Builder<PopupControl>
build
in class PopupControlBuilder<B extends ContextMenuBuilder<B>>
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to