PATH |
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)
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)
breakConnection
public void breakConnection()
dispose
public void dispose()
editingColumnIndex
public int editingColumnIndex()
editingRowIndex
public int editingRowIndex()
establishConnection
public void establishConnection()
existingTableAssociation
public com.webobjects.eointerface.EOTableAssociation existingTableAssociation()
numberOfColumns
public int numberOfColumns()
selectionIndexes
public int[] selectionIndexes()
tableColumnAssociationForColumnAtIndex
public com.webobjects.eointerface.EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
updateSelectionIndexes
public void updateSelectionIndexes(int[] selectedRowIndexes)
updateTableContents
public void updateTableContents(int numberOfRows)
valueChanged
public void valueChanged()
widgetKeysTaken
public String[] widgetKeysTaken()
© 2001 Apple Computer, Inc. (Last Published April 21, 2001)