PATH |
- Inherits from:
- EOTableAssociation.TablePlugin (EOInterface) : EOWidgetAssociation.WidgetPlugin (EOInterface) : Object
- Implements:
- NSDisposable
- Package:
- com.webobjects.eointerface.cocoa
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. |
- NSDisposable
- dispose
- All methods
- EOCocoaTableViewPlugin
- associationForColumnAtIndex
- breakConnection
- editingColumnIndex
- editingRowIndex
- establishConnection
- existingTableAssociation
- numberOfColumns
- selectionIndexes
- tableColumnAssociationForColumnAtIndex
- updateSelectionIndexes
- updateTableContents
- valueChanged
- widgetKeysTaken
public EOCocoaTableViewPlugin( com.webobjects.eointerface.EOWidgetAssociation anEOWidgetAssociation, Object anObject)
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)
public com.webobjects.eointerface.EOTableColumnAssociation associationForColumnAtIndex(int index)
public void breakConnection()
public void dispose()
public int editingColumnIndex()
public int editingRowIndex()
public void establishConnection()
public com.webobjects.eointerface.EOTableAssociation existingTableAssociation()
public int numberOfColumns()
public int[] selectionIndexes()
public com.webobjects.eointerface.EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
public void updateSelectionIndexes(int[] selectedRowIndexes)
public void updateTableContents(int numberOfRows)
public void valueChanged()
public String[] widgetKeysTaken()
© 2001 Apple Computer, Inc. (Last Published April 21, 2001)