org.apache.batik.util.gui
Class DOMViewer.Panel.NodeAttributesModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--org.apache.batik.util.gui.DOMViewer.Panel.NodeAttributesModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
DOMViewer.Panel

protected class DOMViewer.Panel.NodeAttributesModel
extends javax.swing.table.AbstractTableModel

To display the attributes of a DOM node attributes in a table.

See Also:
Serialized Form

Field Summary
protected  Node node
          The node.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DOMViewer.Panel.NodeAttributesModel(Node n)
          Creates a new NodeAttributesModel object.
 
Method Summary
 int getColumnCount()
          Returns the number of columns in the table.
 java.lang.String getColumnName(int col)
          Returns the name to give to a column.
 int getRowCount()
          Returns the number of rows in the table.
 java.lang.Object getValueAt(int row, int col)
          Returns the value of the given cell.
 boolean isCellEditable(int row, int col)
          Whether the given cell is editable.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node
The node.
Constructor Detail

DOMViewer.Panel.NodeAttributesModel

public DOMViewer.Panel.NodeAttributesModel(Node n)
Creates a new NodeAttributesModel object.
Method Detail

getColumnName

public java.lang.String getColumnName(int col)
Returns the name to give to a column.
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()
Returns the number of columns in the table.
Overrides:
getColumnCount in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()
Returns the number of rows in the table.
Overrides:
getRowCount in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Whether the given cell is editable.
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Returns the value of the given cell.
Overrides:
getValueAt in class javax.swing.table.AbstractTableModel


Copyright © 2002 Apache Software Foundation. All Rights Reserved.