public class

JXObservationTable

extends JXTable
implements ObservationTable
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JTable
           ↳ org.jdesktop.swingx.JXTable
             ↳ vars.annotation.ui.table.JXObservationTable

Summary

[Expand]
Inherited Constants
From class org.jdesktop.swingx.JXTable
From class javax.swing.JTable
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class org.jdesktop.swingx.JXTable
From class javax.swing.JTable
From class javax.swing.JComponent
Public Constructors
JXObservationTable()
Constructs ...
Public Methods
void addObservation(Observation observation)
Delegate method that passes the call on to the ObservationTableModel
TableCellRenderer getDefaultRenderer(Class<?> columnClass)
JTable getJTable()
Observation getObservationAt(int row)
Delegate method that passes the call on to the ObservationTableModel
int getPreferredRowHeight(int rowIndex, int margin)
Gets the preferredRowHeight attribute of the ObservationTable object
void redrawAll()
Delegate method that forces the model to redraw the table.
void redrawRow(int row)
Delegate method to force the model to redraw the specified row
void removeObservation(Observation observation)
Delegate method that passes the call on to the ObservationTableModel
void scrollToVisible(int rowIndex, int vColIndex)
Scroll to the correct row and column
void setSelectedObservation(Observation obs)
Selects the row containing the observation
void setSelectedObservations(Collection<Observation> observations)
Selects the rows containing the provided observation
void updateObservation(Observation observation)
Essentially, this replaces the observation with the matchin primary key in the model with the one you provided.
[Expand]
Inherited Methods
From class org.jdesktop.swingx.JXTable
From class javax.swing.JTable
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible
From interface javax.swing.Scrollable
From interface javax.swing.event.CellEditorListener
From interface javax.swing.event.ListSelectionListener
From interface javax.swing.event.RowSorterListener
From interface javax.swing.event.TableColumnModelListener
From interface javax.swing.event.TableModelListener
From interface org.jdesktop.swingx.event.TableColumnModelExtListener
From interface vars.annotation.ui.table.ObservationTable

Public Constructors

public JXObservationTable ()

Constructs ...

Public Methods

public void addObservation (Observation observation)

Delegate method that passes the call on to the ObservationTableModel

public TableCellRenderer getDefaultRenderer (Class<?> columnClass)

public JTable getJTable ()

public Observation getObservationAt (int row)

Delegate method that passes the call on to the ObservationTableModel

Parameters
row Description of the Parameter
Returns
  • The observationAt value

public int getPreferredRowHeight (int rowIndex, int margin)

Gets the preferredRowHeight attribute of the ObservationTable object

Parameters
rowIndex Description of the Parameter
margin Description of the Parameter
Returns
  • The preferredRowHeight value

public void redrawAll ()

Delegate method that forces the model to redraw the table.

public void redrawRow (int row)

Delegate method to force the model to redraw the specified row

Parameters
row The row to redraw

public void removeObservation (Observation observation)

Delegate method that passes the call on to the ObservationTableModel

public void scrollToVisible (int rowIndex, int vColIndex)

Scroll to the correct row and column

public void setSelectedObservation (Observation obs)

Selects the row containing the observation

public void setSelectedObservations (Collection<Observation> observations)

Selects the rows containing the provided observation

public void updateObservation (Observation observation)

Essentially, this replaces the observation with the matchin primary key in the model with the one you provided.