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.
Name | Description |
---|---|
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 |
Name | Description |
---|---|
er.attachment.mimeType.[mimeType].viewer | the class name of the viewer component for the given mime type |
er.attachment.mimeType.[globMimeType].viewer | er.attachment.mimeType.[globMimeType].viewer |
er.attachment.mimeType.unavailable.viewer | er.attachment.mimeType.unavailable.viewer |
er.attachment.mimeType.default.viewer | er.attachment.mimeType.default.viewer |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
ERAttachmentViewer(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
String |
viewerClassName() |
attachment, attachmentUrl, synchronizesVariablesWithBindings
isStateless, reset
appendToResponse, invokeAction, resetCachedBindingsInStatefulComponent, takeValuesFromRequest
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript
__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, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public ERAttachmentViewer(com.webobjects.appserver.WOContext context)
public String viewerClassName()
Copyright © 2002 – 2020 Project Wonder.