WebObjects 5.2.3

Class WOSMILSwitch

  extended bycom.webobjects.appserver.WOElement
      extended bycom.webobjects.appserver.WOComponent
          extended bycom.webobjects.smil.WOSMILElement
              extended bycom.webobjects.smil.WOSMILSwitch
All Implemented Interfaces:
Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults

public class WOSMILSwitch
extends WOSMILElement

WOSMILSwitch creates content for the SMIL "switch" element. A "switch" element contains other elements (typically media objects, synchronization elements, and layout elements) that should only appear if certain client-side synchonization element tests pass. This way, all available media element specifications are delivered to the client and the client determines which media elements should be instantiated.

Example: Imagine a situation where multiple movies available on a Web server, each encoded for a different bit rate and you have a model and database in place that contains each movie and the URL and bitrate encoding of the movie. A simple way to make sure that the client gets the movie of the proper bit-rate is to create a WORepetition inside a WOSMILSwitch element. In the repetition, place a WOSMILMediaObject and bind the element's href to aMovie.url and bind the element's systemBitRate to aMovie.bitRate. The client plays the movie whose systemBitRate is no higher than the rate the system can can handle.

BindingSMIL attribute
otherTagStringuse this binding to add custom attributes

See Also:
WOSMILSynchronizationElement, Serialized Form

Nested Class Summary
Nested classes inherited from class com.webobjects.appserver.WOComponent
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Field Summary
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
Constructor Summary
WOSMILSwitch(WOContext context)
          Creates a WOSMILSwitch
Method Summary
 void setTitle(String title)
          Sets the value of the title binding.
 String title()
          Returns the value of the title binding.
Methods inherited from class com.webobjects.smil.WOSMILElement
elementID, otherTagString, setElementID, setOtherTagString, synchronizesVariablesWithBindings
Methods inherited from class com.webobjects.appserver.WOComponent
appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public WOSMILSwitch(WOContext context)
Creates a WOSMILSwitch

context - context this component is created with
Method Detail


public void setTitle(String title)
Sets the value of the title binding.

title - value for the title binding


public String title()
Returns the value of the title binding.

the value of the title binding

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

Copyright © 2004 Apple Computer, Inc.