PATH Documentation > WebObjects

Table of Contents

EOTableColumnAssociation


Inherits from:
EOWidgetAssociation : EOAssociation : EODelayedObserver (EOControl) : Object
Implements:
NSDisposable
EOObserving (EOControl)
Package:
com.webobjects.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 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 Description forthcoming.
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 Description forthcoming.
ValueAspect An attribute of the objects, displayed in each row of the TableColumn.




Interfaces Implemented


NSDisposable
dispose
EOObserving


Method Types


All methods
EOTableColumnAssociation
boldStateAtRow
endEditing
isEditableAtRow
italicStateAtRow
primaryAspect
setObject
setSortingSelector
setTable
setValueAtRow
sortingSelector
table
textColorAtRow
valueAtRow
widgetDidBeginEditing
widgetDidEndEditing
widgetPluginClass


Constructors



EOTableColumnAssociation

public EOTableColumnAssociation(Object anObject)

Description forthcoming.

public EOTableColumnAssociation( Object object, Object table)

Description forthcoming.


Instance Methods



boldStateAtRow

public int boldStateAtRow(int rowIndex)

Description forthcoming.

dispose

public void dispose()

See the method description in the documentation for NSDisposable.

endEditing

public boolean endEditing()

Description forthcoming.

isEditableAtRow

public boolean isEditableAtRow(int rowIndex)

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.

italicStateAtRow

public int italicStateAtRow(int rowIndex)

Description forthcoming.

primaryAspect

public String primaryAspect()

Returns EOAssociation.ValueAspect.

setObject

public void setObject(Object anObject)

Description forthcoming.

setSortingSelector

public void setSortingSelector(NSSelector selector)

Description forthcoming.

setTable

public void setTable(Object table)

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.

setValueAtRow

public boolean setValueAtRow( Object value, int rowIndex)

Description forthcoming.

sortingSelector

public NSSelector sortingSelector()

Description forthcoming.

table

public Object table()

Description forthcoming.

textColorAtRow

public Object textColorAtRow(int rowIndex)

Description forthcoming.

valueAtRow

public Object valueAtRow(int rowIndex)

Description forthcoming.

widgetDidBeginEditing

public boolean widgetDidBeginEditing()

Description forthcoming.

widgetDidEndEditing

public boolean widgetDidEndEditing()

Description forthcoming.

widgetPluginClass

protected Class widgetPluginClass()

Description forthcoming.

© 2001 Apple Computer, Inc. (Last Published April 21, 2001)


Table of Contents