WebObjects 5.2.3

com.webobjects.eointerface.swing
Class EOSwingQuickTimeViewPlugin

java.lang.Object
  extended bycom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
      extended bycom.webobjects.eointerface.EOValueAssociation.ValuePlugin
          extended bycom.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


Nested Class Summary
 
Nested 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.

Specified by:
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.

Specified by:
value in class EOValueAssociation.ValuePlugin
Returns:
an Object of class String (the URL)

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.