| 
 | 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.EOValueSelectionAssociation.ValueSelectionPlugin
com.webobjects.eointerface.cocoa.EOCocoaComboBoxPlugin
EOCocoaComboBoxPlugin is used in Cocoa applications to connect combo boxes
 to value selection associations. This plugin handles setting
 the list of items in the combo box on behalf of its association
 and handles reporting the selection index to its association.
 You can populate the combo box list by hand in Interface Builder. In that case, do
 not bind the titles aspect of this plugin's association.
 When the user changes the selection of the combo box in the interface, 
 this plugin invokes its association's widgetSelectionDidChange method.
 
Object Keys Taken: target, action
When the user chooses an item in the display object, the EOValueSelectionAssociation updates the selected object's property with the item's title, tag, or object.
Usage:
 Association classes: EOValueSelectionAssociation
 Widget classes: NSComboBox
| Nested Class Summary | 
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin | 
| EOWidgetAssociation.WidgetPlugin.Formatting | 
| Field Summary | 
| Fields inherited from class com.webobjects.eointerface.EOValueSelectionAssociation.ValueSelectionPlugin | 
| NoSelection | 
| Constructor Summary | |
| EOCocoaComboBoxPlugin(EOWidgetAssociation association,
                      Object widget)Creates a new EOCocoaComboBoxPlugin for use with association and widget. | |
| Method Summary | |
|  void | breakConnection()Tells the plugin to halt communication with its NSComboBox object. | 
|  void | establishConnection()Establishes a connection between the plugin and its UI widget. | 
|  int | selectionIndex() | 
|  void | setSelectionIndex(int selectionIndex,
                  boolean enabled)Selects the item at selectionIndexin this plugin's
 comboBox list. | 
|  void | setTitlesFromObjects(Object[] objects)Sets the combo box list to the items of objects. | 
|  void | setValueFormatter(Object formatter)Sets the formatter used to format values in the interface. | 
|  String[] | titles()Returns a String array of titles that the plugin's widget currently displays Only invoked if EOAssociation.SelectedTitleAspectbound. | 
|  Object | valueFormatter()Returns the formatter object of the receiver. | 
|  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 EOCocoaComboBoxPlugin(EOWidgetAssociation association,
                             Object widget)
association - EOValueSelectionAssociation for this plugin to communicate withwidget - the NSComboBox object for this plugin to manage| Method Detail | 
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPluginpublic int selectionIndex()
selectionIndex in class EOValueSelectionAssociation.ValueSelectionPlugin
public void setSelectionIndex(int selectionIndex,
                              boolean enabled)
selectionIndex in this plugin's
 comboBox list.
setSelectionIndex in class EOValueSelectionAssociation.ValueSelectionPluginselectionIndex - index of the item to select in
                       this plugin's combo box listenabled - if true, the combo box is enabled in the interface;
                       if false, the combo box is disabled and the user
                       cannot change the combo box's selected item.public void setTitlesFromObjects(Object[] objects)
objects.
 This method is only invoked if EOAssociation.TitlesAspect bound
 in the plugin's association.
setTitlesFromObjects in class EOValueSelectionAssociation.ValueSelectionPluginobjects - array of objects to use to populate the
                    list of items in the plugin's combo boxpublic void setValueFormatter(Object formatter)
setValueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingformatter - NSFormatter used to format values in the interfacepublic String[] titles()
EOValueSelectionAssociation.ValueSelectionPluginEOAssociation.SelectedTitleAspect bound. Even if titles are
 derived from setTitlesFromObjects, returns the actual strings displayed
titles in class EOValueSelectionAssociation.ValueSelectionPluginpublic Object valueFormatter()
EOWidgetAssociation.WidgetPlugin.Formatting
valueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingpublic String[] widgetKeysTaken()
EOCocoaComboBoxPlugin takes over outlets with keys "delegate" and "dataSource".
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 | ||||||||||