|
WebObjects 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.webobjects.eocontrol.EODelayedObserver
|
+--com.webobjects.eointerface.EOAssociation
|
+--com.webobjects.eointerface.EOWidgetAssociation
|
+--com.webobjects.eointerface.EOValueAssociation
EOValueAssociation is used for associations that display a single value object in a widget, with the value usually being editable. See EOAssociation for a general description of associations.
Aspects:
EOAssociation.ValueAspect,
EOAssociation.URLAspect,
EOAssociation.EnabledAspect
| Inner Class Summary | |
static class |
EOValueAssociation.ValuePlugin
ValuePlugin communicates with a UI widget on behalf of an EOValueAssociation. |
| Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation |
EOWidgetAssociation.WidgetPlugin |
| Fields inherited from class com.webobjects.eocontrol.EODelayedObserver |
ObserverNumberOfPriorities, ObserverPriorityFifth, ObserverPriorityFirst, ObserverPriorityFourth, ObserverPriorityImmediate, ObserverPriorityLater, ObserverPrioritySecond, ObserverPrioritySixth, ObserverPriorityThird |
| Constructor Summary | |
EOValueAssociation(Object object)
Returns a new EOValueAssociation object that is not bound to any display group. |
|
| Method Summary | |
void |
bindAspect(String aspect,
EODisplayGroup displayGroup,
String key)
Defines the receiver's link between its display object and displayGroup. |
protected String |
displayValueAspect()
|
protected Object |
displayValueFromURL(String URLString)
When the Association stores a URL rather than the data the URL references, this method is used to obtain (load) the data pointed to by the URL. |
boolean |
endEditing()
This method will end editing for both the widget plugin and the Association. |
String |
primaryAspect()
This method returns the primary aspect for this value association. |
void |
subjectChanged()
Overridden by subclasses to update state when an EODisplayGroup's selections or contents change. |
boolean |
widgetDidBeginEditing()
This method is called to notify the Association that the widget entered the editing state. |
boolean |
widgetDidChange()
This method is called to notify the Association that the widget has changed data values for this association. |
boolean |
widgetDidEndEditing()
This method is called to notify the Association that the widget has no longer in an editing state. |
protected Class |
widgetPluginClass()
Returns the Class of widget plugin that this association requires for operation. |
| Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation |
canSupportValueFormatter, defaultPrefersContinuousChangeNotification, dispose, isUsableWithObject, objectKeysTaken, prefersContinuousChangeNotification, setDefaultPrefersContinuousChangeNotification, setObject, setPrefersContinuousChangeNotification, setValueFormatter, valueFormatter, widgetPlugin |
| Methods inherited from class com.webobjects.eocontrol.EODelayedObserver |
discardPendingNotification, objectWillChange, observerQueue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EOValueAssociation(Object object)
widget - the UI widget object that the association expects to use to display values| Method Detail |
public void bindAspect(String aspect,
EODisplayGroup displayGroup,
String key)
displayGroup. aspect is the name of the
aspect it observes in its display object, and key is the name of the property it observes in displayGroup.
Invoke establishConnection after this method to finish setting up the binding.bindAspect in class EOAssociationaspect - String that specifies what key of this association should be used to bind to
EnterpriseObjects valuesdisplayGroup - EODisplayGroup object to bind this association tokey - String specifying which property of the EOs in the display group
should be used when setting values for aspectprotected String displayValueAspect()
protected Object displayValueFromURL(String URLString)
URLString - the URL of some data to obtainpublic boolean endEditing()
endEditing in class EOAssociationtrue if both the widget plugin and the assocaiation were able to successfully end editing;
false otherwisepublic String primaryAspect()
primaryAspect in class EOAssociationpublic void subjectChanged()
selectionChanged and contentsChanged messages to determine
how to update the display.subjectChanged in class EOAssociationpublic boolean widgetDidBeginEditing()
true if this association 'agreed' to start editing, false otherwisepublic boolean widgetDidChange()
true if the assocaiation was able to process the values received from the widget;
false if there was an errorpublic boolean widgetDidEndEditing()
true if the assocaiation was able to successfully complete the editing state; false otherwiseprotected Class widgetPluginClass()
EOWidgetAssociationwidgetPluginClass in class EOWidgetAssociation
|
Last updated Thu Jan 10 18:10:21 PST 2002. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||