HiRISE

HiRISE.HiVali
Class ValidationTableModel

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractTreeTableModel
      extended by org.jdesktop.swingx.treetable.DefaultTreeTableModel
          extended by HiRISE.HiVali.ValidationTableModel
All Implemented Interfaces:
TreeModel, TreeTableModel
Direct Known Subclasses:
EdrTableModel

public class ValidationTableModel
extends DefaultTreeTableModel

Serves as model layer for a JXTreeTable. The data is stored in a ValidationTreeNode.

Version:
1.6
Author:
guym

Field Summary
protected  Map<String,Integer> cols
          Map column names to column index
protected  String[] columns
          Column names
static String ID
          CVS ID
protected  Observation observation
           
protected  ValidationNode tree
           
 
Fields inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel
columnIdentifiers
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
modelSupport, root
 
Constructor Summary
ValidationTableModel(String[] columns)
          Create a new ValidationTreeTableModel using the data in a ValidationNode and the given column names.
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int col)
           
 String[] getColumns()
           
 Observation getObservation()
           
 ValidationState getState()
           
 Object getValueAt(Object obj, int col)
           
 void setObservation(Observation observation)
           
 void setState(ValidationState state)
           
 void setValueAt(Object value, Object obj, int col)
           
 
Methods inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel
getChild, getChildCount, getIndexOfChild, getPathToRoot, getRoot, insertNodeInto, isCellEditable, isLeaf, removeNodeFromParent, setColumnIdentifiers, setRoot, setUserObject, valueForPathChanged
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
addTreeModelListener, getColumnClass, getHierarchicalColumn, getTreeModelListeners, removeTreeModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

columns

protected String[] columns
Column names


cols

protected Map<String,Integer> cols
Map column names to column index


observation

protected Observation observation

tree

protected ValidationNode tree
Constructor Detail

ValidationTableModel

public ValidationTableModel(String[] columns)
Create a new ValidationTreeTableModel using the data in a ValidationNode and the given column names.

Parameters:
columns - Field names
Method Detail

getState

public ValidationState getState()

setState

public void setState(ValidationState state)

getObservation

public Observation getObservation()

setObservation

public void setObservation(Observation observation)

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TreeTableModel
Overrides:
getColumnCount in class DefaultTreeTableModel

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TreeTableModel
Overrides:
getColumnName in class DefaultTreeTableModel

getValueAt

public Object getValueAt(Object obj,
                         int col)
Specified by:
getValueAt in interface TreeTableModel
Overrides:
getValueAt in class DefaultTreeTableModel

setValueAt

public void setValueAt(Object value,
                       Object obj,
                       int col)
Specified by:
setValueAt in interface TreeTableModel
Overrides:
setValueAt in class DefaultTreeTableModel

getColumns

public String[] getColumns()

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona