Class/Object

scala.swing

Table

Related Docs: object Table | package swing

Permalink

class Table extends Component with Wrapper

Displays a matrix of items.

To obtain a scrollable table or row and columns headers, wrap the table in a scroll pane.

See also

javax.swing.JTable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Table
  2. Wrapper
  3. Scrollable
  4. Component
  5. PeerContainer
  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 Table(model0: TableModel)

    Permalink

    Constructs a table component with a given model.

  2. new Table(rows: Int, columns: Int)

    Permalink

    Constructs a table component with a DefaultTableModel of the given dimensions.

  3. new Table(rowData: Array[Array[Any]], columnNames: collection.Seq[_])

    Permalink

    Constructs a table component with static cell contents.

    Constructs a table component with static cell contents. The contents is editable.

    rowData

    the table contents, where the first dimension indexes rows, and the second dimension indexes columns.

    columnNames

    objects that represent the column names. The names are derived by calling toString on the elements. The size of this sequence must correspond with the inner dimension of rowData.

  4. new Table()

    Permalink

Type Members

  1. trait SuperMixin extends JComponent

    Permalink

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

    This trait is used to redirect certain calls from the peer to the wrapper and back. Useful to expose methods that can be customized by overriding.

    Attributes
    protected
    Definition Classes
    Component

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(row: Int, column: Int): Any

    Permalink

    Gets the current value of the given cell.

    Gets the current value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.

    If you have model coordinates, use model.getValueAt instead.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def autoCreateRowSorter: Boolean

    Permalink
  7. def autoCreateRowSorter_=(value: Boolean): Unit

    Permalink
  8. def autoResizeMode: Table.AutoResizeMode.Value

    Permalink
  9. def autoResizeMode_=(x: Table.AutoResizeMode.Value): Unit

    Permalink
  10. def background: Color

    Permalink
    Definition Classes
    UIElement
  11. def background_=(c: Color): Unit

    Permalink
    Definition Classes
    UIElement
  12. def blockIncrement(visibleRect: Rectangle, orientation: Orientation.Value, direction: Int): Int

    Permalink
    Definition Classes
    WrapperScrollable
  13. def border: Border

    Permalink
    Definition Classes
    Component
  14. def border_=(b: Border): Unit

    Permalink
    Definition Classes
    Component
  15. def bounds: Rectangle

    Permalink
    Definition Classes
    UIElement
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def componentOrientation: ComponentOrientation

    Permalink
    Definition Classes
    UIElement
  18. def componentOrientation_=(x: ComponentOrientation): Unit

    Permalink
    Definition Classes
    UIElement
  19. def cursor: Cursor

    Permalink
    Definition Classes
    UIElement
  20. def cursor_=(c: Cursor): Unit

    Permalink
    Definition Classes
    UIElement
  21. def deafTo(ps: Publisher*): Unit

    Permalink

    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
  22. def displayable: Boolean

    Permalink
    Definition Classes
    UIElement
  23. def editor(row: Int, column: Int): TableCellEditor

    Permalink
    Attributes
    protected
  24. def enabled: Boolean

    Permalink
    Definition Classes
    Component
  25. def enabled_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    Proxy → Any
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def focusable: Boolean

    Permalink
    Definition Classes
    Component
  30. def focusable_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  31. def font: Font

    Permalink
    Definition Classes
    UIElement
  32. def font_=(f: Font): Unit

    Permalink
    Definition Classes
    UIElement
  33. def foreground: Color

    Permalink
    Definition Classes
    UIElement
  34. def foreground_=(c: Color): Unit

    Permalink
    Definition Classes
    UIElement
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def gridColor: Color

    Permalink
  37. def gridColor_=(color: Color): Unit

    Permalink
  38. def hasFocus: Boolean

    Permalink
    Definition Classes
    Component
  39. def hashCode(): Int

    Permalink
    Definition Classes
    Proxy → Any
  40. def ignoreRepaint: Boolean

    Permalink
    Definition Classes
    UIElement
  41. def ignoreRepaint_=(b: Boolean): Unit

    Permalink
    Definition Classes
    UIElement
  42. def inputVerifier: (Component) ⇒ Boolean

    Permalink
    Definition Classes
    Component
  43. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit

    Permalink
    Definition Classes
    Component
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. object keys extends Publisher

    Permalink
    Definition Classes
    Component
  46. def listenTo(ps: Publisher*): Unit

    Permalink

    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
  47. val listeners: RefSet[Reaction]

    Permalink
    Attributes
    protected
    Definition Classes
    Publisher
  48. def locale: Locale

    Permalink
    Definition Classes
    UIElement
  49. def location: Point

    Permalink
    Definition Classes
    UIElement
  50. def locationOnScreen: Point

    Permalink
    Definition Classes
    UIElement
  51. def maximumSize: Dimension

    Permalink
    Definition Classes
    UIElement
  52. def maximumSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  53. def minimumSize: Dimension

    Permalink
    Definition Classes
    UIElement
  54. def minimumSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  55. def model: TableModel

    Permalink
  56. val modelListener: TableModelListener

    Permalink
    Attributes
    protected
  57. def modelToViewColumn(idx: Int): Int

    Permalink
  58. def modelToViewRow(idx: Int): Int

    Permalink
  59. def model_=(x: TableModel): Unit

    Permalink
  60. object mouse

    Permalink

    Contains publishers for various mouse events.

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

    Definition Classes
    Component
  61. def name: String

    Permalink
    Definition Classes
    Component
  62. def name_=(s: String): Unit

    Permalink
    Definition Classes
    Component
  63. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  65. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  66. def onFirstSubscribe(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ComponentUIElement → LazyPublisher
  67. def onLastUnsubscribe(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    UIElement → LazyPublisher
  68. def opaque: Boolean

    Permalink
    Definition Classes
    Component
  69. def opaque_=(b: Boolean): Unit

    Permalink
    Definition Classes
    Component
  70. def paint(g: Graphics2D): Unit

    Permalink
    Definition Classes
    Component
  71. def paintBorder(g: Graphics2D): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  72. def paintChildren(g: Graphics2D): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  73. def paintComponent(g: Graphics2D): Unit

    Permalink

    For custom painting, users should usually override this method.

    For custom painting, users should usually override this method.

    Attributes
    protected
    Definition Classes
    Component
  74. lazy val peer: JTable

    Permalink

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    TableComponentPeerContainerUIElement
  75. def preferredSize: Dimension

    Permalink
    Definition Classes
    UIElement
  76. def preferredSize_=(x: Dimension): Unit

    Permalink
    Definition Classes
    UIElement
  77. def preferredViewportSize: Dimension

    Permalink
    Definition Classes
    WrapperScrollable
  78. def preferredViewportSize_=(dim: Dimension): Unit

    Permalink
  79. def publish(e: Event): Unit

    Permalink

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  80. val reactions: Reactions

    Permalink

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  81. def rendererComponent(isSelected: Boolean, focused: Boolean, row: Int, column: Int): Component

    Permalink

    Supplies a renderer component for a given cell.

    Supplies a renderer component for a given cell.

    Attributes
    protected
  82. def repaint(rect: Rectangle): Unit

    Permalink
    Definition Classes
    UIElement
  83. def repaint(): Unit

    Permalink
    Definition Classes
    UIElement
  84. def requestFocus(): Unit

    Permalink
    Definition Classes
    Component
  85. def requestFocusInWindow(): Boolean

    Permalink
    Definition Classes
    Component
  86. def revalidate(): Unit

    Permalink
    Definition Classes
    Component
  87. def rowCount: Int

    Permalink
  88. def rowHeight: Int

    Permalink
  89. def rowHeight_=(x: Int): Unit

    Permalink
  90. def rowMargin: Int

    Permalink
  91. def rowMargin_=(value: Int): Unit

    Permalink
  92. def scrollablePeer: JTable

    Permalink
    Attributes
    protected
    Definition Classes
    TableWrapper
  93. object selection extends Publisher

    Permalink
  94. def selectionBackground: Color

    Permalink
  95. def selectionBackground_=(c: Color): Unit

    Permalink
  96. def selectionForeground: Color

    Permalink
  97. def selectionForeground_=(c: Color): Unit

    Permalink
  98. def self: Any

    Permalink
    Definition Classes
    UIElement → Proxy
  99. def showGrid: Boolean

    Permalink
  100. def showGrid_=(grid: Boolean): Unit

    Permalink
  101. def showing: Boolean

    Permalink
    Definition Classes
    UIElement
  102. def size: Dimension

    Permalink
    Definition Classes
    UIElement
  103. def sort(column: Int, ascending: Boolean = true): Unit

    Permalink

    Programmatically sets the sorted column of the table view.

  104. def subscribe(listener: Reaction): Unit

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  105. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  106. def toString(): String

    Permalink
    Definition Classes
    Component → Proxy → AnyRef → Any
  107. def toolkit: Toolkit

    Permalink
    Definition Classes
    UIElement
  108. def tooltip: String

    Permalink
    Definition Classes
    Component
  109. def tooltip_=(t: String): Unit

    Permalink
    Definition Classes
    Component
  110. def tracksViewportHeight: Boolean

    Permalink
    Definition Classes
    WrapperScrollable
  111. def tracksViewportWidth: Boolean

    Permalink
    Definition Classes
    WrapperScrollable
  112. def unitIncrement(visibleRect: Rectangle, orientation: Orientation.Value, direction: Int): Int

    Permalink
    Definition Classes
    WrapperScrollable
  113. def unsubscribe(listener: Reaction): Unit

    Permalink
    Definition Classes
    LazyPublisher → Publisher
  114. def update(row: Int, column: Int, value: Any): Unit

    Permalink

    Changes the value of the given cell.

    Changes the value of the given cell. The given cell coordinates are in view coordinates and thus not necessarily the same as for the model.

    If you have model coordinates, use model.setValueAt instead.

  115. def updateCell(row: Int, column: Int): Unit

    Permalink

    Visually updates the given cell.

  116. def updateSelectionOnSort: Boolean

    Permalink
  117. def updateSelectionOnSort_=(value: Boolean): Unit

    Permalink
  118. def validate(): Unit

    Permalink
    Definition Classes
    UIElement
  119. def viewToModelColumn(idx: Int): Int

    Permalink
  120. def viewToModelRow(idx: Int): Int

    Permalink
  121. def visible: Boolean

    Permalink
    Definition Classes
    UIElement
  122. def visible_=(b: Boolean): Unit

    Permalink
    Definition Classes
    UIElement
  123. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. def xLayoutAlignment: Double

    Permalink

    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
  127. def xLayoutAlignment_=(x: Double): Unit

    Permalink
    Definition Classes
    Component
  128. def yLayoutAlignment: Double

    Permalink
    Definition Classes
    Component
  129. def yLayoutAlignment_=(y: Double): Unit

    Permalink
    Definition Classes
    Component

Inherited from Wrapper

Inherited from Scrollable

Inherited from Component

Inherited from PeerContainer

Inherited from UIElement

Inherited from LazyPublisher

Inherited from Publisher

Inherited from Reactor

Inherited from Proxy

Inherited from AnyRef

Inherited from Any

Ungrouped