Class DOMViewer.Panel.NodeCSSValuesModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.apache.batik.apps.svgbrowser.DOMViewer.Panel.NodeCSSValuesModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
DOMViewer.Panel

protected class DOMViewer.Panel.NodeCSSValuesModel extends AbstractTableModel
To display the CSS properties of a DOM node in a table.
See Also:
  • Field Details

    • node

      protected Node node
      The node.
    • style

      protected CSSStyleDeclaration style
      The computed style.
    • propertyNames

      protected List propertyNames
      The property names.
  • Constructor Details

    • NodeCSSValuesModel

      public NodeCSSValuesModel(Node n)
      Creates a new NodeAttributesModel object.
  • Method Details

    • getColumnName

      public String getColumnName(int col)
      Returns the name to give to a column.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getColumnCount

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

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

      public boolean isCellEditable(int row, int col)
      Whether the given cell is editable.
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getValueAt

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