|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin | +--com.webobjects.eointerface.EOTableColumnAssociation.TableColumnPlugin | +--com.webobjects.eointerface.cocoa.EOCocoaTableColumnPlugin
EOCocoaTableColumnPlugin is used in Cocoa applications to connect NSTableColumns to table column associations. This plugin coordinates updating and getting values from the NSCells of its table column, as well as reporting which cells are selected.
Usage:
Association classes: EOTableColumnAssociation
Widget classes: NSTableColumn
Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
Constructor Summary | |
EOCocoaTableColumnPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOCocoaTableColumnPlugin for use with association and widget . |
Method Summary | |
void |
breakConnection()
Tells the plugin to halt communication with its NSTableColumn object. |
int |
columnIndexInTable()
Gets the positional index of the plugin's column. |
boolean |
controlDidFailToFormatStringErrorDescription(com.webobjects.eointerface.cocoa.NSControl control,
String string,
String error)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
boolean |
controlIsValidObject(com.webobjects.eointerface.cocoa.NSControl control,
Object object)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
void |
controlTextDidChange(com.webobjects.eointerface.cocoa.NSNotification notification)
See the description of this method in com.apple.cocoa.NSControl.Notifications . |
boolean |
controlTextShouldBeginEditing(com.webobjects.eointerface.cocoa.NSControl control,
com.webobjects.eointerface.cocoa.NSText fieldEditor)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
boolean |
controlTextShouldEndEditing(com.webobjects.eointerface.cocoa.NSControl control,
com.webobjects.eointerface.cocoa.NSText fieldEditor)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
Object |
displayValueForValue(Object value)
Returns the display value to set in the interface, given a data value from a data source. |
boolean |
endEditing()
Asks the plugin to halt editing of its widget in the UI. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
boolean |
isEditable()
Asks the plugin if the widget it manages supports the concept of editing. |
boolean |
saveEdits(Object value)
Saves value to this plugin's association for the
object displayed in the edited row. |
void |
setValueFormatter(Object formatter)
Sets the formatter used to format values in the interface. |
Object |
table()
Gets the NSTableView object that contains this plugin's NSTableColumn object. |
EOTableAssociation |
tableAssociation()
Gets the EOTableAssociation object that manages the table that contains this plugin's NSTableColumn. |
Object |
tableViewObjectValueForLocation(com.webobjects.eointerface.cocoa.NSTableView view,
com.webobjects.eointerface.cocoa.NSTableColumn column,
int index)
See the description of this method in com.apple.cocoa.application.NSTableView.DataSource . |
void |
tableViewSetObjectValueForLocation(com.webobjects.eointerface.cocoa.NSTableView view,
Object object,
com.webobjects.eointerface.cocoa.NSTableColumn column,
int rowIndex)
See the description of this method in com.apple.cocoa.application.NSTableView.DataSource . |
void |
tableViewWillDisplayCell(com.webobjects.eointerface.cocoa.NSTableView view,
Object cell,
com.webobjects.eointerface.cocoa.NSTableColumn column,
int rowIndex)
See the description of this method in com.apple.cocoa.application.NSTableView.Delegate . |
Object |
valueForDisplayValue(Object displayValue)
Returns the data value to set in the association, given a display value from the interface. |
Object |
valueFormatter()
Gets the formatter used to format values in the interface. |
String[] |
widgetKeysTaken()
Returns an array of Strings which 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 EOCocoaTableColumnPlugin(EOWidgetAssociation association, Object widget)
association
and widget
.association
- EOTableColumnAssociation for this plugin to communicate withwidget
- the NSTableColumn object for this plugin to manageMethod Detail |
public void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public int columnIndexInTable()
columnIndexInTable
in class EOTableColumnAssociation.TableColumnPlugin
public boolean controlDidFailToFormatStringErrorDescription(com.webobjects.eointerface.cocoa.NSControl control, String string, String error)
com.apple.cocoa.NSControl.Delegate
.public boolean controlIsValidObject(com.webobjects.eointerface.cocoa.NSControl control, Object object)
com.apple.cocoa.NSControl.Delegate
.public void controlTextDidChange(com.webobjects.eointerface.cocoa.NSNotification notification)
com.apple.cocoa.NSControl.Notifications
.public boolean controlTextShouldBeginEditing(com.webobjects.eointerface.cocoa.NSControl control, com.webobjects.eointerface.cocoa.NSText fieldEditor)
com.apple.cocoa.NSControl.Delegate
.public boolean controlTextShouldEndEditing(com.webobjects.eointerface.cocoa.NSControl control, com.webobjects.eointerface.cocoa.NSText fieldEditor)
com.apple.cocoa.NSControl.Delegate
.public Object displayValueForValue(Object value)
com.apple.cocoa.foundation.NSGregorianDate
for any instance of value
that is a com.webobjects.foundation.NSTimestamp
.
You should call the super
implementation of this method in your subclass's
implementation.displayValueForValue
in class EOTableColumnAssociation.TableColumnPlugin
dataValue
- value to use in generating a value suitable for
use in the displaypublic boolean endEditing()
endEditing
in class EOTableColumnAssociation.TableColumnPlugin
true
if editing ended successfully, false
if the widget
would not allow editing to end, typically because of a formatting errorpublic void establishConnection()
establishConnection
in class EOWidgetAssociation.WidgetPlugin
public boolean isEditable()
isEditable
in class EOTableColumnAssociation.TableColumnPlugin
true
public boolean saveEdits(Object value)
value
to this plugin's association for the
object displayed in the edited row. Returns a boolean value indicating
whether or not the new value was successfully set in the plugin's association.value
- an object to set on the table column's selected enterprise objectfalse
if setting the value in the association failed;
true
if the operation succeeded, or if there were no edits to savepublic void setValueFormatter(Object formatter)
setValueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
formatter
- NSFormatter used to format values in the interfacepublic Object table()
table
in class EOTableColumnAssociation.TableColumnPlugin
public EOTableAssociation tableAssociation()
tableAssociation
in class EOTableColumnAssociation.TableColumnPlugin
public Object tableViewObjectValueForLocation(com.webobjects.eointerface.cocoa.NSTableView view, com.webobjects.eointerface.cocoa.NSTableColumn column, int index)
com.apple.cocoa.application.NSTableView.DataSource
.public void tableViewSetObjectValueForLocation(com.webobjects.eointerface.cocoa.NSTableView view, Object object, com.webobjects.eointerface.cocoa.NSTableColumn column, int rowIndex)
com.apple.cocoa.application.NSTableView.DataSource
.public void tableViewWillDisplayCell(com.webobjects.eointerface.cocoa.NSTableView view, Object cell, com.webobjects.eointerface.cocoa.NSTableColumn column, int rowIndex)
com.apple.cocoa.application.NSTableView.Delegate
.public Object valueForDisplayValue(Object displayValue)
By default, this method returns a com.webobjects.foundation.NSTimestamp
for any instance of displayValue
that is a com.apple.cocoa.foundation.NSGregorianDate
You should call the super implementation of this method in your subclass's
implementation.
valueForDisplayValue
in class EOTableColumnAssociation.TableColumnPlugin
displayValue
- value to use in generating a value suitable for
setting in the associationpublic Object valueFormatter()
valueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
public String[] widgetKeysTaken()
EOCocoaImageViewPlugin takes over the outlet with key "identifier".
widgetKeysTaken
in class EOWidgetAssociation.WidgetPlugin
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |