|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin com.webobjects.eointerface.EOTableAssociation.TablePlugin com.webobjects.eointerface.cocoa.EOCocoaTableViewPlugin
EOCocoaTableViewPlugin is used in Cocoa applications to connect NStableViews to table associations. This plugin coordinates updating and getting values from the NSTableColumns of its table view, as well as reporting which cells are selected.
Usage:
Association classes: EOTableAssociation
Widget classes: NSTableView
Nested Class Summary |
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
Constructor Summary | |
EOCocoaTableViewPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOCocoaTableViewPlugin for use with association and widget . |
Method Summary | |
EOTableColumnAssociation |
associationForColumnAtIndex(int columnIndex)
Deprecated. in the Java EOInterface Cocoa Framework. Don't use this method. |
void |
breakConnection()
Tells the plugin to halt communication with its NSTableView object. |
int |
editingColumnIndex()
Returns the index of the column currently being edited. |
int |
editingRowIndex()
Returns the index of the row currently being edited |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
EOTableAssociation |
existingTableAssociation()
Returns the table association for this plugin. |
int |
numberOfColumns()
Returns the number of columns displayed in the plugin's table view. |
int[] |
selectionIndexes()
Returns the selected rows of the plugin's table as an array of indexes. |
EOTableColumnAssociation |
tableColumnAssociationForColumnAtIndex(int columnIndex)
Returns the EOTableColumnAssociation that manages the NSTableColumn at index columnIndex in the plugin's NSTableView. |
void |
updateSelectionIndexes(int[] selectedRowIndexes)
Selects the rows at indexes selectedRowIndexes in the plugin's table view. |
void |
updateTableContents(int numberOfRows)
Forces the plugin to update the contents of its table view. |
String[] |
widgetKeysTaken()
Returns an array of Strings that represent outlet names in Interface Builder. |
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
association, dispose, unacceptableAspects, widget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EOCocoaTableViewPlugin(EOWidgetAssociation association, Object widget)
association
and widget
.
association
- EOTableAssociation for this plugin to communicate withwidget
- the NSTableView object for this plugin to manageMethod Detail |
public EOTableColumnAssociation associationForColumnAtIndex(int columnIndex)
columnIndex
in this plugin's table view.
columnIndex
- index of table column in the plugin's
table view; 0 is the first column on the left
columnIndex
in this plugin's NSTableViewpublic void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public int editingColumnIndex()
editingColumnIndex
in class EOTableAssociation.TablePlugin
public int editingRowIndex()
editingRowIndex
in class EOTableAssociation.TablePlugin
public void establishConnection()
establishConnection
in class EOWidgetAssociation.WidgetPlugin
public EOTableAssociation existingTableAssociation()
establishConnection
without its table association being connected,
an EOTableAssociation is automatically created and set in the table column
association.
existingTableAssociation
in class EOTableAssociation.TablePlugin
columnIndex
in this plugin's NSTableViewpublic int numberOfColumns()
numberOfColumns
in class EOTableAssociation.TablePlugin
public int[] selectionIndexes()
selectionIndexes
in class EOTableAssociation.TablePlugin
public EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
columnIndex
in the plugin's NSTableView.
tableColumnAssociationForColumnAtIndex
in class EOTableAssociation.TablePlugin
columnIndex
- index of table column in the plugin's
table view; 0 is the first column on the left
columnIndex
public void updateSelectionIndexes(int[] selectedRowIndexes)
selectedRowIndexes
in the plugin's table view.
Any previous selection is forgotten.
updateSelectionIndexes
in class EOTableAssociation.TablePlugin
selectedRowIndexes
- array of row indexes to selectpublic void updateTableContents(int numberOfRows)
updateTableContents
in class EOTableAssociation.TablePlugin
numberOfRows
- ignoredpublic String[] widgetKeysTaken()
EOCocoaTableViewPlugin takes over outlets with keys "delegate" and "dataSource."
widgetKeysTaken
in class EOWidgetAssociation.WidgetPlugin
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |