scala.swing

AbstractButton

class AbstractButton extends Component with Wrapper with Publisher

Base class of all button-like widgets, such as push buttons, check boxes, and radio buttons.

attributes: abstract
known subclasses: ToggleButton, MenuItem, Button
source: AbstractButton.scala
    see also:
  1. javax.swing.AbstractButton

Inherited
  1. Hide All
  2. Show all
  1. Wrapper
  2. Trigger
  3. Component
  4. UIElement
  5. LazyPublisher
  6. Publisher
  7. Reactor
  8. Proxy
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new AbstractButton()

Type Members

  1. trait SuperMixin extends JComponent

    This trait is used to redirect certain calls from the peer to the wrapper and back.

Value Members

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

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. lazy val Mouse: mouse

  9. def action: Action

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

  11. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  12. def background: Color

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

  14. def border: Border

  15. def borderPainted: Boolean

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

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

  18. def bounds: Rectangle

  19. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  20. def contentAreaFilled: Boolean

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

  22. def cursor: Cursor

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

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

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

  25. def disabledIcon: Icon

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

  27. def disabledSelectedIcon: Icon

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

  29. def displayable: Boolean

  30. def displayedMnemonicIndex: Int

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

  32. def doClick(times: Int): Unit

  33. def doClick(): Unit

  34. def enabled: Boolean

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

  36. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  37. def equals(that: Any): Boolean

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

  38. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  39. def focusPainted: Boolean

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

  41. def focusable: Boolean

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

  43. def font: Font

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

  45. def foreground: Color

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

  47. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  48. def hasFocus: Boolean

  49. def hashCode(): Int

    Returns a hash code value for the object.

  50. def horizontalAlignment: Value

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

  52. def horizontalTextPosition: Value

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

  54. def icon: Icon

  55. def iconTextGap: Int

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

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

  58. def ignoreRepaint: Boolean

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

  60. var initP: JComponent

  61. def inputVerifier: (Component) ⇒ Boolean

  62. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit

  63. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  64. object keys extends Publisher

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

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

  66. val listeners: RefSet[PartialFunction[Event, Unit]] {...}

  67. def locale: Locale

  68. def location: Point

  69. def locationOnScreen: Point

  70. def margin: Insets

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

  72. def maximumSize: Dimension

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

  74. def minimumSize: Dimension

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

  76. def mnemonic: Value

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

  78. object mouse extends AnyRef

    Contains publishers for various mouse events.

  79. def multiClickThreshold: Long

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

  81. def name: String

  82. def name_=(s: String): Unit

  83. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  84. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  85. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  86. def onFirstSubscribe(): Unit

  87. def onLastUnsubscribe(): Unit

  88. def opaque: Boolean

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

  90. def paint(g: Graphics2D): Unit

  91. def paintBorder(g: Graphics2D): Unit

  92. def paintChildren(g: Graphics2D): Unit

  93. def paintComponent(g: Graphics2D): Unit

    For custom painting, users should usually override this method.

  94. lazy val peer: AbstractButton

    The underlying Swing peer.

  95. def preferredSize: Dimension

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

  97. def pressedIcon: Icon

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

  99. def publish(e: Event): Unit

    Notify all registered reactions.

  100. val reactions: Reactions

    All reactions of this reactor.

  101. def repaint(rect: Rectangle): Unit

  102. def repaint(): Unit

  103. def requestFocus(): Unit

  104. def requestFocusInWindow(): Boolean

  105. def revalidate(): Unit

  106. def rolloverEnabled: Boolean

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

  108. def rolloverIcon: Icon

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

  110. def rolloverSelectedIcon: Icon

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

  112. def selected: Boolean

  113. def selectedIcon: Icon

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

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

  116. def self: Component

  117. def showing: Boolean

  118. def size: Dimension

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

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

  121. def synchronized[T0](arg0: T0): T0

  122. def text: String

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

  124. def toString(): String

    Returns a string representation of the object.

  125. def toolkit: Toolkit

  126. def tooltip: String

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

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

  129. def verticalAlignment: Value

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

  131. def verticalTextPosition: Value

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

  133. def visible: Boolean

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

  135. def wait(): Unit

  136. def wait(arg0: Long, arg1: Int): Unit

  137. def wait(arg0: Long): Unit

  138. def xLayoutAlignment: Double

    Used by certain layout managers, e.

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

  140. def yLayoutAlignment: Double

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