|
WebObjects 5.4.2 | ||||||||
| 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.EOTableColumnAssociation.TableColumnPlugin
com.webobjects.eointerface.swing.EOSwingTableColumnPlugin
public class EOSwingTableColumnPlugin
EOSwingTableColumnPlugin is a concrete subclass of EOTableColumnAssociation.TableColumnPlugin which is used with Swing table columns.
associations classes: EOTableColumnAssociation
widgets classes: TableColumn
| Nested Class Summary | |
|---|---|
static interface |
EOSwingTableColumnPlugin.TableColumnCustomizer
Use this interface to implement your custom TableColumnCustomizer which will be used to obtain the CellRenderer and CellEditor for this plugin's column. |
| Nested classes/interfaces inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
|---|
EOWidgetAssociation.WidgetPlugin.Formatting |
| Constructor Summary | |
|---|---|
EOSwingTableColumnPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOSwingTableColumnPlugin connected to an association and a UI widget. |
|
| Method Summary | |
|---|---|
void |
breakConnection()
Clean up (end) the plugin's connection to its TableColumn widget. |
void |
columnAdded(TableColumnModelEvent event)
Conformance to TableColumnListener API. |
int |
columnIndexInTable()
Returns the index of this plugin's column in its table. |
void |
columnMarginChanged(ChangeEvent event)
Conformance to ChangeListener API. |
void |
columnMoved(TableColumnModelEvent event)
Conformance to TableColumnListener API. |
void |
columnRemoved(TableColumnModelEvent event)
Conformance to TableColumnListener API. |
void |
columnSelectionChanged(ListSelectionEvent event)
Conformance to ListSelectionListener API. |
Object |
displayValueForValue(Object value)
Formats a data value for display (using a Format object, if available). |
boolean |
endEditing()
Called to halt editing of this widget. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
boolean |
isEditable()
Whether the TableColumn is editable |
static void |
setTableColumnCustomizer(EOSwingTableColumnPlugin.TableColumnCustomizer tableColumnCustomizer)
This method sets the TableColumnCustomizer which will be used to obtain the CellRenderer and CellEditor for this plugin's column. |
void |
setValueFormatter(Object formatter)
Set formatter as the Format for this plugin column's values |
Object |
table()
Returns the table containing the plugin's table column. |
EOTableAssociation |
tableAssociation()
Returns the table association of the table containing this plugin's column. |
static EOSwingTableColumnPlugin.TableColumnCustomizer |
tableColumnCustomizer()
Returns the TableColumnCustomizer which is used to obtain the CellRenderer and CellEditor for this plugin's column. |
Object |
valueForDisplayValue(Object displayValue)
This method performs the reverse operation of formatting, that is, it returns the data value for a displayed value by using the Format's parseObject method. |
Object |
valueFormatter()
Returns the formatter for this plugin's column |
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 plugins 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 EOSwingTableColumnPlugin(EOWidgetAssociation association,
Object widget)
association - association of class EOTableColumnAssociation or subclass for the plugin to usewidget - widget of class TableColumn or subclass that the plugin will manage| Method Detail |
|---|
public static void setTableColumnCustomizer(EOSwingTableColumnPlugin.TableColumnCustomizer tableColumnCustomizer)
establishConnection is called,
otherwise the internal defaultTableColumnCustomizer is used which returns
a EOTextColumnEditor and a DefaultTableCellRenderer. See also the documentation for
the interface TableColumnCustomizer.
tableColumnCustomizer - the TableColumnCustomizer to be used for this plugin's columnpublic static EOSwingTableColumnPlugin.TableColumnCustomizer tableColumnCustomizer()
public void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPluginEOSwingTableColumnPlugin.setTableColumnCustomizer(com.webobjects.eointerface.swing.EOSwingTableColumnPlugin.TableColumnCustomizer)public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic String[] widgetKeysTaken()
widgetKeysTaken in class EOWidgetAssociation.WidgetPluginpublic boolean isEditable()
isEditable in class EOTableColumnAssociation.TableColumnPlugincellEditor is assigned)public boolean endEditing()
cellEditor, if it exists.)
endEditing in class EOTableColumnAssociation.TableColumnPlugintrue if editing ended successfully, false if this widget
would not allow editing to end, typically because of a formatting error.public EOTableAssociation tableAssociation()
tableAssociation in class EOTableColumnAssociation.TableColumnPluginnullpublic Object table()
null.
You have to explicitly set table on the column association.
table in class EOTableColumnAssociation.TableColumnPluginnullpublic int columnIndexInTable()
columnIndexInTable in class EOTableColumnAssociation.TableColumnPluginpublic void setValueFormatter(Object formatter)
setValueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingformatter - of type Object (it is cast to type Format)public Object valueFormatter()
valueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingpublic Object displayValueForValue(Object value)
displayValueForValue in class EOTableColumnAssociation.TableColumnPluginvalue - the data value to be displayed
public Object valueForDisplayValue(Object displayValue)
parseObject method.
Note that there maybe a loss of precision or detail depending on the display value.
valueForDisplayValue in class EOTableColumnAssociation.TableColumnPlugindisplayValue - the (String) value as it was displayed and/or entered by the user
public void columnAdded(TableColumnModelEvent event)
columnAdded in interface TableColumnModelListenerevent - the TableColumnModelEvent received from the AWT event dispatcherpublic void columnRemoved(TableColumnModelEvent event)
columnRemoved in interface TableColumnModelListenerevent - the TableColumnModelEvent received from the AWT event dispatcherpublic void columnMoved(TableColumnModelEvent event)
columnMoved 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 columnSelectionChanged(ListSelectionEvent event)
columnSelectionChanged in interface TableColumnModelListenerevent - the ListSelectionEvent received from the AWT event dispatcher
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||