| 
WebObjects 5.2.2 | ||||||||||
| 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.EOValueAssociation.ValuePlugin
              |
              +--com.webobjects.eointerface.EOTextAssociation.TextPlugin
                    |
                    +--com.webobjects.eointerface.cocoa.EOCocoaSimpleTextPlugin
                          |
                          +--com.webobjects.eointerface.cocoa.EOCocoaTextPlugin
EOCocoaTextPlugin is used in Cocoa applications to connect text view widgets to EOTextAssociations.
Usage:
 Association classes: EOTextAssociation
 Widget classes: NSText
 Value classes: String, RTF data, or RTFD data
| Nested Class Summary | 
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin | 
EOWidgetAssociation.WidgetPlugin.Formatting | 
| Constructor Summary | |
EOCocoaTextPlugin(EOWidgetAssociation association,
                  Object widget)
Creates a new EOCocoaTextPlugin for use with association and widget.  | 
|
| Method Summary | |
 void | 
breakConnection()
Tells the plugin to halt communication with its NSText object.  | 
 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.  | 
 void | 
setColors(Object textColor,
          Object bgColor)
Sets the text and background colors for the NSText this plugin manages.  | 
 void | 
setFontProperties(int boldState,
                  int italicState)
Sets the bold and italic properties for this plugin's NSText object.  | 
 void | 
setValue(Object value,
         boolean editable)
Sets the attributes of this plugin's NSText object based on value and isEnabled. | 
 Object | 
value()
Returns the text held by this plugin's NSText object.  | 
| Methods inherited from class com.webobjects.eointerface.cocoa.EOCocoaSimpleTextPlugin | 
hasChanges, saveEdits, setHasChanges, widgetKeysTaken | 
| Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin | 
useURLAsValue | 
| 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 EOCocoaTextPlugin(EOWidgetAssociation association,
                         Object widget)
association - EOValueAssociation for this plugin to communicate withwidget - the NStext object for this plugin to manage| Method Detail | 
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic boolean endEditing()
endEditing in class EOValueAssociation.ValuePlugintrue 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 EOCocoaSimpleTextPlugin
public void setColors(Object textColor,
                      Object bgColor)
setColors in class EOTextAssociation.TextPlugintextColor - NSColor object to use to set the NSText's text colorbgColor - NSColor object to use to set teh NSText's background color
public void setFontProperties(int boldState,
                              int italicState)
setFontProperties in class EOTextAssociation.TextPluginboldState - if equal to EOAssociation.IgnoreValue, the bold state of the
 NSText's text is not changed; if equal to EOAssociation.SetValue, the text
 of the text widget will be bold; if equal to EOAssociation.UnsetValue, the text
 of the text widget will not be bolditalicState - if equal to EOAssociation.IgnoreValue, the italic state of the
 NSText's text is not changed; if equal to EOAssociation.SetValue, the text
 of the text widget will be italic; if equal to EOAssociation.UnsetValue, the text
 of the text widget will not be italic.
public void setValue(Object value,
                     boolean editable)
value and isEnabled.
 value may be a com.webobjects.foundation.NSData object containing
 RTF or RTFD data. Otherwise, value's toString value is used as the
 text area's contents. If value is null or if value is NSData but not RTF or RTFD data, the
 text area's content is empty.
setValue in class EOValueAssociation.ValuePluginvalue - Object to use as display text in this plugin's
              text areaeditable - if true, the text area will be editable;
                 if false, editing the contents of the NSText will be disabled,
                 but the text will always be selectablepublic Object value()
com.webobjects.foundation.NSData object conatining the bytes
 of the RTF or RTFD representation of the NSText contents.
value in class EOValueAssociation.ValuePlugin
  | 
Last updated Mon Oct 13 15:42:52 PDT 2003. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||