| 
 | WebObjects 5.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
        |
        +--com.webobjects.eointerface.EOValueAssociation.ValuePlugin
              |
              +--com.webobjects.eointerface.swing.EOSwingImageViewPlugin
EOSwingImageViewPlugin is a concrete subclass of EOValueAssociation.ValuePlugin that
 displays NSData as an java.awt.Image in an EOImageView. 
Associations classes: EOValueAssociation
Widgets classes: EOImageView
| Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin | 
| EOWidgetAssociation.WidgetPlugin.Formatting | 
| Constructor Summary | |
| EOSwingImageViewPlugin(EOWidgetAssociation association,
                       Object widget)Creates a new EOSwingImageViewPlugin connected to an association and a UI widget. | |
| Method Summary | |
|  void | breakConnection()Clean up (end) the plugin's connection to its widget. | 
|  void | establishConnection()Establishes a connection between the plugin and its UI widget. | 
| protected  Image | imageFromData(NSData data)Converts the NSData object into an java.awt.Image,
 usingToolkit.createImage. | 
|  void | setValue(Object value,
         boolean isEnabled)Set NSData object to be used for the image, and set the enabled state of the view. | 
|  Object | value()Returns the data object used to create the plugin view's image. | 
| Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin | 
| endEditing, useURLAsValue | 
| Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin | 
| association, dispose, unacceptableAspects, widget, widgetKeysTaken | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public EOSwingImageViewPlugin(EOWidgetAssociation association,
                              Object widget)
association - EOValueAssociation object for the plugin to usewidget - EOImageView that the plugin will manage| Method Detail | 
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPluginprotected Image imageFromData(NSData data)
java.awt.Image,
 using Toolkit.createImage. Override this method for custom behaviour.
data - the NSData object to be used as an image (usually coming from the association)java.awt.Image or subclass
public void setValue(Object value,
                     boolean isEnabled)
setValue in class EOValueAssociation.ValuePluginvalue - NSData object to be used as an image; its bytes will be converted to an java.awt.Image
                  with the method imageFromDataisEnabled - Boolean indicating wether to set the enabled state for the view; currently not used for EOImageViewpublic Object value()
value in class EOValueAssociation.ValuePlugin| 
 | Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||