scala.swing

MenuItem

class MenuItem extends AbstractButton

A menu item that can be used in a menu.

known subclasses: CheckMenuItem, RadioMenuItem, Menu

Inherits

  1. AbstractButton
  2. Trigger
  3. Component
  4. UIElement
  5. LazyPublisher
  6. Publisher
  7. Reactor
  8. Proxy
  9. AnyRef
  10. Any

Value Members

  1. var Mouse: mouse

  2. def action: Action

  3. def action_=(a: Action): Unit

  4. def background: Color

  5. def background_=(c: Color): Unit

  6. def border: Border

  7. def borderPainted: Boolean

  8. def borderPainted_=(b: Boolean): Unit

  9. def border_=(b: Border): Unit

  10. def bounds: Rectangle

  11. def contentAreaFilled: Boolean

  12. def contentAreaFilled_=(b: Boolean): Unit

  13. def cursor: Cursor

  14. def cursor_=(c: Cursor): Unit

  15. def deafTo(ps: Publisher*): Unit

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

  16. def disabledIcon: Icon

  17. def disabledIcon_=(i: Icon): Unit

  18. def disabledSelectedIcon: Icon

  19. def disabledSelectedIcon_=(i: Icon): Unit

  20. def displayable: Boolean

  21. def displayedMnemonicIndex: Int

  22. def displayedMnemonicIndex_=(n: Int): Unit

  23. def doClick(times: Int): Unit

  24. def doClick(): Unit

  25. def enabled: Boolean

  26. def enabled_=(b: Boolean): Unit

  27. def equals(that: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  28. def focusPainted: Boolean

  29. def focusPainted_=(b: Boolean): Unit

  30. def focusable: Boolean

  31. def focusable_=(b: Boolean): Unit

  32. def font: Font

  33. def font_=(f: Font): Unit

  34. def foreground: Color

  35. def foreground_=(c: Color): Unit

  36. def hasFocus: Boolean

  37. def hashCode(): Int

    Returns a hash code value for the object

  38. def horizontalAlignment: Value

  39. def horizontalAlignment_=(a: Value): Unit

  40. def horizontalTextPosition: Value

  41. def horizontalTextPosition_=(a: Value): Unit

  42. def icon: Icon

  43. def iconTextGap: Int

  44. def iconTextGap_=(x: Int): Unit

  45. def icon_=(i: Icon): Unit

  46. def ignoreRepaint: Boolean

  47. def ignoreRepaint_=(b: Boolean): Unit

  48. var initP: JComponent

  49. def inputVerifier: (MenuItem.this.type) ⇒ Boolean

  50. def inputVerifier_=(v: (MenuItem.this.type) ⇒ Boolean): Unit

  51. object keys extends Publisher

  52. def listenTo(ps: Publisher*): Unit

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

  53. def locale: Locale

  54. def location: Point

  55. def locationOnScreen: Point

  56. def margin: Insets

  57. def margin_=(i: Insets): Unit

  58. def maximumSize: Dimension

  59. def maximumSize_=(x: Dimension): Unit

  60. def minimumSize: Dimension

  61. def minimumSize_=(x: Dimension): Unit

  62. def mnemonic: Value

  63. def mnemonic_=(k: Value): Unit

  64. object mouse extends AnyRef

    Contains publishers for various mouse events

  65. def multiClickThreshold: Long

  66. def multiClickThreshold_=(n: Long): Unit

  67. def onFirstSubscribe(): Unit

  68. def onLastUnsubscribe(): Unit

  69. def opaque: Boolean

  70. def opaque_=(b: Boolean): Unit

  71. def paint(g: Graphics2D): Unit

  72. var peer: JMenuItem

    The underlying Swing peer

  73. def preferredSize: Dimension

  74. def preferredSize_=(xy: (Int, Int)): Unit

  75. def preferredSize_=(x: Dimension): Unit

  76. def pressedIcon: Icon

  77. def pressedIcon_=(i: Icon): Unit

  78. def publish(e: Event): Unit

    Notify all registered reactions

  79. val reactions: Reactions

    All reactions of this reactor

  80. def repaint(rect: Rectangle): Unit

  81. def repaint(): Unit

  82. def requestFocus(): Unit

  83. def requestFocusInWindow(): Boolean

  84. def revalidate(): Unit

  85. def rolloverEnabled: Boolean

  86. def rolloverEnabled_=(b: Boolean): Unit

  87. def rolloverIcon: Icon

  88. def rolloverIcon_=(b: Icon): Unit

  89. def rolloverSelectedIcon: Icon

  90. def rolloverSelectedIcon_=(b: Icon): Unit

  91. def selected: Boolean

  92. def selectedIcon: Icon

  93. def selectedIcon_=(i: Icon): Unit

  94. def selected_=(b: Boolean): Unit

  95. def self: Component

  96. def showing: Boolean

  97. def size: Dimension

  98. def size_=(xy: (Int, Int)): Unit

  99. def size_=(dim: Dimension): Unit

  100. def subscribe(listener: PartialFunction[Event, Unit]): Unit

  101. def text: String

  102. def text_=(s: String): Unit

  103. def toString(): String

    Returns a string representation of the object

  104. def toolkit: Toolkit

  105. def tooltip: String

  106. def tooltip_=(t: String): Unit

  107. def unsubscribe(listener: PartialFunction[Event, Unit]): Unit

  108. def verticalAlignment: Value

  109. def verticalAlignment_=(a: Value): Unit

  110. def verticalTextPosition: Value

  111. def verticalTextPosition_=(a: Value): Unit

  112. def visible: Boolean

  113. def visible_=(b: Boolean): Unit

  114. def xLayoutAlignment: Double

    Used by certain layout managers, e

  115. def xLayoutAlignment_=(x: Double): Unit

  116. def yLayoutAlignment: Double

  117. def yLayoutAlignment_=(y: Double): Unit

Instance constructors

  1. new MenuItem(a: Action)

  2. new MenuItem(title0: String)

  3. new MenuItem()