scalafx.scene.control

ContextMenu

class ContextMenu extends PopupControl with SFXDelegate[javafx.scene.control.ContextMenu]

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

Linear Supertypes
PopupControl, Skinnable, PopupWindow, Window, EventTarget, SFXDelegate[javafx.scene.control.ContextMenu], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ContextMenu
  2. PopupControl
  3. Skinnable
  4. PopupWindow
  5. Window
  6. EventTarget
  7. SFXDelegate
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContextMenu(items: MenuItem*)

    Create a new ContextMenu initialized with the given items

  2. new ContextMenu(delegate: javafx.scene.control.ContextMenu = ...)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def autoFix: BooleanProperty

    This convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.

    This convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.

    Definition Classes
    PopupWindow
  8. def autoFix_=(v: Boolean): Unit

    Definition Classes
    PopupWindow
  9. def autoHide: BooleanProperty

    Specifies whether Popups should auto hide.

    Specifies whether Popups should auto hide.

    Definition Classes
    PopupWindow
  10. def autoHide_=(v: Boolean): Unit

    Definition Classes
    PopupWindow
  11. def buildEventDispatchChain(tail: EventDispatchChain): EventDispatchChain

    Construct an event dispatch chain for this stage.

    Construct an event dispatch chain for this stage.

    Definition Classes
    Window → EventTarget
  12. def centerOnScreen: Unit

    Sets x and y properties on this Window so that it is centered on the screen.

    Sets x and y properties on this Window so that it is centered on the screen.

    Definition Classes
    Window
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def consumeAutoHidingEvents(v: Boolean): Unit

    Definition Classes
    PopupWindow
  15. def consumeAutoHidingEvents: BooleanProperty

    Specifies whether the event, which caused the Popup to hide, should be consumed.

    Specifies whether the event, which caused the Popup to hide, should be consumed.

    Definition Classes
    PopupWindow
    Since

    2.2

  16. val delegate: javafx.scene.control.ContextMenu

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ContextMenuPopupControlPopupWindowWindowSFXDelegate
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  19. def eventDispatcher: ObjectProperty[EventDispatcher]

    Specifies the event dispatcher for this node.

    Specifies the event dispatcher for this node.

    Definition Classes
    Window
  20. def eventDispatcher_=(v: EventDispatcher): Unit

    Definition Classes
    Window
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def fireEvent(event: Event): Unit

    Whether or not this Window has the keyboard or input focus.

    Whether or not this Window has the keyboard or input focus.

    Definition Classes
    Window
  23. def focused: ReadOnlyBooleanProperty

    Whether or not this Window has the keyboard or input focus.

    Whether or not this Window has the keyboard or input focus.

    Definition Classes
    Window
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    SFXDelegate → AnyRef → Any
  26. def height: ReadOnlyDoubleProperty

    The height of this Stage.

    The height of this Stage.

    Definition Classes
    Window
  27. def height_=(h: Double): Unit

    Definition Classes
    Window
  28. def hide: Unit

    Attempts to hide this Window by setting the visibility to false.

    Attempts to hide this Window by setting the visibility to false.

    Definition Classes
    Window
  29. def hideOnEscape: BooleanProperty

    Specifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.

    Specifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.

    Definition Classes
    PopupWindow
  30. def hideOnEscape_=(v: Boolean): Unit

    Definition Classes
    PopupWindow
  31. def id: StringProperty

    The id of this Node.

    The id of this Node.

    Definition Classes
    PopupControl
  32. def id_=(v: String): Unit

    Definition Classes
    PopupControl
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def items: ObservableBuffer[javafx.scene.control.MenuItem]

    The menu items on the context menu.

  35. def maxHeight: DoubleProperty

    Property for overriding the control's computed maximum height.

    Property for overriding the control's computed maximum height.

    Definition Classes
    PopupControl
  36. def maxHeight_=(v: Double): Unit

    Definition Classes
    PopupControl
  37. def maxWidth: DoubleProperty

    Property for overriding the control's computed maximum width.

    Property for overriding the control's computed maximum width.

    Definition Classes
    PopupControl
  38. def maxWidth_=(v: Double): Unit

    Definition Classes
    PopupControl
  39. def minHeight: DoubleProperty

    Property for overriding the control's computed minimum height.

    Property for overriding the control's computed minimum height.

    Definition Classes
    PopupControl
  40. def minHeight_=(v: Double): Unit

    Definition Classes
    PopupControl
  41. def minWidth: DoubleProperty

    Property for overriding the control's computed minimum width.

    Property for overriding the control's computed minimum width.

    Definition Classes
    PopupControl
  42. def minWidth_=(v: Double): Unit

    Definition Classes
    PopupControl
  43. final def ne(arg0: AnyRef): Boolean

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

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

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

    Callback function to be informed when an item contained within this ContextMenu has been activated.

  47. def onAction_=(v: EventHandler[ActionEvent]): Unit

  48. def onAutoHide: ObjectProperty[EventHandler[Event]]

    Called after autoHide is run.

    Called after autoHide is run.

    Definition Classes
    PopupWindow
  49. def onAutoHide_=(v: EventHandler[Event]): Unit

    Definition Classes
    PopupWindow
  50. def onCloseRequest: ObjectProperty[EventHandler[WindowEvent]]

    Called when there is an external request to close this Window.

    Called when there is an external request to close this Window.

    Definition Classes
    Window
  51. def onCloseRequest_=(v: EventHandler[WindowEvent]): Unit

    Definition Classes
    Window
  52. def onHidden: ObjectProperty[EventHandler[WindowEvent]]

    Called just after the Window has been hidden.

    Called just after the Window has been hidden.

    Definition Classes
    Window
  53. def onHidden_=(v: EventHandler[WindowEvent]): Unit

    Definition Classes
    Window
  54. def onHiding: ObjectProperty[EventHandler[WindowEvent]]

    Called just prior to the Window being hidden.

    Called just prior to the Window being hidden.

    Definition Classes
    Window
  55. def onHiding_=(v: EventHandler[WindowEvent]): Unit

    Definition Classes
    Window
  56. def onShowing: ObjectProperty[EventHandler[WindowEvent]]

    Called just prior to the Window being shown, even if the menu has no items to show.

    Called just prior to the Window being shown, even if the menu has no items to show.

    Definition Classes
    Window
  57. def onShowing_=(v: EventHandler[WindowEvent]): Unit

    Definition Classes
    Window
  58. def onShown: ObjectProperty[EventHandler[WindowEvent]]

    Called just after the Window is shown.

    Called just after the Window is shown.

    Definition Classes
    Window
  59. def onShown_=(v: EventHandler[WindowEvent]): Unit

    Definition Classes
    Window
  60. def opacity: DoubleProperty

    Defines the opacity of the Stage as a value between 0.

    Defines the opacity of the Stage as a value between 0.0 and 1.0.

    Definition Classes
    Window
  61. def opacity_=(v: Double): Unit

    Definition Classes
    Window
  62. def ownerNode: ReadOnlyObjectProperty[javafx.scene.Node]

    The node which is the owner of this popup.

    The node which is the owner of this popup.

    Definition Classes
    PopupWindow
  63. def ownerWindow: ReadOnlyObjectProperty[Window]

    The window which is the parent of this popup.

    The window which is the parent of this popup.

    Definition Classes
    PopupWindow
  64. def prefHeight: DoubleProperty

    Property for overriding the control's computed preferred height.

    Property for overriding the control's computed preferred height.

    Definition Classes
    PopupControl
  65. def prefHeight_=(v: Double): Unit

    Definition Classes
    PopupControl
  66. def prefWidth: DoubleProperty

    Property for overriding the control's computed preferred width.

    Property for overriding the control's computed preferred width.

    Definition Classes
    PopupControl
  67. def prefWidth_=(v: Double): Unit

    Definition Classes
    PopupControl
  68. def requestFocus: Unit

    Requests that this Window get the input focus.

    Requests that this Window get the input focus.

    Definition Classes
    Window
  69. def scene: ReadOnlyObjectProperty[javafx.scene.Scene]

    The Scene to be rendered on this Stage.

    The Scene to be rendered on this Stage.

    Definition Classes
    Window
  70. def show(anchor: Node, side: Side, screenX: Double, screenY: Double): Unit

    Shows the ContextMenu relative to the given anchor node, on the side specified by the hpos and vpos parameters, and offset by the given dx and dy values for the x-axis and y-axis, respectively.

  71. def show(owner: Window, screenX: Double, screenY: Double): Unit

    Show the Popup at the specified x,y location relative to the screen

    Show the Popup at the specified x,y location relative to the screen

    Definition Classes
    PopupWindow
  72. def show(owner: Window): Unit

    Show the popup.

    Show the popup.

    Definition Classes
    PopupWindow
  73. def show(owner: Node, screenX: Double, screenY: Double): Unit

    Show the Popup at the specified x,y location relative to the screen

    Show the Popup at the specified x,y location relative to the screen

    Definition Classes
    PopupWindow
  74. def showing: ReadOnlyBooleanProperty

    Whether or not this Stage is showing (that is, open on the user's system).

    Whether or not this Stage is showing (that is, open on the user's system).

    Definition Classes
    Window
  75. def sizeToScene: Unit

    Set the width and height of this Window to match the size of the content of this Window's Scene.

    Set the width and height of this Window to match the size of the content of this Window's Scene.

    Definition Classes
    Window
  76. def skin: ObjectProperty[javafx.scene.control.Skin[_]]

    Skin is responsible for rendering this Control.

    Skin is responsible for rendering this Control.

    Definition Classes
    Skinnable
  77. def skin_=(v: Skin[_]): Unit

    Definition Classes
    Skinnable
  78. def style: StringProperty

    A string representation of the CSS style associated with this specific Node.

    A string representation of the CSS style associated with this specific Node.

    Definition Classes
    PopupControl
  79. def styleClass: ObservableList[String]

    Definition Classes
    PopupControl
  80. def style_=(v: String): Unit

    Definition Classes
    PopupControl
  81. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  82. def toString(): String

    Definition Classes
    SFXDelegate → AnyRef → Any
  83. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  86. def width: ReadOnlyDoubleProperty

    The width of this Stage.

    The width of this Stage.

    Definition Classes
    Window
  87. def width_=(w: Double): Unit

    Definition Classes
    Window
  88. def x: ReadOnlyDoubleProperty

    The horizontal location of this Stage on the screen.

    The horizontal location of this Stage on the screen.

    Definition Classes
    Window
  89. def x_=(value: Double): Unit

    Definition Classes
    Window
  90. def y: ReadOnlyDoubleProperty

    The vertical location of this Stage on the screen.

    The vertical location of this Stage on the screen.

    Definition Classes
    Window
  91. def y_=(value: Double): Unit

    Definition Classes
    Window

Inherited from PopupControl

Inherited from Skinnable

Inherited from PopupWindow

Inherited from Window

Inherited from EventTarget

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

Inherited from AnyRef

Inherited from Any

Ungrouped