Documentation Archive Developer
Search
PATH Documentation > WebObjects

Table of Contents

EOCocoaTableViewPlugin


Inherits from:
EOTableAssociation.TablePlugin (EOInterface) : EOWidgetAssociation.WidgetPlugin (EOInterface) : Object
Implements:
NSDisposable
Package:
com.webobjects.eointerface.cocoa


Class Description


An EOCocoaTableViewPlugin object manages the individual EOColumnAssociations between an NSTableView and an EODisplayGroup.

An EOCocoaTableViewPlugin can sort the objects in the display group by the left-to-right order of the table columns. The first EOColumnAssociation to be bound to a table view automatically creates the EOCocoaTableViewPlugin; you should rarely need to do so yourself.

An EOCocoaTableViewPlugin receives data source and delegate messages from the table view, some of which it handles itself, and some of which it forwards to the appropriate EOColumnAssociations. For more information, see the EOColumnAssociation class specification.


Usable With
NSTableView (com.apple.cocoa.application.NSTableView).


Aspects
source Bound to the EODisplayGroup providing objects. This aspect doesn't use a key.
enabled A boolean attribute of the objects, which determines whether each object's row is editable. Note that because EOColumnAssociation 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.
textColor An NSColor attribute of the objects, which determines the color of text for each object's row in the NSTableView.
bold A boolean attribute of the objects, which determines whether each objects row is displayed in bold or regular weight text.
italic A boolean attribute of the objects, which determines whether each objects row is displayed in italic or normal angle text.


Object Keys Taken
dataSource An EOTableViewAssociation responds to some data source messages and forwards others to the appropriate EOColumnAssociation.
delegate An EOTableViewAssociation forwards delegate messages to the appropriate EOColumnAssociations.
target Reserved, but not used.




Interfaces Implemented


NSDisposable
dispose


Method Types


All methods
EOCocoaTableViewPlugin
associationForColumnAtIndex
breakConnection
editingColumnIndex
editingRowIndex
establishConnection
existingTableAssociation
numberOfColumns
selectionIndexes
tableColumnAssociationForColumnAtIndex
updateSelectionIndexes
updateTableContents
valueChanged
widgetKeysTaken


Constructors



EOCocoaTableViewPlugin

public EOCocoaTableViewPlugin( com.webobjects.eointerface.EOWidgetAssociation anEOWidgetAssociation, Object anObject)

Creates a new EOCocoaTableViewPlugin to manage EOColumnAssociations associated with aDisplayObject, an NSTableView.

You normally set up associations with the Interface Builder application, 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.

See Also: bindAspect (EOAssociation), establishConnection (EOAssociation)




Instance Methods



associationForColumnAtIndex

public com.webobjects.eointerface.EOTableColumnAssociation associationForColumnAtIndex(int index)

Description forthcoming.

breakConnection

public void breakConnection()

See the breakConnection method description in the superclass EOAssociation.

dispose

public void dispose()

See the description in the documentation for NSDisposable.

editingColumnIndex

public int editingColumnIndex()

Description forthcoming.

editingRowIndex

public int editingRowIndex()

Description forthcoming.

establishConnection

public void establishConnection()

See the establishConnection method description in the superclass (EOAssociation).

existingTableAssociation

public com.webobjects.eointerface.EOTableAssociation existingTableAssociation()

Description forthcoming.

numberOfColumns

public int numberOfColumns()

Description forthcoming.

selectionIndexes

public int[] selectionIndexes()

Description forthcoming.

tableColumnAssociationForColumnAtIndex

public com.webobjects.eointerface.EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)

Description forthcoming.

updateSelectionIndexes

public void updateSelectionIndexes(int[] selectedRowIndexes)

Description forthcoming.

updateTableContents

public void updateTableContents(int numberOfRows)

Description forthcoming.

valueChanged

public void valueChanged()

Description forthcoming.

widgetKeysTaken

public String[] widgetKeysTaken()

Description forthcoming.

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


Table of Contents