HiRISE

HiRISE.HiVali
Class EdrTableModel

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

public class EdrTableModel
extends ValidationTableModel

Presents an observation as a TreeTableModel. It has two modes: Flat and Tree. In Tree mode, there is a hierarchy of observation, filter, ccd, channel. In Flat mode, there is a hierarchy of observation and channel.

Version:
1.3
Author:
guym

Nested Class Summary
static class EdrTableModel.Mode
          Mode constants
 
Field Summary
static String ID
          CVS ID
 
Fields inherited from class HiRISE.HiVali.ValidationTableModel
cols, columns, observation, tree
 
Fields inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel
columnIdentifiers
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
modelSupport, root
 
Constructor Summary
EdrTableModel(String[] columns)
           
EdrTableModel(String[] columns, EdrTableModel.Mode mode)
           
EdrTableModel(ValidationNode tree, String[] columns)
           
EdrTableModel(ValidationNode tree, String[] columns, EdrTableModel.Mode mode)
           
 
Method Summary
 EdrTableModel.Mode getMode()
           
 ValidationState getState()
           
 void setMode(EdrTableModel.Mode mode)
           
 void setObservation(Observation observation)
           
 void setState(String row, ValidationState state)
           
 void setValue(String row, String col, Object value)
           
 
Methods inherited from class HiRISE.HiVali.ValidationTableModel
getColumnCount, getColumnName, getColumns, getObservation, getValueAt, setState, setValueAt
 
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
Constructor Detail

EdrTableModel

public EdrTableModel(String[] columns)

EdrTableModel

public EdrTableModel(String[] columns,
                     EdrTableModel.Mode mode)

EdrTableModel

public EdrTableModel(ValidationNode tree,
                     String[] columns)

EdrTableModel

public EdrTableModel(ValidationNode tree,
                     String[] columns,
                     EdrTableModel.Mode mode)
Method Detail

setObservation

public void setObservation(Observation observation)
Overrides:
setObservation in class ValidationTableModel

getMode

public EdrTableModel.Mode getMode()

setMode

public void setMode(EdrTableModel.Mode mode)

setValue

public void setValue(String row,
                     String col,
                     Object value)

setState

public void setState(String row,
                     ValidationState state)

getState

public ValidationState getState()
Overrides:
getState in class ValidationTableModel

HiRISE

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