org.apache.batik.util.gui

Class DOMViewer.Panel.NodeAttributesModel

protected class DOMViewer.Panel.NodeAttributesModel extends AbstractTableModel

To display the attributes of a DOM node attributes in a table.
Field Summary
protected Nodenode
The node.
Constructor Summary
NodeAttributesModel(Node n)
Creates a new NodeAttributesModel object.
Method Summary
intgetColumnCount()
Returns the number of columns in the table.
StringgetColumnName(int col)
Returns the name to give to a column.
intgetRowCount()
Returns the number of rows in the table.
ObjectgetValueAt(int row, int col)
Returns the value of the given cell.
booleanisCellEditable(int row, int col)
Whether the given cell is editable.

Field Detail

node

protected Node node
The node.

Constructor Detail

NodeAttributesModel

public NodeAttributesModel(Node n)
Creates a new NodeAttributesModel object.

Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns in the table.

getColumnName

public String getColumnName(int col)
Returns the name to give to a column.

getRowCount

public int getRowCount()
Returns the number of rows in the table.

getValueAt

public Object getValueAt(int row, int col)
Returns the value of the given cell.

isCellEditable

public boolean isCellEditable(int row, int col)
Whether the given cell is editable.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.