Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.editor
Class ReferencesModel  view ReferencesModel download ReferencesModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byabbot.editor.ReferencesModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

class ReferencesModel
extends javax.swing.table.AbstractTableModel

Formats a Script for display in a table. Keeps track of "open" nodes to create a tree-like display NOTE: this is a brute-force implementation with no attempts at optimization. But it's a very simple tree+table implementation.


Field Summary
private  abbot.Resolver resolver
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ReferencesModel(abbot.Resolver resolver)
           
 
Method Summary
 java.lang.Class getColumnClass(int col)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int col)
          Returns the name of the specified column.
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int row, int column)
          Returns the entry object at the given row.
 boolean isCellEditable(int row, int col)
          Returns true if the specified cell is editable, and false if it is not.
 void setValueAt(java.lang.Object value, int row, int col)
          Assumes value is XML for a script step.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

private abbot.Resolver resolver
Constructor Detail

ReferencesModel

public ReferencesModel(abbot.Resolver resolver)
Method Detail

getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.


getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.


getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns the entry object at the given row.


setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Assumes value is XML for a script step.


getColumnName

public java.lang.String getColumnName(int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the name of the specified column. This method generates default names in a sequence (starting with column 0): A, B, C, ..., Z, AA, AB, AC, ..., AZ, BA, BB, BC, and so on. Subclasses may override this method to allow column names to be specified on some other basis.


isCellEditable

public boolean isCellEditable(int row,
                              int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns true if the specified cell is editable, and false if it is not. This implementation returns false for all arguments, subclasses should override the method if necessary.


getColumnClass

public java.lang.Class getColumnClass(int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the Class for all Object instances in the specified column.