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

E13403-02

oracle.jdeveloper.cmt
Class CmtPropertyModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by oracle.bali.inspector.PropertyModel
          extended by oracle.jdeveloper.cmt.CmtPropertyModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
CmtEventModel

public class CmtPropertyModel
extends oracle.bali.inspector.PropertyModel

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

See Also:
Serialized Form

Field Summary
protected static java.lang.Object[] _COLUMNS
           
protected  oracle.bali.inspector.PropertyEditorAdapter[] _factories
           
protected  CmtPropertyID[] _ids
           
protected  CmtInspectable _inspectable
           
protected  java.util.Hashtable _propertyHashtable
           
protected static SwingGroupProvider GROUPS
           
static int INDEX_COLUMN_DESCRIPTION
          The column index that CmtPropertyModel uses for the description.
static int INDEX_COLUMN_DISPLAY_NAME
          The column index that CmtPropertyModel uses for the display name.
static int INDEX_COLUMN_DISPLAY_VALUE
          The column index that CmtPropertyModel uses for the display value.
static int INDEX_COLUMN_EDITOR_ADAPTER
          The column index that CmtPropertyModel uses for the editor adapter.
static int INDEX_COLUMN_EDITOR_FACTORY
          The column index that CmtPropertyModel uses for the editor factory.
static int INDEX_COLUMN_EXPERT
          The column index that CmtPropertyModel uses for expert.
static int INDEX_COLUMN_GROUP
          The column index that CmtPropertyModel uses for groups.
static int INDEX_COLUMN_HELP
          The column index that CmtPropertyModel uses for property help URL
static int INDEX_COLUMN_HIDDEN
          The column index that CmtPropertyModel uses for hidden.
static int INDEX_COLUMN_ID
          The column index that CmtPropertyModel uses for the column id.
static int INDEX_COLUMN_IS_READABLE
          The column index that CmtPropertyModel uses for the is readable attribute.
static int INDEX_COLUMN_IS_WRITABLE
          The column index that CmtPropertyModel uses for the is writable attribute.
static int INDEX_COLUMN_NAME
          The column index that CmtPropertyModel uses for property names.
static int INDEX_COLUMN_VALUE
          The column index that CmtPropertyModel uses for the value.
static int INDEX_COLUMN_VALUE_CLASS
          The column index that CmtPropertyModel uses for the value class.
protected  oracle.bali.inspector.JavaBeansPropertyEditorAdapter[] propertyEditorAdapters
           
 
Fields inherited from class oracle.bali.inspector.PropertyModel
COLUMN_ACTIONS, COLUMN_CATEGORY, COLUMN_DESCRIPTION, COLUMN_DISPLAY_NAME, COLUMN_DISPLAY_VALUE, COLUMN_EDITOR_FACTORY, COLUMN_EDITOR_FACTORY_2, COLUMN_GROUP, COLUMN_ICON, COLUMN_ICON_TOOLTIP, COLUMN_ID, COLUMN_IS_DRILLABLE, COLUMN_IS_EXPERT, COLUMN_IS_HIDDEN, COLUMN_IS_READABLE, COLUMN_IS_WRITABLE, COLUMN_LEVEL, COLUMN_MODEL, COLUMN_NAME, COLUMN_VALIDATION_ISSUES, COLUMN_VALUE, COLUMN_VALUE_CLASS, DOES_NOT_EXIST, NONEXISTENT_COLUMN, PROPERTY_DISPLAY_NAME
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CmtPropertyModel(CmtInspectable inspectable)
          Creates a CmtPropertyModel returning the properties 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.
 int getColumnCount()
           
 java.lang.Object[] getColumnMapping()
           
static HelpInfo getHelpInfo(CmtPropertyState propertyState)
           
 java.lang.Object getPropertyByID(int columnIndex, java.lang.Object propertyID)
           
 java.util.Enumeration getPropertyIDs()
           
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.
 java.lang.String getTargetDisplayName()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Return the data of the specified cell.
