Extension SDK

oracle.ide.inspector
Class DefaultModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byoracle.bali.inspector.PropertyModel
          extended byoracle.bali.inspector.beans.BeansModel
              extended byoracle.ide.inspector.DefaultModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class DefaultModel
extends oracle.bali.inspector.beans.BeansModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.bali.inspector.beans.BeansModel
INDEX_COLUMN_DESCRIPTION, INDEX_COLUMN_DISPLAY_NAME, INDEX_COLUMN_DISPLAY_VALUE, INDEX_COLUMN_EDITOR_FACTORY, INDEX_COLUMN_GROUP, INDEX_COLUMN_ID, INDEX_COLUMN_IS_DRILLABLE, INDEX_COLUMN_IS_EXPERT, INDEX_COLUMN_IS_HIDDEN, INDEX_COLUMN_IS_READABLE, INDEX_COLUMN_IS_WRITABLE, INDEX_COLUMN_MODEL, 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
  DefaultModel(java.lang.Object target)
          Creates a DefaultModel returning the properties of the traget passed in.
protected DefaultModel(java.lang.Object target, oracle.bali.inspector.beans.BeansModel parentModel, int index)
          Create the child DefaultModel for the Object.
 
Method Summary
protected  oracle.bali.inspector.beans.BeansModel createBeansModel(java.lang.Object target, oracle.bali.inspector.beans.BeansModel parentModel, int index)
          Create the child BeansModel for the Object.
protected  java.beans.BeanInfo getBeanInfo(java.lang.Class beanClass)
          Get the BeanInfo for the given class.
 java.lang.String getTargetDisplayName()
          Get the display name of the object being modeled.
 
Methods inherited from class oracle.bali.inspector.beans.BeansModel
getColumnCount, getColumnMapping, getGroupProvider, getPropertyByID, getPropertyIDs, getRowCount, getTarget, getValueAt, invalidateValueData, isDisplayFields, isPropertyWritable, setDisplayFields, setGroupProvider, setImmutableValue, setPropertyByID, setValueAt
 
Methods inherited from class oracle.bali.inspector.PropertyModel
addPropertyChangeListener, 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
 
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

DefaultModel

public DefaultModel(java.lang.Object target)
Creates a DefaultModel returning the properties of the traget passed in.

Parameters:
target - The Java Object to use introspection to get and set the properties of.

See Also:
BeansModel.getTarget()

DefaultModel

protected DefaultModel(java.lang.Object target,
                       oracle.bali.inspector.beans.BeansModel parentModel,
                       int index)
Create the child DefaultModel for the Object. This constructor is used to support property drill down. parentModel is the parent BeansModel that created this model. index is the zero based index of the row of the object this new model is dealing with.

Method Detail

getTargetDisplayName

public java.lang.String getTargetDisplayName()
Get the display name of the object being modeled.

Returns:
the display name of the object being modeled.

createBeansModel

protected oracle.bali.inspector.beans.BeansModel createBeansModel(java.lang.Object target,
                                                                  oracle.bali.inspector.beans.BeansModel parentModel,
                                                                  int index)
Create the child BeansModel for the Object. This method is used to support property drill down. parentModel is the parent BeansModel that wants to create the model. index is the zero based index of the row of the object the new model is dealing with.


getBeanInfo

protected java.beans.BeanInfo getBeanInfo(java.lang.Class beanClass)
                                   throws java.beans.IntrospectionException
Get the BeanInfo for the given class. The default implementation just calls InspectorFactory.getBeanInfo. Clients can override this method to customize how bean infos are generated.

Throws:
java.beans.IntrospectionException

Extension SDK

 

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