scalafx.scene.control

Menu

class Menu extends MenuItem with EventTarget with SFXDelegate[javafx.scene.control.Menu]

Wraps http://docs.oracle.com/javafx/2/api/javafx/scene/control/Menu.html.

Linear Supertypes
MenuItem, FireDelegate[javafx.scene.control.MenuItem], SFXDelegate[javafx.scene.control.Menu], EventTarget, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Menu
  2. MenuItem
  3. FireDelegate
  4. SFXDelegate
  5. EventTarget
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Menu(label: String)

    Constructs a Menu and sets the display text with the specified text.

  2. new Menu(label: String, node: Node)

    Constructs a Menu and sets the display text with the specified text and sets the graphic Node to the given node.

  3. new Menu(delegate: javafx.scene.control.Menu = ...)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def accelerator: ObjectProperty[KeyCombination]

    Definition Classes
    MenuItem
  7. def accelerator_=(v: KeyCombination): Unit

    Definition Classes
    MenuItem
  8. def addEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[E]): Unit

    Registers an event handler to this MenuItem.

    Registers an event handler to this MenuItem.

    Definition Classes
    MenuItem
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def buildEventDispatchChain(tail: EventDispatchChain): EventDispatchChain

    Construct an event dispatch chain for this target.

    Construct an event dispatch chain for this target.

    Definition Classes
    MenuItem → EventTarget
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. val delegate: javafx.scene.control.Menu

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    MenuMenuItemSFXDelegate
  13. def disable: BooleanProperty

    Definition Classes
    MenuItem
  14. def disable_=(v: Boolean): Unit

    Definition Classes
    MenuItem
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(ref: Any): Boolean

    Definition Classes
    SFXDelegate → AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def fire: Unit

    Fires some kind of event.

    Fires some kind of event.

    Definition Classes
    FireDelegate
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def graphic: ObjectProperty[javafx.scene.Node]

    Definition Classes
    MenuItem
  21. def graphic_=(v: Node): Unit

    Definition Classes
    MenuItem
  22. def hashCode(): Int

    Definition Classes
    SFXDelegate → AnyRef → Any
  23. def hide(): Unit

    Hides the ContextMenu if it was previously showing, and any showing submenus.

  24. def id: StringProperty

    Definition Classes
    MenuItem
  25. def id_=(v: String): Unit

    Definition Classes
    MenuItem
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def items: ObservableList[javafx.scene.control.MenuItem]

    The items to show within this menu.

  28. def items_=(c: Iterable[MenuItem]): Unit

    Sets the menu items, replacing the prior content.

    Sets the menu items, replacing the prior content. If you want append to current content, use add or similar.

    c

    Menu items to replace prior content.

  29. def mnemonicParsing: BooleanProperty

    MnemonicParsing property to enable/disable text parsing.

    MnemonicParsing property to enable/disable text parsing.

    Definition Classes
    MenuItem
  30. def mnemonicParsing_=(v: Boolean): Unit

    Definition Classes
    MenuItem
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def onAction: ObjectProperty[EventHandler[ActionEvent]]

    Definition Classes
    MenuItem
  35. def onAction_=(v: EventHandler[ActionEvent]): Unit

    Definition Classes
    MenuItem
  36. def onHidden: ObjectProperty[EventHandler[Event]]

  37. def onHidden_=(implicit eventHandler: EventHandler[Event]): Unit

  38. def onHiding: ObjectProperty[EventHandler[Event]]

  39. def onHiding_=(implicit eventHandler: EventHandler[Event]): Unit

  40. def onMenuValidation: ObjectProperty[EventHandler[Event]]

    The event handler that is associated with invocation of an accelerator for a MenuItem.

    The event handler that is associated with invocation of an accelerator for a MenuItem. This can happen when a key sequence for an accelerator is pressed. The event handler is also invoked when onShowing event handler is called.

    Definition Classes
    MenuItem
    Since

    2.2

  41. def onMenuValidation_=(eventHandler: EventHandler[Event]): Unit

    Definition Classes
    MenuItem
  42. def onShowing: ObjectProperty[EventHandler[Event]]

  43. def onShowing_=(implicit eventHandler: EventHandler[Event]): Unit

  44. def onShown: ObjectProperty[EventHandler[Event]]

  45. def onShown_=(implicit eventHandler: EventHandler[Event]): Unit

  46. def parentMenu: ReadOnlyObjectProperty[javafx.scene.control.Menu]

    Definition Classes
    MenuItem
  47. def parentPopup: ReadOnlyObjectProperty[javafx.scene.control.ContextMenu]

    Definition Classes
    MenuItem
  48. def properties: ObservableMap[AnyRef, AnyRef]

    Returns an observable map of properties on this menu item for use primarily by application developers.

    Returns an observable map of properties on this menu item for use primarily by application developers.

    Definition Classes
    MenuItem
  49. def removeEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[E]): Unit

    Unregisters a previously registered event handler from this MenuItem.

    Unregisters a previously registered event handler from this MenuItem.

    Definition Classes
    MenuItem
  50. def show(): Unit

    If the Menu is not disabled and the ContextMenu is not already showing, then this will cause the ContextMenu to be shown.

  51. def showing: Boolean

    Gets the value of the property showing.

  52. def style: StringProperty

    Definition Classes
    MenuItem
  53. def styleClass: ObservableList[String]

    Definition Classes
    MenuItem
  54. def style_=(v: String): Unit

    Definition Classes
    MenuItem
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def text: StringProperty

    Definition Classes
    MenuItem
  57. def text_=(v: String): Unit

    Definition Classes
    MenuItem
  58. def toString(): String

    Definition Classes
    SFXDelegate → AnyRef → Any
  59. def userData: AnyRef

    Returns a previously set Object property, or null if no such property has been set using the setUserData(java.

    Returns a previously set Object property, or null if no such property has been set using the setUserData(java.lang.Object) method.

    Definition Classes
    MenuItem
  60. def userData_=(v: AnyRef): Unit

    Definition Classes
    MenuItem
  61. def visible: BooleanProperty

    Definition Classes
    MenuItem
  62. def visible_=(v: Boolean): Unit

    Definition Classes
    MenuItem
  63. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  64. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  65. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from MenuItem

Inherited from FireDelegate[javafx.scene.control.MenuItem]

Inherited from SFXDelegate[javafx.scene.control.Menu]

Inherited from EventTarget

Inherited from AnyRef

Inherited from Any

Ungrouped