Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdevimpl.audit.log
Class AuditTreeTableModel

java.lang.Object
  extended by oracle.ide.controls.AbstractTreeTableModel
      extended by oracle.jdevimpl.audit.log.AuditTreeTableModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.tree.TreeModel, TreeTableModel, AuditModelListener

public class AuditTreeTableModel
extends AbstractTreeTableModel
implements AuditModelListener

A filtering tree table model of the Audit results.


Field Summary
 
Fields inherited from class oracle.ide.controls.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
AuditTreeTableModel(AuditModel model)
           
 
Method Summary
 void appliedTransformsChanged(AuditModel model, java.lang.Object row, java.util.List<Transform> appliedTransforms)
          Reports that the transforms applied to this model have changed.
 void auditStarted(AuditModel model, java.util.List<Metric> columns, java.util.List<Location> locations, java.lang.Object root, java.lang.Class type)
          Reports that an audit has started on this model.
 void auditStopped(AuditModel model, boolean cancelled)
          Reports that an audit has stopped on this model.
 void countChanged(AuditModel model, java.lang.Object row, AuditModel.Count count, int oldValue, int newValue)
          Reports that a count of a row changed in a model.
protected  void fireTreeStructureChanged(java.lang.Object source, javax.swing.tree.TreePath path)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 java.lang.String getColumnName(int column)
          Returns the name for column number column.
 AuditModel getModel()
           
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isLeaf(java.lang.Object parent)
           
 void modelResorted(AuditModel model)
          Reports that the model has been resorted.
 void restoreState()
           
 void rowsHidden(AuditModel model, java.util.List<?> rows, java.lang.Object visibleParent, int visibleIndex)
          Reports that rows were shown in a model.
 void rowsInserted(AuditModel model, java.util.List<?> rows, java.lang.Object parent, int index)
          Reports that rows were inserted into a model.
 void rowsRemoved(AuditModel model, java.util.List<?> rows, java.lang.Object parent, int index)
          Reports that rows were removed from a model.
 void rowsRestructureBegin(AuditModel model, java.lang.Object parent, java.lang.Object visibleParent)
          Reports that a restructure of the descendants of a row has begun.
 void rowsRestructureEnd(AuditModel model, java.lang.Object parent, java.lang.Object visibleParent)
          Reports that a restructure of the descendants of a row has ended.
 void rowsShown(AuditModel model, java.util.List<?> rows, java.lang.Object visibleParent, int visibleIndex)
          Reports that rows were shown in a model.
 void saveState(boolean expansion)
           
 void setComponents(AuditTreeTable table, javax.swing.JTree tree)
           
 void setModel(AuditModel model)
           
 void setTableModel(TreeTableModelAdapter model)
           
 java.lang.String toString()
           
 void valueChanged(AuditModel model, java.lang.Object row, int column, java.lang.Object oldValue, java.lang.Object newValue)
          Reports that a column value of a row changed in a model.
 
Methods inherited from class oracle.ide.controls.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, removeTreeModelListener, setValueAt, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuditTreeTableModel

public AuditTreeTableModel(AuditModel model)
Method Detail

setTableModel

public void setTableModel(TreeTableModelAdapter model)

setComponents

public void setComponents(AuditTreeTable table,
                          javax.swing.JTree tree)

setModel

public void setModel(AuditModel model)

getModel

public AuditModel getModel()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getColumnClass

public java.lang.Class getColumnClass(int column)
Description copied from interface: TreeTableModel
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeTableModel
Overrides:
getColumnClass in class AbstractTreeTableModel

getColumnCount

public int getColumnCount()
Description copied from interface: TreeTableModel
Returns the number ofs availible column.

Specified by:
getColumnCount in interface TreeTableModel

getColumnName

public java.lang.String getColumnName(int column)
Description copied from interface: TreeTableModel
Returns the name for column number column.

Specified by:
getColumnName in interface TreeTableModel

getValueAt

public java.lang.Object getValueAt(java.lang.Object node,
                                   int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.

Specified by:
getValueAt in interface TreeTableModel

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object parent)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel
Overrides:
isLeaf in class AbstractTreeTableModel

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

auditStarted

public void auditStarted(AuditModel model,
                         java.util.List<Metric> columns,
                         java.util.List<Location> locations,
                         java.lang.Object root,
                         java.lang.Class type)
Description copied from interface: AuditModelListener
Reports that an audit has started on this model. Old rows and columns were removed, the new root and columns added. The new root has no children.

Specified by:
auditStarted in interface AuditModelListener
Parameters:
model - the affected model.
columns - the columns.
locations - the locations specified.
root - the root.

auditStopped

public void auditStopped(AuditModel model,
                         boolean cancelled)
Description copied from interface: AuditModelListener
Reports that an audit has stopped on this model.

Specified by:
auditStopped in interface AuditModelListener
Parameters:
model - the affected model.
cancelled - whether the audit was cancelled.

rowsInserted

public void rowsInserted(AuditModel model,
                         java.util.List<?> rows,
                         java.lang.Object parent,
                         int index)
Description copied from interface: AuditModelListener
Reports that rows were inserted into a model.

The inserted row is childless and not visible.

The model invokes AuditModelListener.rowsShown(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int) immediately after this method for any of the rows that are visible.

The model propagates visibility or count changes to the parent row and its ancestors as described in the class comment.

