WebObjects 5.2

com.webobjects.eointerface.swing
Class EOSwingQuickTimeViewPlugin

java.lang.Object
  |
  +--com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
        |
        +--com.webobjects.eointerface.EOValueAssociation.ValuePlugin
              |
              +--com.webobjects.eointerface.swing.EOSwingQuickTimeViewPlugin
All Implemented Interfaces:
NSDisposable

public class EOSwingQuickTimeViewPlugin
extends EOValueAssociation.ValuePlugin

EOSwingQuickTimeViewPlugin is a concrete subclass of EOValueAssociation.ValuePlugin that displays QuickTime content from a URL which is passed in as a value, using an EOQuickTimeView.

Associations classes: EOValueAssociation

Widgets classes: EOQuickTimeView


Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
EOWidgetAssociation.WidgetPlugin.Formatting
 
Constructor Summary
EOSwingQuickTimeViewPlugin(EOWidgetAssociation association, Object widget)
          Creates a new EOSwingQuickTimeViewPlugin 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.
 void setValue(Object value, boolean isEnabled)
          Set the URL for the QuickTime movie to be diplayed, and set the enabled state of the view.
 String[] unacceptableAspects()
          Returns the specific unacceptable aspects for this plugin.
 boolean useURLAsValue()
          Overrides useURLAsValue to indicate (mainly for internal purposes) that the value is not the data itself, but an URL for some data.
 Object value()
          Returns the value set with setValue as URL for the QuickTime content.
 
Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin
endEditing
 
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
association, dispose, widget, widgetKeysTaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOSwingQuickTimeViewPlugin

public EOSwingQuickTimeViewPlugin(EOWidgetAssociation association,
                                  Object widget)
Creates a new EOSwingQuickTimeViewPlugin connected to an association and a UI widget.
Parameters:
association - EOValueAssociation object for the plugin to use
widget - EOQuickTimeView that the plugin will manage
Method Detail

breakConnection

public void breakConnection()
Clean up (end) the plugin's connection to its widget. In this case, however, it just re-initializes the URL value.
Overrides:
breakConnection in class EOWidgetAssociation.WidgetPlugin

establishConnection

public void establishConnection()
Establishes a connection between the plugin and its UI widget. In this case, however, it just re-initializes the URL value.
Overrides:
establishConnection in class EOWidgetAssociation.WidgetPlugin

setValue

public void setValue(Object value,
                     boolean isEnabled)
Set the URL for the QuickTime movie to be diplayed, and set the enabled state of the view.
Overrides:
setValue in class EOValueAssociation.ValuePlugin
Parameters:
value - a String object with the URL for the QuickTime content
isEnabled - a Boolean indicating wether to set the enabled state for the view; currently not used for EOQuickTimeView

unacceptableAspects

public String[] unacceptableAspects()
Returns the specific unacceptable aspects for this plugin.
Overrides:
unacceptableAspects in class EOWidgetAssociation.WidgetPlugin
Returns:
a String array with an element for each unacceptable aspect

useURLAsValue

public boolean useURLAsValue()
Overrides useURLAsValue to indicate (mainly for internal purposes) that the value is not the data itself, but an URL for some data.
Overrides:
useURLAsValue in class EOValueAssociation.ValuePlugin
Returns:
true to indicate that the value set with setValue is an URL, not the data itself

value

public Object value()
Returns the value set with setValue as URL for the QuickTime content.
Overrides:
value in class EOValueAssociation.ValuePlugin
Returns:
an Object of class String (the URL)

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.