Extension SDK

oracle.ide.inspector
Class IdeMultiObjectModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--oracle.bali.inspector.PropertyModel
              |
              +--oracle.bali.inspector.multi.MultiObjectModel
                    |
                    +--oracle.ide.inspector.IdePropertyModel
                          |
                          +--oracle.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

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)
           
 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
getColumnMapping, getPropertyByID, getPropertyIDs, getRowCount, getSelectionModel, getTargetDisplayName, getValueAt, invalidateValueData, 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, isCellEditable, isPropertyDrillable, isPropertyReadable, isPropertyWritable, removePropertyChangeListener, setData, setPropertyValue
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, 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.
Parameters:
context - the Context from which to initialize.
Method Detail

setContext

public void setContext(Context context)
Overrides:
setContext in class IdePropertyModel

getSubjects

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

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.
Overrides:
setValueAt in class oracle.bali.inspector.multi.MultiObjectModel
Parameters:
data - the new property value.
row - the table row identifying the property.
col - the table column identifying the property.

Extension SDK