|
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.EOValueAssociation.ValuePlugin
com.webobjects.eointerface.EOTextAssociation.TextPlugin
com.webobjects.eointerface.cocoa.EOCocoaSimpleTextPlugin
EOCocoaSimpleTextPlugin is the an abstract superclass for plugin classes (specifically EOCocoaTextPlugin and EOCocoaTextFieldPlugin) that want to manage Cocoa text input widgets. Subclasses still need to implement some methods defined in EOTextAssociation.TextPlugin.
Usage:
Association classes: EOCocoaTextFieldPlugin, EOCocoaTextPlugin subclasses
Widget classes: NSText, NSTextField, NSTextFieldCell, NSFormCell
| Nested Class Summary |
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
| Constructor Summary | |
EOCocoaSimpleTextPlugin(EOWidgetAssociation association,
Object widget)
EOCocoaSimpleTextPlugin is an abstract class, you should never try to create a new EOCocoaSimpleTextPlugin object. |
|
| Method Summary | |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget This makes sure that actions from the text widget are sent to this plugin. |
boolean |
hasChanges()
Returns whether or not there are any unsaved changes in the plugin. |
boolean |
saveEdits()
Saves the value to this plugin's association for aspect EOAssociation.ValueAspect. |
void |
setHasChanges(boolean hasChanges)
Used to inform the plugin that its widget has changes. |
String[] |
widgetKeysTaken()
Returns an array of Strings which represent outlet names in Interface Builder. |
| Methods inherited from class com.webobjects.eointerface.EOTextAssociation.TextPlugin |
setColors, setFontProperties |
| Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin |
endEditing, setValue, useURLAsValue, value |
| Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
association, breakConnection, dispose, unacceptableAspects, widget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EOCocoaSimpleTextPlugin(EOWidgetAssociation association,
Object widget)
super from within their contructors.
association - EOValueAssociation for this plugin to communicate withwidget - the Cocoa text input widget for this plugin to manage| Method Detail |
public void establishConnection()
super implementation
at the end of the method.
establishConnection in class EOWidgetAssociation.WidgetPluginpublic boolean hasChanges()
true if setHasChanges was invoked with the
argument true and the edits have not been saved out to the
plugin's association.public boolean saveEdits()
EOAssociation.ValueAspect. Returns a boolean value indicating
whether or not the new value was set in the plugin's association.
false if setting the value in the association returned false;
true otherwise, or if there were no edits to savepublic void setHasChanges(boolean hasChanges)
hasChanges - boolean to indicate whether or not there are
changes in this plugin's widget pending to be set in its associationpublic String[] widgetKeysTaken()
EOCocoaSimpleTextPlugin takes over the outlet with key "delegate".
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 | ||||||||||