protected  oracle.bali.inspector.JavaBeansPropertyEditorAdapter inspectorPropertyEditor(int index)
           
 void invalidateValueData()
          Invalidate all of the value data in the Model
 void setPropertyByID(int columnIndex, java.lang.Object propertyID, java.lang.Object data)
          Sets the value of the column specified by the columnIndex and the row specified by the propertyID to the value of data.
 void setValueAt(java.lang.Object data, int rowIndex, int columnIndex)
          Sets the data of the specified cell to the values specified by data.
 
Methods inherited from class oracle.bali.inspector.PropertyModel
addPropertyChangeListener, addPropertyModelListener, dispose, firePropertyChanged, firePropertyModelUpdate, getActionGroups, getBooleanData, getBooleanData, getCategoryLayoutId, getColumnIndex, getData, getIcon, getIconToolTip, getLocale, getMatchingId, getPropertyCategory, getPropertyDescription, getPropertyDisplayName, getPropertyDisplayName, getPropertyDisplayValue, getPropertyEditorFactory, getPropertyEditorFactory2, getPropertyGroup, getPropertyID, getPropertyIndex, getPropertyModel, getPropertyName, getPropertyValue, isCellEditable, isDataConflicting, isMatchingPropertyID, isPropertyCommon, isPropertyDrillable, isPropertyReadable, isPropertyWritable, isSettable, removePropertyChangeListener, removePropertyModelListener, setCategoryLayoutId, setData, setLocale, setPropertyValue, startRead, stopRead, throwIllegalArgumentException, useUnion
 
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
 

Field Detail

INDEX_COLUMN_ID

public static final int INDEX_COLUMN_ID
The column index that CmtPropertyModel uses for the column id.

See Also:
Constant Field Values

INDEX_COLUMN_EDITOR_FACTORY

public static final int INDEX_COLUMN_EDITOR_FACTORY
The column index that CmtPropertyModel uses for the editor factory.

See Also:
Constant Field Values

INDEX_COLUMN_VALUE

public static final int INDEX_COLUMN_VALUE
The column index that CmtPropertyModel uses for the value.

See Also:
Constant Field Values

INDEX_COLUMN_DISPLAY_VALUE

public static final int INDEX_COLUMN_DISPLAY_VALUE
The column index that CmtPropertyModel uses for the display value.

See Also:
Constant Field Values

INDEX_COLUMN_IS_WRITABLE

public static final int INDEX_COLUMN_IS_WRITABLE
The column index that CmtPropertyModel uses for the is writable attribute.

See Also:
Constant Field Values

INDEX_COLUMN_DISPLAY_NAME

public static final int INDEX_COLUMN_DISPLAY_NAME
The column index that CmtPropertyModel uses for the display name.

See Also:
Constant Field Values

INDEX_COLUMN_VALUE_CLASS

public static final int INDEX_COLUMN_VALUE_CLASS
The column index that CmtPropertyModel uses for the value class.

See Also:
Constant Field Values

INDEX_COLUMN_IS_READABLE

public static final int INDEX_COLUMN_IS_READABLE
The column index that CmtPropertyModel uses for the is readable attribute.

See Also:
Constant Field Values

INDEX_COLUMN_DESCRIPTION

public static final int INDEX_COLUMN_DESCRIPTION
The column index that CmtPropertyModel uses for the description.

See Also:
Constant Field Values

INDEX_COLUMN_EXPERT

public static final int INDEX_COLUMN_EXPERT
The column index that CmtPropertyModel uses for expert.

See Also:
Constant Field Values

INDEX_COLUMN_HIDDEN

public static final int INDEX_COLUMN_HIDDEN
The column index that CmtPropertyModel uses for hidden.

See Also:
Constant Field Values

INDEX_COLUMN_GROUP

public static final int INDEX_COLUMN_GROUP
The column index that CmtPropertyModel uses for groups.

