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

E13403-03

oracle.ide.inspector
Class IdeMultiObjectModel

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

Field Summary
 
Fields inherited from class oracle.ide.inspector.IdePropertyModel
COLUMN_HELP, COLUMN_ICON
 
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_TOOLTIP, COLUMN_ID, COLUMN_IS_DRILLABLE, COLUMN_IS_EXPERT, COLUMN_IS_HIDDEN, COLUMN_IS_READABLE, COLUMN_IS_WRITABLE, COLUMN_LEVEL, COLUMN_MANDATORY, 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
IdeMultiObjectModel()
          Constructor.
 
Method Summary
protected  Command createCommand(java.lang.Object data, int row, int col)
           
protected  Context getContext()
          Get the Conext.
 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, getMatchingId, getPropertyByID, getPropertyIDs, getRowCount, getSelectionModel, getTargetDisplayName, getValueAt, invalidateValueData, isCellEditable, isDataConflicting, isMatchingPropertyID, isPropertyCommon, isSettable, setLocale, setPropertyByID, setSelectionModel, startRead, stopRead
 
Methods inherited from class oracle.bali.inspector.PropertyModel
addPropertyChangeListener, addPropertyModelListener, firePropertyChanged, firePropertyModelUpdate, getActionGroups, getBooleanData, getBooleanData, getCategoryLayoutId, getColumnCount, getColumnIndex, getData, getIcon, getIconToolTip, getLocale, getPropertyCategory, getPropertyDescription, getPropertyDisplayName, getPropertyDisplayName, getPropertyDisplayValue, getPropertyEditorFactory, getPropertyEditorFactory2, getPropertyGroup, getPropertyID, getPropertyIndex, getPropertyModel, getPropertyName, getPropertyValue, isMandatory, isPropertyDrillable, isPropertyReadable, isPropertyWritable, removePropertyChangeListener, removePropertyModelListener, setCategoryLayoutId, setData, setMandatory, setPropertyValue, 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
 

Constructor Detail

IdeMultiObjectModel

public IdeMultiObjectModel()
Constructor.

Method Detail

getContext

protected Context getContext()
Get the Conext.

Returns:
a Context.

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.

Specified by:
setValueAt in interface javax.swing.table.TableModel
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.

createCommand

protected Command createCommand(java.lang.Object data,
                                int row,
                                int col)

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

E13403-03

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