net.wotonomy.web
Class WOImage
java.lang.Object
net.wotonomy.web.WOElement
net.wotonomy.web.WODynamicElement
net.wotonomy.web.WOImage
- All Implemented Interfaces:
- java.io.Serializable, WOActionResults
- Direct Known Subclasses:
- WOBody, WOImageButton
public class WOImage
- extends WODynamicElement
WOImage renders a dynamically generated IMG tag. The URL for the image SRC can be
static, or it can be generated dynamically to return a NSData object (with a mime-type)
or even return the contents of a file (not implemented yet).
Bindings are:
- src: A static URL for the image source.
- data: A NSData object with the image content. Must be used with mimeType.
- mimeType: The MIME type for the image data. Can be used with filename or data bindings.
- filename: The path to a file containing an image.
- framework: The optional framework from whence the image should be retrieved (used in conjunction with filename).
- Version:
- $Revision: 905 $
- Author:
- ezamudio@nasoft.com, $Author: cgruber $
- See Also:
- Serialized Form
Field Summary |
protected net.wotonomy.foundation.NSData |
data
|
protected java.lang.String |
filename
|
protected java.lang.String |
framework
|
protected java.lang.String |
mimeType
|
protected java.lang.String |
src
|
Constructor Summary |
protected |
WOImage()
|
|
WOImage(java.lang.String aName,
net.wotonomy.foundation.NSDictionary aMap,
WOElement template)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
src
protected java.lang.String src
filename
protected java.lang.String filename
framework
protected java.lang.String framework
data
protected net.wotonomy.foundation.NSData data
mimeType
protected java.lang.String mimeType
WOImage
protected WOImage()
WOImage
public WOImage(java.lang.String aName,
net.wotonomy.foundation.NSDictionary aMap,
WOElement template)
setSrc
public void setSrc(java.lang.String value)
src
public java.lang.String src()
setFilename
public void setFilename(java.lang.String value)
filename
public java.lang.String filename()
setFramework
public void setFramework(java.lang.String value)
framework
public java.lang.String framework()
setData
public void setData(net.wotonomy.foundation.NSData value)
data
public net.wotonomy.foundation.NSData data()
setMimeType
public void setMimeType(java.lang.String value)
mimeType
public java.lang.String mimeType()
sourceURL
public java.lang.String sourceURL(WOContext c)
appendToResponse
public void appendToResponse(WOResponse r,
WOContext c)
- Description copied from class:
WODynamicElement
- This method is called on all elements of the content tree
to build a response to a user request. The message should
be forwarded to any child elements so that the entire tree
is traversed. This implementation does nothing.
- Overrides:
appendToResponse
in class WODynamicElement
invokeAction
public WOActionResults invokeAction(WORequest r,
WOContext c)
- Description copied from class:
WODynamicElement
- This method is called on all objects and elements of the
application until a non-null value is returned.
WOElements should first check to see if they are the
target of an action by checking the WOContext's senderID
to see if it matches this element's elementID.
If this element is the target, it should perform an
appropriate action on the context's current WOComponent,
usually the action specified in the binding, and return
the result of that action. This implementation returns null.
- Overrides:
invokeAction
in class WODynamicElement
Copyright © 2006 null. All Rights Reserved.