Extension SDK 10.1.2

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

DefaultModel provides a default implementation of PropertyModel which conforms to the JavaBean design pattern such that the list of properties are derived from a BeanInfo for the Class of the target object.

See Also:
PropertyModel, 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
dispose, getColumnCount, getColumnMapping, getGroupProvider, getPropertyByID, getPropertyEditor, getPropertyIDs, getRowCount, getTarget, getValueAt, invalidateValueData, isDisplayArrayProperties, isDisplayFields, isDisplayIndexedProperties, isPropertyWritable, isRecursionAllowed, setDisplayArrayProperties, setDisplayFields, setDisplayIndexedProperties, setGroupProvider, setImmutableValue, setPropertyByID, setRecursionAllowed, 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, 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

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.

Parameters:
target - the Object whose properties are to be shown.
parentModel - parent BeansModel that created this model.
index - 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.

Parameters:
target - the Object whose properties are to be shown.
parentModel - parent BeansModel that created this model.
index - zero based index of the row of the Object this new model is dealing with.
Returns:
A new BeansModel instance.

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.

Parameters:
beanClass - the Class for which a BeanInfo is desired.
Returns:
a BeanInfo.
Throws:
java.beans.IntrospectionException - when an exception occurs during introspection.

Extension SDK

 

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