- Inherits from:
- EOAssociation : EODelayedObserver (EOControl) : Object
- Implements:
- javax.swing.event.ListSelectionListener
- EOObserving (EODelayedObserver)
- NSDisposable (EOAssociation)
- Package:
- com.apple.client.eointerface
An EOTableColumnAssociation associates a single attribute of all enterprise objects in its ValueAspect's EODisplayGroup with a Swing JTable TableColumn. The value of each object's attribute is displayed in its corresponding row.
Note: This class doesn't exist in the com.apple.yellow.eointerface package. |
By far the easiest way to configure EOTableColumnAssociations
is in Interface Builder, but they may also be instantiated programmatically.
Because Swing's TableColumn maintains no reference to its containing
JTable, this relationship must be explicitly specified via setTable before establishConnection
is
invoked.
Usable With |
javax.swing.table.TableColumn |
Aspects | |
BoldAspect | |
EnabledAspect | A boolean attribute of the objects, which determines whether each object's value cell is editable. Note that because EOTableViewAssociation also uses this aspect, you can use it with different keys to limit editability to the whole row or to an individual cell (column) in that row. |
ItalicAspect | |
ValueAspect | An attribute of the objects, displayed in each row of the TableColumn. |
EOTableColumnAssociation
public
EOTableColumnAssociation
(Object aDisplayObject)
You normally set up associations in Interface Builder, in which case you don't need to create them programmatically. However, if you do create them up programmatically, setting them up is a multi-step process. After creating an association, you must bind its aspects and establish its connections. Because Swing's TableColumn maintains no reference to its containing JTable, this relationship must be explicitly specified via setTable before establishConnection is invoked
See Also: bindAspect (EOAssociation)
setTableColumnCustomizer
public static void
setTableColumnCustomizer
(TableColumnCustomizer tableColumnCustomizer)
tableColumnCustomizer
public static TableColumnCustomizer
tableColumnCustomizer
()
public java.text.Format
format
()
ValueAspect
for
display and editing.public boolean
isEditableAtRow
(int row)
ValueAspect
is
editable at row, as determined by
the EnabledAspect. If this aspect is bound,
a non-zero value at row indicates
that the property may be edited. If the EnabledAspect
is
unbound all rows are considered editable.public String
primaryAspect
()
ValueAspect
. public void
setFormat
(java.text.Format aFormat)
ValueAspect
for display
and editing.public void
breakConnection
()
setTable
before establishConnection
.
This method also assures that an instance of EOTableAssociation
exists for table.