scala.swing

class Table

[source: scala/swing/Table.scala]

class Table
extends Scrollable
Displays a matrix of items.
See Also
javax.swing.JTable
Additional Constructor Summary
def this (rowData : Array[Array[Any]], columnNames : Seq[Any]) : Table
def this (rows : Int, columns : Int) : Table
Value Summary
protected val modelListener : javax.swing.event.TableModelListener
override lazy val peer : javax.swing.JTable
Values and Variables inherited from Component
initP
Values and Variables inherited from Publisher
listeners
Values and Variables inherited from Reactor
reactions
Method Summary
def apply (row : Int, column : Int) : Any
Get the current value of the given cell.
def autoResizeMode : Value
def autoResizeMode_= (x : Value) : Unit
protected def editor (row : Int, column : Int) : javax.swing.table.TableCellEditor
def gridColor : java.awt.Color
def gridColor_= (color : java.awt.Color) : Unit
def model : javax.swing.table.TableModel
def model_= (x : javax.swing.table.TableModel) : Unit
def preferredViewportSize_= (dim : java.awt.Dimension) : Unit
protected def rendererComponent (isSelected : Boolean, hasFocus : Boolean, row : Int, column : Int) : Component
Supplies a renderer component for a given cell.
def rowCount : Int
def rowHeight : Int
def rowHeight_= (x : Int) : Unit
protected def scrollablePeer : javax.swing.JTable
def selectionBackground : java.awt.Color
def selectionBackground_= (c : java.awt.Color) : Unit
def selectionForeground : java.awt.Color
def selectionForeground_= (c : java.awt.Color) : Unit
def showGrid : Boolean
def showGrid_= (grid : Boolean) : Unit
def update (row : Int, column : Int, value : Any) : Unit
Change the value of the given cell.
def updateCell (row : Int, column : Int) : Unit
Visually update the given cell.
Methods inherited from Scrollable
preferredViewportSize, tracksViewportHeight, tracksViewportWidth, blockIncrement, unitIncrement
Methods inherited from Component
xLayoutAlignment, xLayoutAlignment_=, yLayoutAlignment, yLayoutAlignment_=, border, border_=, opaque, opaque_=, enabled, enabled_=, tooltip, tooltip_=, inputVerifier, inputVerifier_=, revalidate, requestFocus, paintComponent, paint, toString
Methods inherited from Publisher
subscribe, unsubscribe, publish
Methods inherited from Reactor
listenTo, deafTo
Methods inherited from UIElement
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, repaint
Methods inherited from Proxy
hashCode, equals
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Object Summary
object selection extends Publisher
Additional Constructor Details
def this(rowData : Array[Array[Any]], columnNames : Seq[Any]) : Table

def this(rows : Int, columns : Int) : Table

Value Details
override lazy val peer : javax.swing.JTable

protected val modelListener : javax.swing.event.TableModelListener

Method Details
protected def scrollablePeer : javax.swing.JTable
Overrides
Scrollable.scrollablePeer

def rowHeight : Int

def rowHeight_=(x : Int) : Unit

def rowCount : Int

def model : javax.swing.table.TableModel

def model_=(x : javax.swing.table.TableModel) : Unit

def autoResizeMode : Value

def autoResizeMode_=(x : Value) : Unit

def showGrid : Boolean

def showGrid_=(grid : Boolean) : Unit

def gridColor : java.awt.Color

def gridColor_=(color : java.awt.Color) : Unit

def preferredViewportSize_=(dim : java.awt.Dimension) : Unit

protected def rendererComponent(isSelected : Boolean, hasFocus : Boolean, row : Int, column : Int) : Component
Supplies a renderer component for a given cell.

protected def editor(row : Int, column : Int) : javax.swing.table.TableCellEditor

def apply(row : Int, column : Int) : Any
Get the current value of the given cell.

def update(row : Int, column : Int, value : Any) : Unit
Change the value of the given cell.

def updateCell(row : Int, column : Int) : Unit
Visually update the given cell.

def selectionForeground : java.awt.Color

def selectionForeground_=(c : java.awt.Color) : Unit

def selectionBackground : java.awt.Color

def selectionBackground_=(c : java.awt.Color) : Unit