See Also:
Constant Field Values

INDEX_COLUMN_NAME

public static final int INDEX_COLUMN_NAME
The column index that CmtPropertyModel uses for property names.

See Also:
Constant Field Values

INDEX_COLUMN_HELP

public static final int INDEX_COLUMN_HELP
The column index that CmtPropertyModel uses for property help URL

See Also:
Constant Field Values

INDEX_COLUMN_EDITOR_ADAPTER

public static final int INDEX_COLUMN_EDITOR_ADAPTER
The column index that CmtPropertyModel uses for the editor adapter.

See Also:
Constant Field Values

GROUPS

protected static final SwingGroupProvider GROUPS

_COLUMNS

protected static final java.lang.Object[] _COLUMNS

_inspectable

protected CmtInspectable _inspectable

_factories

protected oracle.bali.inspector.PropertyEditorAdapter[] _factories

propertyEditorAdapters

protected oracle.bali.inspector.JavaBeansPropertyEditorAdapter[] propertyEditorAdapters

_ids

protected CmtPropertyID[] _ids

_propertyHashtable

protected transient java.util.Hashtable _propertyHashtable
Constructor Detail

CmtPropertyModel

public CmtPropertyModel(CmtInspectable inspectable)
Creates a CmtPropertyModel returning the properties of the inspectable passed in.

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

getTargetDisplayName

public java.lang.String getTargetDisplayName()
Specified by:
getTargetDisplayName in class oracle.bali.inspector.PropertyModel
Returns:
the display name of the object being observed.

getColumnMapping

public java.lang.Object[] getColumnMapping()
Specified by:
getColumnMapping in class oracle.bali.inspector.PropertyModel
Returns:
the Objects identifying the columns that this PropertyModel can provide informatiuon for.

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel
Overrides:
getColumnCount in class oracle.bali.inspector.PropertyModel
Returns:
the number of columns that this PropertyModel is providing information for.

getRowCount

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


getPropertyIDs

public java.util.Enumeration getPropertyIDs()
Overrides:
getPropertyIDs in class oracle.bali.inspector.PropertyModel

invalidateValueData

public void invalidateValueData()
Invalidate all of the value data in the Model

Specified by:
invalidateValueData in class oracle.bali.inspector.PropertyModel

setPropertyByID

public void setPropertyByID(int columnIndex,
                            java.lang.Object propertyID,
                            java.lang.Object data)
                     throws java.lang.Exception
Sets the value of the column specified by the columnIndex and the row specified by the propertyID to the value of data.

Overrides:
setPropertyByID in class oracle.bali.inspector.PropertyModel
Throws:
java.lang.Exception

getPropertyByID

public java.lang.Object getPropertyByID(int columnIndex,
                                        java.lang.Object propertyID)
Overrides:
getPropertyByID in class oracle.bali.inspector.PropertyModel
Returns:
the data at the column specified by columnIndex and the row specified by propertyID.

setValueAt

public void setValueAt(java.lang.Object data,
                       int rowIndex,
                       int columnIndex)
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 javax.swing.table.AbstractTableModel
Parameters:
data - the new data
rowIndex - the row index of the cell
columnIndex - the column index of the cell

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Return the data of the specified cell.

Parameters:
rowIndex - the row index of the cell
columnIndex - the column index of the cell

getHelpInfo

public static HelpInfo getHelpInfo(CmtPropertyState propertyState)

getPropertyState

protected CmtPropertyState getPropertyState(int index)
Get the CmtPropertyState at the given index. Checks for nulls and illegal indicies. =-= fsb: You probably don't have to be so paranoid.


_getPropertyHashTable

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


_getPropertyID

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


inspectorPropertyEditor

protected oracle.bali.inspector.JavaBeansPropertyEditorAdapter inspectorPropertyEditor(int index)

_getPropertyEditorFactory

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


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

E13403-02

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