Inherits From:
EOAssociation : .EODelayedObserver (EOControl) : Object
Inherits From:
com.apple.client.eointerface
Class Description
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.
By far the easiest way to configure EOTableColumnAssociations is in InterfaceBuilder, 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.
EOTableColumnAssociation is for use in Java Client applications only; the equivalent Yellow Box class is EOColumnAssociation.
Usable With |
---|
com.sun.java.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. |
Constructors
public EOTableColumnAssociation
(java.lang.Object anObject)
Instance Methods
format
public java.text.Format format
()
Returns the java.lang.text.Format used to format values bound to the receiver's ValueAspect for display and editing .
isEditableAtRow
public boolean isEditableAtRow
(int row)
Returns whether or not the property bound to the receiver's 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.
primaryAspect
public java.lang.String primaryAspect
()
Returns ValueAspect.
setFormat
public void setFormat
(java.text.Format aFormat)
Sets the java.lang.text.Format object to use in formatting values bound to the receiver's ValueAspect for display and editing.
setTable
public void breakConnection
()
Because TableColumn maintains no reference to its containing JTable, the consumer must explicitly specify this relationship by invoking setTable
before establishConnection
. This method also assures that an instance of EOTableAssociation exists for table.