Extension SDK 9.0.5

oracle.jdeveloper.cmt
Class CmtEventModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byoracle.bali.inspector.PropertyModel
          extended byoracle.jdeveloper.cmt.CmtPropertyModel
              extended byoracle.jdeveloper.cmt.CmtEventModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class CmtEventModel
extends CmtPropertyModel

A model representation suitable for the Bali inspector based upon JDeveloper Cmt inputs.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.jdeveloper.cmt.CmtPropertyModel
_COLUMNS, _factories, _ids, _inspectable, _propertyHashtable, GROUPS, INDEX_COLUMN_DESCRIPTION, INDEX_COLUMN_DISPLAY_NAME, INDEX_COLUMN_DISPLAY_VALUE, INDEX_COLUMN_EDITOR_FACTORY, INDEX_COLUMN_EXPERT, INDEX_COLUMN_GROUP, INDEX_COLUMN_HELP, INDEX_COLUMN_HIDDEN, INDEX_COLUMN_ID, INDEX_COLUMN_IS_READABLE, INDEX_COLUMN_IS_WRITABLE, INDEX_COLUMN_NAME, INDEX_COLUMN_VALUE, INDEX_COLUMN_VALUE_CLASS
 
Fields inherited from class oracle.bali.inspector.PropertyModel
COLUMN_DESCRIPTION, COLUMN_DISPLAY_NAME, COLUMN_DISPLAY_VALUE, COLUMN_EDITOR_FACTORY, COLUMN_GROUP, COLUMN_ID, COLUMN_IS_DRILLABLE, COLUMN_IS_EXPERT, COLUMN_IS_HIDDEN, COLUMN_IS_READABLE, COLUMN_IS_WRITABLE, COLUMN_LEVEL, COLUMN_MODEL, COLUMN_NAME, COLUMN_VALUE, COLUMN_VALUE_CLASS, DOES_NOT_EXIST, NONEXISTENT_COLUMN, PROPERTY_DISPLAY_NAME
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CmtEventModel(CmtInspectable inspectable)
          Creates a CmtEventModel returning the events of the inspectable passed in.
 
Method Summary
protected  oracle.bali.inspector.PropertyEditorAdapter _getPropertyEditorFactory(int index)
          Get the property editor factory at the given index.
protected  java.util.Hashtable _getPropertyHashTable()
          Returns the hashtable mapping propertyIDs to row indices, creating it if necessary.
protected  CmtPropertyID _getPropertyID(int index)
          Get the property id at the given index.
protected  CmtPropertyState getPropertyState(int index)
          Get the CmtPropertyState at the given index.
 int getRowCount()
          Get the number of rows of properties for the current target object.
 void postProcess()
           
 void setValueAt(java.lang.Object data, int rowIndex, int colIndex)
          Sets the data of the specified cell to the values specified by data.
 
Methods inherited from class oracle.jdeveloper.cmt.CmtPropertyModel
getColumnCount, getColumnMapping, getHelpInfo, getPropertyByID, getPropertyIDs, getTargetDisplayName, getValueAt, invalidateValueData, setPropertyByID
 
Methods inherited from class oracle.bali.inspector.PropertyModel
addPropertyChangeListener, dispose, firePropertyChanged, getBooleanData, getBooleanData, getColumnIndex, getData, getLocale, getPropertyDescription, getPropertyDisplayName, getPropertyDisplayName, getPropertyDisplayValue, getPropertyEditorFactory, getPropertyGroup, getPropertyID, getPropertyIndex, getPropertyModel, getPropertyName, getPropertyValue, isCellEditable, isDataConflicting, isPropertyCommon, isPropertyDrillable, isPropertyReadable, isPropertyWritable, removePropertyChangeListener, setData, setLocale, setPropertyValue, throwIllegalArgumentException
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmtEventModel

public CmtEventModel(CmtInspectable inspectable)
Creates a CmtEventModel returning the events of the inspectable passed in.

Parameters:
inspectable - The CmtInspectable Object to use when getting and setting the events.
Method Detail

getRowCount

public int getRowCount()
Get the number of rows of properties for the current target object.

Specified by:
getRowCount in interface javax.swing.table.TableModel
Overrides:
getRowCount in class CmtPropertyModel

setValueAt

public void setValueAt(java.lang.Object data,
                       int rowIndex,
                       int colIndex)
Description copied from class: CmtPropertyModel
Sets the data of the specified cell to the values specified by data.

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class CmtPropertyModel
Parameters:
data - the new data
rowIndex - the row index of the cell
colIndex - the column index of the cell

postProcess

public void postProcess()

getPropertyState

protected CmtPropertyState getPropertyState(int index)
Get the CmtPropertyState at the given index. Checks for nulls and illegal indicies.

Overrides:
getPropertyState in class CmtPropertyModel

_getPropertyHashTable

protected java.util.Hashtable _getPropertyHashTable()
Returns the hashtable mapping propertyIDs to row indices, creating it if necessary.

Overrides:
_getPropertyHashTable in class CmtPropertyModel

_getPropertyID

protected CmtPropertyID _getPropertyID(int index)
Get the property id at the given index.

Overrides:
_getPropertyID in class CmtPropertyModel

_getPropertyEditorFactory

protected oracle.bali.inspector.PropertyEditorAdapter _getPropertyEditorFactory(int index)
Get the property editor factory at the given index.

Overrides:
_getPropertyEditorFactory in class CmtPropertyModel

Extension SDK

 

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