Extension SDK 10.1.2


oracle.jdeveloper.cmt
Class CmtPropertyModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byoracle.bali.inspector.PropertyModel
          extended byoracle.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_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.

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
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()
Returns the number of columns that this PropertyModel is providing information for,
java.lang.Object[] getColumnMapping()
Returns the Objects identifying the columns that this PropertyModel can provide informatiuon for.
static HelpInfo getHelpInfo(CmtPropertyState ps)
java.lang.Object getPropertyByID(int columnIndex, java.lang.Object propertyID)
Returns the data at the column specified by columnIndex and the row specified by propertyID.
java.util.Enumeration getPropertyIDs()
Returns an enumeration of all of the PropertyIDs in the PropertyModel
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()
Returns the display name of the object being observed.
java.lang.Object getValueAt(int rowIndex, int columnIndex)
Return the data of the specified cell.
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, 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

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

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

_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()
Returns the display name of the object being observed.

getColumnMapping

public java.lang.Object[] getColumnMapping()
Returns the Objects identifying the columns that this PropertyModel can provide informatiuon for.

getColumnCount

public int getColumnCount()
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()
Returns an enumeration of all of the PropertyIDs in the PropertyModel

invalidateValueData

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

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.
Throws:
java.lang.Exception

getPropertyByID

public java.lang.Object getPropertyByID(int columnIndex,
                                        java.lang.Object propertyID)
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.
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 ps)

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.

_getPropertyEditorFactory

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

Extension SDK


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