scala.swing

GridBagPanel

class GridBagPanel extends Panel with LayoutContainer

A panel that arranges its children in a grid. Layout details can be given for each cell of the grid.

Inherits

  1. LayoutContainer
  2. Panel
  3. Wrapper
  4. Container
  5. Component
  6. UIElement
  7. LazyPublisher
  8. Publisher
  9. Reactor
  10. Proxy
  11. AnyRef
  12. Any

Type Members

  1. class Constraints extends Proxy

    The type of component constraints for this container

Value Members

  1. var Mouse: mouse

  2. def background: Color

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

  4. def border: Border

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

  6. def bounds: Rectangle

  7. def contents: Seq[Component]

    The child components of this container

  8. def cursor: Cursor

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

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

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

  11. def displayable: Boolean

  12. def enabled: Boolean

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

  14. def equals(that: Any): Boolean

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

  15. def focusable: Boolean

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

  17. def font: Font

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

  19. def foreground: Color

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

  21. def hasFocus: Boolean

  22. def hashCode(): Int

    Returns a hash code value for the object

  23. def ignoreRepaint: Boolean

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

  25. var initP: JComponent

  26. def inputVerifier: (GridBagPanel.this.type) ⇒ Boolean

  27. def inputVerifier_=(v: (GridBagPanel.this.type) ⇒ Boolean): Unit

  28. object keys extends Publisher

  29. def layout: Map[Component, Constraints]

    A map of components to the associated layout constraints

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

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

  31. def locale: Locale

  32. def location: Point

  33. def locationOnScreen: Point

  34. def maximumSize: Dimension

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

  36. def minimumSize: Dimension

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

  38. object mouse extends AnyRef

    Contains publishers for various mouse events

  39. def onFirstSubscribe(): Unit

  40. def onLastUnsubscribe(): Unit

  41. def opaque: Boolean

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

  43. def paint(g: Graphics2D): Unit

  44. def pair2Constraints(p: (Int, Int)): Constraints

    Convenient conversion from xy-coords given as pairs to grid bag constraints

  45. var peer: JPanel

    The underlying Swing peer

  46. def preferredSize: Dimension

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

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

  49. def publish(e: Event): Unit

    Notify all registered reactions

  50. val reactions: Reactions

    All reactions of this reactor

  51. def repaint(rect: Rectangle): Unit

  52. def repaint(): Unit

  53. def requestFocus(): Unit

  54. def requestFocusInWindow(): Boolean

  55. def revalidate(): Unit

  56. def self: Component

  57. def showing: Boolean

  58. def size: Dimension

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

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

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

  62. def toString(): String

    Returns a string representation of the object

  63. def toolkit: Toolkit

  64. def tooltip: String

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

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

  67. def visible: Boolean

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

  69. def xLayoutAlignment: Double

    Used by certain layout managers, e

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

  71. def yLayoutAlignment: Double

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

Instance constructors

  1. new GridBagPanel()