|
WebObjects 5.2.3 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
com.webobjects.eointerface.EOTableAssociation.TablePlugin
com.webobjects.eointerface.swing.EOSwingTablePlugin
EOSwingTablePlugin is a concrete subclass of EOTableAssociation.TablePlugin which is used with Swing tables.
associations classes: EOTableAssociation
widgets classes: EOTable, JTable (an EOTable contains a JTable inside)
| Nested Class Summary |
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
| Constructor Summary | |
EOSwingTablePlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOSwingTablePlugin connected to an association and a UI widget. |
|
| Method Summary | |
void |
breakConnection()
Cleans up (ends) the plugin's connection to its TableColumn widget, removing the listeners and resetting the TableModel to an instance of DefaultTableModel. |
void |
columnAdded(TableColumnModelEvent event)
Conformance to ColumnModelListener. |
void |
columnMarginChanged(ChangeEvent event)
Conformance to ColumnModelListener. |
void |
columnMoved(TableColumnModelEvent event)
Conformance to ColumnModelListener. |
void |
columnRemoved(TableColumnModelEvent event)
Conformance to ColumnModelListener. |
void |
columnSelectionChanged(ListSelectionEvent event)
Conformance to ListSelectionListener. |
int |
editingColumnIndex()
Returns the column being edited. |
int |
editingRowIndex()
Returns the index of the row being edited |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
EOTableAssociation |
existingTableAssociation()
Returns the EOTableAssociation for this plugin's table. |
int |
numberOfColumns()
Returns the table's number of columns. |
int[] |
selectionIndexes()
Returns an array with the indexes of the selected rows. |
EOTableColumnAssociation |
tableColumnAssociationForColumnAtIndex(int columnIndex)
Returns the EOTableColumnAssociation for the column at the specified index. |
void |
updateSelectionIndexes(int[] selectedRowIndexes)
This method notifies the table plugin that the table's selection has changed It is called internally by the EOTableAssociation. |
void |
updateTableContents(int numberOfRows)
This method notifies the table plugin that the table's data has changed. |
void |
valueChanged(ListSelectionEvent event)
Conforming to ListSelectionListener API. |
String[] |
widgetKeysTaken()
Returns an array of Strings which represent outlet names in Interface Builder These outlets are disabled by Interface Builder once the TableColumn is connected to this plugin's association. |
| 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 EOSwingTablePlugin(EOWidgetAssociation association,
Object widget)
association - association of class EOTableColumnAssociation or subclass for the plugin to usewidget - widget of class EOTable or JTable or subclass that the plugin will manage| Method Detail |
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic void columnAdded(TableColumnModelEvent event)
tableDidChangeColumns on the plugin's EOTableAssociation.
columnAdded in interface TableColumnModelListenerevent - the TableColumnModelEvent received from the AWT event dispatcherpublic void columnMarginChanged(ChangeEvent event)
columnMarginChanged in interface TableColumnModelListenerevent - the ChangeEvent received from the AWT event dispatcherpublic void columnMoved(TableColumnModelEvent event)
tableDidChangeColumns on the plugin's EOTableAssociation.
columnMoved in interface TableColumnModelListenerevent - the TableColumnModelEvent received from the AWT event dispatcherpublic void columnRemoved(TableColumnModelEvent event)
tableDidChangeColumns on the plugin's EOTableAssociation.
columnRemoved in interface TableColumnModelListenerevent - the TableColumnModelEvent received from the AWT event dispatcherpublic void columnSelectionChanged(ListSelectionEvent event)
columnSelectionChanged in interface TableColumnModelListenerevent - the ListSelectionEvent received from the AWT event dispatcherpublic int editingColumnIndex()
editingColumnIndex in class EOTableAssociation.TablePluginpublic int editingRowIndex()
editingRowIndex in class EOTableAssociation.TablePluginpublic void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPluginpublic EOTableAssociation existingTableAssociation()
existingTableAssociation in class EOTableAssociation.TablePluginpublic int numberOfColumns()
numberOfColumns in class EOTableAssociation.TablePluginpublic int[] selectionIndexes()
selectionIndexes in class EOTableAssociation.TablePluginpublic EOTableColumnAssociation tableColumnAssociationForColumnAtIndex(int columnIndex)
tableColumnAssociationForColumnAtIndex in class EOTableAssociation.TablePlugincolumnIndex - the index of the column of interest
public void updateSelectionIndexes(int[] selectedRowIndexes)
updateSelectionIndexes in class EOTableAssociation.TablePluginselectedRowIndexes - an array (of type int[]) with as many elements as
there are rows selected (allowing multiple rows selected);
each element is an index of one of the selected rows;
to de-select all rows, use an array of length 0public void updateTableContents(int numberOfRows)
updateTableContents in class EOTableAssociation.TablePluginnumberOfRows - this parameter is currently ignoredpublic void valueChanged(ListSelectionEvent event)
tableDidChangeSelection method.
valueChanged in interface ListSelectionListenerevent - the Event sent by the SelectionModelpublic String[] widgetKeysTaken()
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 | ||||||||||