|
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.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
Nested Class Summary |
Nested 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.apple.cocoa.application.NSControl control,
String string,
String error)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
boolean |
controlIsValidObject(com.apple.cocoa.application.NSControl control,
Object object)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
void |
controlTextDidChange(com.apple.cocoa.foundation.NSNotification notification)
See the description of this method in com.apple.cocoa.NSControl.Notifications . |
boolean |
controlTextShouldBeginEditing(com.apple.cocoa.application.NSControl control,
com.apple.cocoa.application.NSText fieldEditor)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
boolean |
controlTextShouldEndEditing(com.apple.cocoa.application.NSControl control,
com.apple.cocoa.application.NSText fieldEditor)
See the description of this method in com.apple.cocoa.NSControl.Delegate . |
Object |
displayValueForValue(Object dataValue)
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.apple.cocoa.application.NSTableView view,
com.apple.cocoa.application.NSTableColumn column,
int index)
See the description of this method in com.apple.cocoa.application.NSTableView.DataSource . |
void |
tableViewSetObjectValueForLocation(com.apple.cocoa.application.NSTableView view,
Object object,
com.apple.cocoa.application.NSTableColumn column,
int rowIndex)
See the description of this method in com.apple.cocoa.application.NSTableView.DataSource . |
void |
tableViewWillDisplayCell(com.apple.cocoa.application.NSTableView view,
Object cell,
com.apple.cocoa.application.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.apple.cocoa.application.NSControl control, String string, String error)
com.apple.cocoa.NSControl.Delegate
.
public boolean controlIsValidObject(com.apple.cocoa.application.NSControl control, Object object)
com.apple.cocoa.NSControl.Delegate
.
public void controlTextDidChange(com.apple.cocoa.foundation.NSNotification notification)
com.apple.cocoa.NSControl.Notifications
.
public boolean controlTextShouldBeginEditing(com.apple.cocoa.application.NSControl control, com.apple.cocoa.application.NSText fieldEditor)
com.apple.cocoa.NSControl.Delegate
.
public boolean controlTextShouldEndEditing(com.apple.cocoa.application.NSControl control, com.apple.cocoa.application.NSText fieldEditor)
com.apple.cocoa.NSControl.Delegate
.
public Object displayValueForValue(Object dataValue)
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 display
public 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 object
false
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.apple.cocoa.application.NSTableView view, com.apple.cocoa.application.NSTableColumn column, int index)
com.apple.cocoa.application.NSTableView.DataSource
.
public void tableViewSetObjectValueForLocation(com.apple.cocoa.application.NSTableView view, Object object, com.apple.cocoa.application.NSTableColumn column, int rowIndex)
com.apple.cocoa.application.NSTableView.DataSource
.
public void tableViewWillDisplayCell(com.apple.cocoa.application.NSTableView view, Object cell, com.apple.cocoa.application.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 association
public 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 Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |