c

scala.swing

MenuItem

class MenuItem extends AbstractButton

A menu item that can be used in a menu.

See also

javax.swing.JMenuItem

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MenuItem
  2. AbstractButton
  3. Wrapper
  4. Trigger
  5. Component
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MenuItem(a: Action)
  2. new MenuItem(title0: String)

Value Members

  1. object keys extends Publisher
    Definition Classes
    Component
  2. object mouse

    Contains publishers for various mouse events.

    Contains publishers for various mouse events. They are separated for efficiency reasons.

    Definition Classes
    Component
  3. def action: Action
    Definition Classes
    WrapperTrigger
  4. def action_=(a: Action): Unit
    Definition Classes
    WrapperTrigger
  5. def background: Color
    Definition Classes
    UIElement
  6. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  7. def border: Border
    Definition Classes
    Component
  8. def borderPainted: Boolean
    Definition Classes
    AbstractButton
  9. def borderPainted_=(b: Boolean): Unit
    Definition Classes
    AbstractButton
  10. def border_=(b: Border): Unit
    Definition Classes
    Component
  11. def bounds: Rectangle
    Definition Classes
    UIElement
  12. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  13. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  14. def contentAreaFilled: Boolean
    Definition Classes
    AbstractButton
  15. def contentAreaFilled_=(b: Boolean): Unit
    Definition Classes
    AbstractButton
  16. def cursor: Cursor
    Definition Classes
    UIElement
  17. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  18. def deafTo(ps: Publisher*): Unit

    Installed reaction won't receive events from the given publisher anylonger.

    Installed reaction won't receive events from the given publisher anylonger.

    Definition Classes
    Reactor
  19. def disabledIcon: Icon
    Definition Classes
    AbstractButton
  20. def disabledIcon_=(i: Icon): Unit
    Definition Classes
    AbstractButton
  21. def disabledSelectedIcon: Icon
    Definition Classes
    AbstractButton
  22. def disabledSelectedIcon_=(i: Icon): Unit
    Definition Classes
    AbstractButton
  23. def displayable: Boolean
    Definition Classes
    UIElement
  24. def displayedMnemonicIndex: Int
    Definition Classes
    AbstractButton
  25. def displayedMnemonicIndex_=(n: Int): Unit
    Definition Classes
    AbstractButton
  26. def doClick(times: Int): Unit
    Definition Classes
    AbstractButton
  27. def doClick(): Unit
    Definition Classes
    AbstractButton
  28. def enabled: Boolean
    Definition Classes
    Component
  29. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  30. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  31. def focusPainted: Boolean
    Definition Classes
    AbstractButton
  32. def focusPainted_=(b: Boolean): Unit
    Definition Classes
    AbstractButton
  33. def focusable: Boolean
    Definition Classes
    Component
  34. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  35. def font: Font
    Definition Classes
    UIElement
  36. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  37. def foreground: Color
    Definition Classes
    UIElement
  38. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  39. def hasFocus: Boolean
    Definition Classes
    Component
  40. def hashCode(): Int
    Definition Classes
    Proxy → Any
  41. def horizontalAlignment: Alignment.Value
    Definition Classes
    AbstractButton
  42. def horizontalAlignment_=(a: Alignment.Value): Unit
    Definition Classes
    AbstractButton
  43. def horizontalTextPosition: Alignment.Value
    Definition Classes
    AbstractButton
  44. def horizontalTextPosition_=(a: Alignment.Value): Unit
    Definition Classes
    AbstractButton
  45. def icon: Icon
    Definition Classes
    AbstractButton
  46. def iconTextGap: Int
    Definition Classes
    AbstractButton
  47. def iconTextGap_=(x: Int): Unit
    Definition Classes
    AbstractButton
  48. def icon_=(i: Icon): Unit
    Definition Classes
    AbstractButton
  49. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  50. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  51. var initP: JComponent
    Definition Classes
    Component
  52. def inputVerifier: (Component) ⇒ Boolean
    Definition Classes
    Component
  53. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit
    Definition Classes
    Component
  54. def listenTo(ps: Publisher*): Unit

    Listen to the given publisher as long as deafTo isn't called for them.

    Listen to the given publisher as long as deafTo isn't called for them.

    Definition Classes
    Reactor
  55. def locale: Locale
    Definition Classes
    UIElement
  56. def location: Point
    Definition Classes
    UIElement
  57. def locationOnScreen: Point
    Definition Classes
    UIElement
  58. def margin: Insets
    Definition Classes
    AbstractButton
  59. def margin_=(i: Insets): Unit
    Definition Classes
    AbstractButton
  60. def maximumSize: Dimension
    Definition Classes
    UIElement
  61. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  62. def minimumSize: Dimension
    Definition Classes
    UIElement
  63. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  64. def mnemonic: event.Key.Value
    Definition Classes
    AbstractButton
  65. def mnemonic_=(k: event.Key.Value): Unit
    Definition Classes
    AbstractButton
  66. def multiClickThreshold: Long
    Definition Classes
    AbstractButton
  67. def multiClickThreshold_=(n: Long): Unit
    Definition Classes
    AbstractButton
  68. def name: String
    Definition Classes
    Component
  69. def name_=(s: String): Unit
    Definition Classes
    Component
  70. def opaque: Boolean
    Definition Classes
    Component
  71. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  72. def paint(g: Graphics2D): Unit
    Definition Classes
    Component
  73. lazy val peer: JMenuItem

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    MenuItemAbstractButtonWrapperComponentUIElement
  74. def preferredSize: Dimension
    Definition Classes
    UIElement
  75. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  76. def pressedIcon: Icon
    Definition Classes
    AbstractButton
  77. def pressedIcon_=(i: Icon): Unit
    Definition Classes
    AbstractButton
  78. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  79. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  80. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  81. def repaint(): Unit
    Definition Classes
    UIElement
  82. def requestFocus(): Unit
    Definition Classes
    Component
  83. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  84. def revalidate(): Unit
    Definition Classes
    Component
  85. def rolloverEnabled: Boolean
    Definition Classes
    AbstractButton
  86. def rolloverEnabled_=(b: Boolean): Unit
    Definition Classes
    AbstractButton
  87. def rolloverIcon: Icon
    Definition Classes
    AbstractButton
  88. def rolloverIcon_=(b: Icon): Unit
    Definition Classes
    AbstractButton
  89. def rolloverSelectedIcon: Icon
    Definition Classes
    AbstractButton
  90. def rolloverSelectedIcon_=(b: Icon): Unit
    Definition Classes
    AbstractButton
  91. def selected: Boolean
    Definition Classes
    AbstractButton
  92. def selectedIcon: Icon
    Definition Classes
    AbstractButton
  93. def selectedIcon_=(i: Icon): Unit
    Definition Classes
    AbstractButton
  94. def selected_=(b: Boolean): Unit
    Definition Classes
    AbstractButton
  95. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  96. def showing: Boolean
    Definition Classes
    UIElement
  97. def size: Dimension
    Definition Classes
    UIElement
  98. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  99. def text: String
    Definition Classes
    AbstractButton
  100. def text_=(s: String): Unit
    Definition Classes
    AbstractButton
  101. def toString(): String
    Definition Classes
    Component → Proxy → AnyRef → Any
  102. def toolkit: Toolkit
    Definition Classes
    UIElement
  103. def tooltip: String
    Definition Classes
    Component
  104. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  105. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  106. def validate(): Unit
    Definition Classes
    UIElement
  107. def verticalAlignment: Alignment.Value
    Definition Classes
    AbstractButton
  108. def verticalAlignment_=(a: Alignment.Value): Unit
    Definition Classes
    AbstractButton
  109. def verticalTextPosition: Alignment.Value
    Definition Classes
    AbstractButton
  110. def verticalTextPosition_=(a: Alignment.Value): Unit
    Definition Classes
    AbstractButton
  111. def visible: Boolean
    Definition Classes
    UIElement
  112. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  113. def xLayoutAlignment: Double

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Definition Classes
    Component
  114. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  115. def yLayoutAlignment: Double
    Definition Classes
    Component
  116. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component