org.apache.batik.apps.svgbrowser

Class DOMViewer.Panel.NodeCSSValuesModel

protected class DOMViewer.Panel.NodeCSSValuesModel extends AbstractTableModel

To display the CSS properties of a DOM node in a table.
Field Summary
protected Nodenode
The node.
protected ListpropertyNames
The property names.
protected CSSStyleDeclarationstyle
The computed style.
Constructor Summary
NodeCSSValuesModel(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.

propertyNames

protected List propertyNames
The property names.

style

protected CSSStyleDeclaration style
The computed style.

Constructor Detail

NodeCSSValuesModel

public NodeCSSValuesModel(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) 2008 Apache Software Foundation. All Rights Reserved.