Specified by:
rowsInserted in interface AuditModelListener
Parameters:
model - The changed model.
rows - The shown rows, adjacent if more than one.
parent - The parent of the row.
index - The index of the shown rows in the parent.

rowsRemoved

public void rowsRemoved(AuditModel model,
                        java.util.List<?> rows,
                        java.lang.Object parent,
                        int index)
Description copied from interface: AuditModelListener
Reports that rows were removed from a model.

The model invokes AuditModelListener.rowsHidden(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int) immediately before this method for any of the rows that were visible.

The model propagates visibility or count changes to the parent row and its ancestors as described in the class comment.

Specified by:
rowsRemoved in interface AuditModelListener
Parameters:
model - The changed model.
rows - The removed rows, adjacent if more than one.
parent - The parent of the removed rows.
index - The index of the removed rows in the parent.

rowsShown

public void rowsShown(AuditModel model,
                      java.util.List<?> rows,
                      java.lang.Object visibleParent,
                      int visibleIndex)
Description copied from interface: AuditModelListener
Reports that rows were shown in a model. The model invokes AuditModelListener.countChanged(oracle.jdeveloper.audit.service.AuditModel, java.lang.Object, oracle.jdeveloper.audit.service.AuditModel.Count, int, int) immediately after this method for each changed count of the parent row.

The model propagates visibility or count changes to the parent row and its ancestors as described in the class comment.

Specified by:
rowsShown in interface AuditModelListener
Parameters:
model - The changed model.
rows - The shown rows, adjacent if more than one.
visibleParent - The visible parent row of the shown rows.
visibleIndex - The visible index of the shown rows in the visible parent.

rowsHidden

public void rowsHidden(AuditModel model,
                       java.util.List<?> rows,
                       java.lang.Object visibleParent,
                       int visibleIndex)
Description copied from interface: AuditModelListener
Reports that rows were shown in a model. The model invokes AuditModelListener.countChanged(oracle.jdeveloper.audit.service.AuditModel, java.lang.Object, oracle.jdeveloper.audit.service.AuditModel.Count, int, int) immediately after this method for each changed count of the parent row.

The model propagates visibility or count changes to the parent row and its ancestors as described in the class comment.

Specified by:
rowsHidden in interface AuditModelListener
Parameters:
model - The changed model.
rows - The hidden rows, adjacent if more than one.
visibleParent - The visible parent row of the hidden rows.
visibleIndex - The visible index of the hidden rows in the visible parent.

rowsRestructureBegin

public void rowsRestructureBegin(AuditModel model,
                                 java.lang.Object parent,
                                 java.lang.Object visibleParent)
Description copied from interface: AuditModelListener
Reports that a restructure of the descendants of a row has begun.

Specified by:
rowsRestructureBegin in interface AuditModelListener
Parameters:
model - The changed model.
parent - The parent of the restructured rows.
visibleParent - The visible parent row of the restructured rows.

rowsRestructureEnd

public void rowsRestructureEnd(AuditModel model,
                               java.lang.Object parent,
                               java.lang.Object visibleParent)
Description copied from interface: AuditModelListener
Reports that a restructure of the descendants of a row has ended.

Specified by:
rowsRestructureEnd in interface AuditModelListener
Parameters:
model - The changed model.
parent - The parent of the restructured rows.
visibleParent - The visible parent row of the restructured rows.

countChanged

public void countChanged(AuditModel model,
                         java.lang.Object row,
                         AuditModel.Count count,
                         int oldValue,
                         int newValue)
Description copied from interface: AuditModelListener
Reports that a count of a row changed in a model.

The model propagates visibility or count changes to the parent row and its ancestors as described in the class comment.

Specified by:
countChanged in interface AuditModelListener
Parameters:
model - The changed model.
row - The changed row in the model.
count - The count that change.
oldValue - The old value of the count.
newValue - The new value of the count.

valueChanged

public void valueChanged(AuditModel model,
                         java.lang.Object row,
                         int column,
                         java.lang.Object oldValue,
                         java.lang.Object newValue)
Description copied from interface: AuditModelListener
Reports that a column value of a row changed in a model. If the change in value affects the index of the row in its parent, the model immediately invokes AuditModelListener.rowsHidden(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int), AuditModelListener.rowsRemoved(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int), AuditModelListener.rowsInserted(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int), and AuditModelListener.rowsShown(oracle.jdeveloper.audit.service.AuditModel, java.util.List, java.lang.Object, int) as needed.

Specified by:
valueChanged in interface AuditModelListener
Parameters:
model - The changed model.
row - The changed row in the model.
column - The column index of the changed value.
oldValue - The old value.
newValue - The new value.

modelResorted

public void modelResorted(AuditModel model)
Description copied from interface: AuditModelListener
Reports that the model has been resorted.

Specified by:
modelResorted in interface AuditModelListener
Parameters:
model - The resorted model.

appliedTransformsChanged

public void appliedTransformsChanged(AuditModel model,
                                     java.lang.Object row,
                                     java.util.List<Transform> appliedTransforms)
Description copied from interface: AuditModelListener
Reports that the transforms applied to this model have changed.

Specified by:
appliedTransformsChanged in interface AuditModelListener
Parameters:
model - The changed model.
row - The row in the model just restructured.
appliedTransforms - The transforms applied to the row.

fireTreeStructureChanged

protected void fireTreeStructureChanged(java.lang.Object source,
                                        javax.swing.tree.TreePath path)

saveState

public void saveState(boolean expansion)

restoreState

public void restoreState()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.