WebObjects 5.2.3

com.webobjects.eointerface
Class EOTableAssociation.TablePlugin

java.lang.Object
  extended bycom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
      extended bycom.webobjects.eointerface.EOTableAssociation.TablePlugin
All Implemented Interfaces:
NSDisposable
Direct Known Subclasses:
EOCocoaTableViewPlugin, EOSwingTablePlugin
Enclosing class:
EOTableAssociation

public abstract static class EOTableAssociation.TablePlugin
extends EOWidgetAssociation.WidgetPlugin

TablePlugin communicates with a UI widget (NSTableView, JTable or EOTable, for example) on behalf of an EOTableAssociation. The TablePlugin class defines some basic functionality concrete subclasses must implement for this communication to work.


Nested Class Summary
 
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
EOWidgetAssociation.WidgetPlugin.Formatting
 
Constructor Summary
EOTableAssociation.TablePlugin(EOWidgetAssociation association, Object widget)
          Subclasses should override this constructor to do any initialization they need to, but should call the super(association, widget) constructor.
 
Method Summary
abstract  int editingColumnIndex()
          Asks the plugin of the table view for the column currently being edited.
abstract  int editingRowIndex()
          Asks the plugin of the table view for the row currently being edited.
abstract  EOTableAssociation existingTableAssociation()
          Asks the plugin of the table view for an already existing table association.
abstract  int numberOfColumns()
          Asks the plugin of the table view for the number of columns in the table.
abstract  int[] selectionIndexes()
          Asks the plugin of the table view for the selected rows.
abstract  EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
          Asks the plugin of the table view for the column association at a specific index.
abstract  void updateSelectionIndexes(int[] selectedRowIndexes)
          Calls the plugin to update the table view for a changed selection.
abstract  void updateTableContents(int numberOfRows)
          Calls the plugin to update the contents of its table view.
 
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
association, breakConnection, dispose, establishConnection, unacceptableAspects, widget, widgetKeysTaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOTableAssociation.TablePlugin

public EOTableAssociation.TablePlugin(EOWidgetAssociation association,
                                      Object widget)
Subclasses should override this constructor to do any initialization they need to, but should call the super(association, widget) constructor.

Parameters:
association - EOTableAssociation object for which the plugin will handle setting and getting values on the UI widget
widget - the UI object that the plugin will use for display
Method Detail

editingColumnIndex

public abstract int editingColumnIndex()
Asks the plugin of the table view for the column currently being edited.

Returns:
the index of the currently edited column, -1 if not editing

editingRowIndex

public abstract int editingRowIndex()
Asks the plugin of the table view for the row currently being edited.

Returns:
the index of the currently edited row, -1 if not editing

existingTableAssociation

public abstract EOTableAssociation existingTableAssociation()
Asks the plugin of the table view for an already existing table association.

Returns:
the table association (if existing, otherwise null)

numberOfColumns

public abstract int numberOfColumns()
Asks the plugin of the table view for the number of columns in the table.

Returns:
the number of columns

selectionIndexes

public abstract int[] selectionIndexes()
Asks the plugin of the table view for the selected rows.

Returns:
an array with the indexes of the currently selected rows

tableColumnAssociationForColumnAtIndex

public abstract EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
Asks the plugin of the table view for the column association at a specific index.

Parameters:
columnIndex - the index of the column of interest
Returns:
the association for the column at this index

updateSelectionIndexes

public abstract void updateSelectionIndexes(int[] selectedRowIndexes)
Calls the plugin to update the table view for a changed selection.

Parameters:
selectedRowIndexes - an array with the indexes of the now selected rows

updateTableContents

public abstract void updateTableContents(int numberOfRows)
Calls the plugin to update the contents of its table view.

Parameters:
numberOfRows - the number of rows displayed in the table

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.