Extension SDK 10.1.2


oracle.ide.inspector
Class IdeMultiObjectModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byoracle.bali.inspector.PropertyModel
          extended byoracle.bali.inspector.multi.MultiObjectModel
              extended byoracle.ide.inspector.IdePropertyModel
                  extended byoracle.ide.inspector.IdeMultiObjectModel

All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class IdeMultiObjectModel
extends IdePropertyModel

The IdeMultiObjectModel is a PropertyModel implementation capable of handling undoable property sets on one or more objects. It's primary purpose is to override the setValueAt behavior to defer the property sets to a Command implementation added to the CommandProcessor's undo queue.

See Also:
Serialized Form

Field Summary

Fields inherited from class oracle.ide.inspector.IdePropertyModel
COLUMN_HELP, COLUMN_ICON

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
IdeMultiObjectModel()
Constructor.

Method Summary
Subject[] getSubjects()
Get an array of Subject instances upon which an UpdateMessage should be sent after a successful property setting.
void setContext(Context context)
Initialize based upon the selection of a given Context.
void setValueAt(java.lang.Object data, int row, int col)
Set a value on the property located at the specified row and column.

Methods inherited from class oracle.bali.inspector.multi.MultiObjectModel
dispose, getColumnMapping, getPropertyByID, getPropertyIDs, getRowCount, getSelectionModel, getTargetDisplayName, getValueAt, invalidateValueData, isCellEditable, isDataConflicting, isPropertyCommon, setLocale, setPropertyByID, setSelectionModel

Methods inherited from class oracle.bali.inspector.PropertyModel
addPropertyChangeListener, firePropertyChanged, getBooleanData, getBooleanData, getColumnCount, getColumnIndex, getData, getLocale, getPropertyDescription, getPropertyDisplayName, getPropertyDisplayName, getPropertyDisplayValue, getPropertyEditorFactory, getPropertyGroup, getPropertyID, getPropertyIndex, getPropertyModel, getPropertyName, getPropertyValue, isPropertyDrillable, isPropertyReadable, isPropertyWritable, removePropertyChangeListener, setData, 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

IdeMultiObjectModel

public IdeMultiObjectModel()
Constructor.

Method Detail

setContext

public void setContext(Context context)
Initialize based upon the selection of a given Context.
Specified by:
setContext in class IdePropertyModel
Parameters:
context - the Context from which to initialize.

getSubjects

public Subject[] getSubjects()
Get an array of Subject instances upon which an UpdateMessage should be sent after a successful property setting.
Specified by:
getSubjects in class IdePropertyModel
Returns:
An array of Subject.

setValueAt

public void setValueAt(java.lang.Object data,
                       int row,
                       int col)
Set a value on the property located at the specified row and column.
Parameters:
data - the new property value.
row - the table row identifying the property.
col - the table column identifying the property.

Extension SDK


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