org.owasp.webscarab.ui.swing
Class UrlTreeTableModelAdapter
java.lang.Object
org.owasp.webscarab.util.swing.AbstractTreeModel
org.owasp.webscarab.ui.swing.UrlTreeModelAdapter
org.owasp.webscarab.ui.swing.UrlTreeTableModelAdapter
- All Implemented Interfaces:
- javax.swing.tree.TreeModel, TreeTableModel
public class UrlTreeTableModelAdapter
- extends UrlTreeModelAdapter
- implements TreeTableModel
Method Summary |
void |
addColumn(ColumnDataModel column)
|
java.lang.Class |
getColumnClass(int column)
Returns the class for the particular column. |
int |
getColumnCount()
Returns the number of columns. |
java.lang.String |
getColumnName(int column)
Returns the name for a particular column. |
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Returns the value of the particular column. |
boolean |
isCellEditable(java.lang.Object node,
int column)
By default, make the column with the Tree in it the only editable one. |
void |
removeColumn(ColumnDataModel column)
|
void |
setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
Sets the value for node node ,
at column number column . |
Methods inherited from class org.owasp.webscarab.util.swing.AbstractTreeModel |
addTreeModelListener, clone, fireChildAdded, fireChildChanged, fireChildRemoved, fireChildrenAdded, fireChildrenChanged, fireChildrenRemoved, fireNewRoot, firePathChanged, firePathLeafStateChanged, fireStructureChanged, fireTreeStructureChanged, getIndexOfChild, removeTreeModelListener |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
UrlTreeTableModelAdapter
public UrlTreeTableModelAdapter(UrlModel model)
addColumn
public void addColumn(ColumnDataModel column)
removeColumn
public void removeColumn(ColumnDataModel column)
getColumnCount
public int getColumnCount()
- Returns the number of columns.
- Specified by:
getColumnCount
in interface TreeTableModel
getColumnName
public java.lang.String getColumnName(int column)
- Returns the name for a particular column.
- Specified by:
getColumnName
in interface TreeTableModel
getColumnClass
public java.lang.Class getColumnClass(int column)
- Returns the class for the particular column.
- Specified by:
getColumnClass
in interface TreeTableModel
getValueAt
public java.lang.Object getValueAt(java.lang.Object node,
int column)
- Returns the value of the particular column.
- Specified by:
getValueAt
in interface TreeTableModel
isCellEditable
public boolean isCellEditable(java.lang.Object node,
int column)
- By default, make the column with the Tree in it the only editable one.
Making this column editable causes the JTable to forward mouse
and keyboard events in the Tree column to the underlying JTree.
- Specified by:
isCellEditable
in interface TreeTableModel
setValueAt
public void setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
- Description copied from interface:
TreeTableModel
- Sets the value for node
node
,
at column number column
.
- Specified by:
setValueAt
in interface TreeTableModel