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 |
target | (optional) specifies where to open the linked attachment |
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 |
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERAttachmentViewer(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
Copyright © 2002 – 2024 Project Wonder.