|
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.EOTableColumnAssociation.TableColumnPlugin com.webobjects.eointerface.swing.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 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 manageMethod Detail |
public void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public void columnAdded(TableColumnModelEvent event)
columnAdded
in interface TableColumnModelListener
event
- the TableColumnModelEvent received from the AWT event dispatcherpublic int columnIndexInTable()
columnIndexInTable
in class EOTableColumnAssociation.TableColumnPlugin
public void columnMarginChanged(ChangeEvent event)
columnMarginChanged
in interface TableColumnModelListener
event
- the ChangeEvent received from the AWT event dispatcherpublic void columnMoved(TableColumnModelEvent event)
columnMoved
in interface TableColumnModelListener
event
- the TableColumnModelEvent received from the AWT event dispatcherpublic void columnRemoved(TableColumnModelEvent event)
columnRemoved
in interface TableColumnModelListener
event
- the TableColumnModelEvent received from the AWT event dispatcherpublic void columnSelectionChanged(ListSelectionEvent event)
columnSelectionChanged
in interface TableColumnModelListener
event
- the ListSelectionEvent received from the AWT event dispatcherpublic Object displayValueForValue(Object value)
displayValueForValue
in class EOTableColumnAssociation.TableColumnPlugin
value
- the data value to be displayed
public boolean endEditing()
cellEditor
, if it exists.)
endEditing
in class EOTableColumnAssociation.TableColumnPlugin
true
if editing ended successfully, false
if this widget
would not allow editing to end, typically because of a formatting error.public void establishConnection()
establishConnection
in class EOWidgetAssociation.WidgetPlugin
setTableColumnCustomizer(com.webobjects.eointerface.swing.EOSwingTableColumnPlugin.TableColumnCustomizer)
public boolean isEditable()
isEditable
in class EOTableColumnAssociation.TableColumnPlugin
cellEditor
is assigned)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 void setValueFormatter(Object formatter)
setValueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
formatter
- of type Object (it is cast to type Format)public Object table()
null
.
You have to explicitly set table on the column association.
table
in class EOTableColumnAssociation.TableColumnPlugin
null
public EOTableAssociation tableAssociation()
tableAssociation
in class EOTableColumnAssociation.TableColumnPlugin
null
public static EOSwingTableColumnPlugin.TableColumnCustomizer tableColumnCustomizer()
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.TableColumnPlugin
displayValue
- the (String) value as it was displayed and/or entered by the user
public Object valueFormatter()
valueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
public 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 |