er.attachment.components
Class ERAttachmentViewer
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.extensions.components.ERXStatelessComponent
er.attachment.components.viewers.AbstractERAttachmentViewer
er.attachment.components.ERAttachmentViewer
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
public class ERAttachmentViewer
- extends AbstractERAttachmentViewer
ERAttachmentViewer provides a way to drop in an embedded viewer for
attachments. Viewers can be specified with properties. For example,
if you want to define the viewer for PDF's, you can set
er.attachment.mimeType.image/pdf.viewer=com.mine.PDFViewer or you can set
er.attachment.mimeType.image/*.viewer=com.mine.DefaultImageViewer. To
override the default fallback viewer, set
er.attachment.mimeType.default.viewer=com.mine.DefaultViewer. If an
attachment is unavailable (for instance, if it is in the queue to be
sent to S3, but it's not uploaded yet), you can set
er.attachment.mimeType.unavailable.viewer=com.mine.UnavailableViewer.
There are defaults provided for several attachment types.
- Author:
- mschrag
- See Also:
- Serialized Form
| Bindings |
attachment | the attachment to display |
configurationName | (optional) the configuration name for this attachment (see top level documentation) |
class | (optional) the css class |
id | (optional) the html element id |
style | (optional) the embedded css style |
width | (optional) if displaying an image, sets the image width |
height | (optional) if displaying an image, sets the image height |
| Methods inherited from class er.extensions.components.ERXComponent |
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, appendToResponse, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, invokeAction, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, stringValueForBinding, stringValueForBinding, takeValuesFromRequest, useDefaultComponentCSS, useDefaultComponentJavascript |
| Methods inherited from class com.webobjects.appserver.WOComponent |
__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding |
ERAttachmentViewer
public ERAttachmentViewer(WOContext context)
viewerClassName
public String viewerClassName()
- Returns:
- the class name of the viewer to use for the given mime type.
Copyright © 2002 – 2007 Project Wonder.