org.openmdx.portal.servlet.attribute
Class BinaryValue
java.lang.Object
org.openmdx.portal.servlet.attribute.AttributeValue
org.openmdx.portal.servlet.attribute.BinaryValue
- All Implemented Interfaces:
- Serializable
public class BinaryValue
- extends AttributeValue
- implements Serializable
- See Also:
- Serialized Form
|
Method Summary |
static AttributeValue |
createBinaryValue(Object object,
FieldDef fieldDef,
ApplicationContext application)
|
protected Set |
getAcceptedMimeTypes(HttpServletRequest request)
|
void |
getBinaryValue(OutputStream os)
|
Object |
getDefaultValue()
|
String |
getMimeType()
|
static String |
getMimeType(Object object,
String feature,
String configuredMimeType)
|
protected Map |
getMimeTypeParams()
|
protected String |
getStringifiedValueInternal(HtmlPage p,
Object v,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
Prepares a single stringified Value to append. |
Object |
getValue(boolean shortFormat)
|
boolean |
isInPlace()
|
void |
paint(Attribute attribute,
HtmlPage p,
String id,
String label,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 lookupObject,
int nCols,
int tabIndex,
String gapModifier,
String styleModifier,
String widthModifier,
String rowSpanModifier,
String readonlyModifier,
String disabledModifier,
String lockedModifier,
String stringifiedValue,
boolean forEditing)
Paints the attribute to p. |
| Methods inherited from class org.openmdx.portal.servlet.attribute.AttributeValue |
createAttributeValue, getAutocompleter, getBackColor, getColor, getDataBinding, getFieldDef, getIconKey, getLabel, getMultiplicity, getName, getObject, getString, getStringifiedValue, getUpperBound, getValue, getValues, isChangeable, isEnabled, isOptionalValued, isSingleValued, refresh, toString |
DEFAULT_MIME_TYPE
protected static final String DEFAULT_MIME_TYPE
- See Also:
- Constant Field Values
DEFAULT_NAME
protected static final String DEFAULT_NAME
- See Also:
- Constant Field Values
name
protected String name
isNull
protected boolean isNull
mimeType
protected String mimeType
downloadAction
protected Action downloadAction
BinaryValue
protected BinaryValue(Object object,
FieldDef fieldDef,
ApplicationContext application)
getMimeType
public static String getMimeType(Object object,
String feature,
String configuredMimeType)
createBinaryValue
public static AttributeValue createBinaryValue(Object object,
FieldDef fieldDef,
ApplicationContext application)
isInPlace
public boolean isInPlace()
getMimeType
public String getMimeType()
getValue
public Object getValue(boolean shortFormat)
- Overrides:
getValue in class AttributeValue
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue in class AttributeValue
getBinaryValue
public void getBinaryValue(OutputStream os)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
getStringifiedValueInternal
protected String getStringifiedValueInternal(HtmlPage p,
Object v,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
- Prepares a single stringified Value to append.
- Overrides:
getStringifiedValueInternal in class AttributeValue
getMimeTypeParams
protected Map getMimeTypeParams()
getAcceptedMimeTypes
protected Set getAcceptedMimeTypes(HttpServletRequest request)
paint
public void paint(Attribute attribute,
HtmlPage p,
String id,
String label,
org.openmdx.base.accessor.jmi.cci.RefObject_1_0 lookupObject,
int nCols,
int tabIndex,
String gapModifier,
String styleModifier,
String widthModifier,
String rowSpanModifier,
String readonlyModifier,
String disabledModifier,
String lockedModifier,
String stringifiedValue,
boolean forEditing)
throws org.openmdx.base.exception.ServiceException
- Description copied from class:
AttributeValue
- Paints the attribute to p.
- Overrides:
paint in class AttributeValue
- Parameters:
attribute - attribute to paintp - target pageid - optional id for input fields. null if forEditing==falselabel - field label. If null attribute.getLabel() is used as defaultlookupObject - base where object lookup starts from. null if forEditing==falsenCols - column spantabIndex - tab index of generated input field. -1 if forEditing==falsegapModifier - gap modifier before attribute-specific code is generated. null if forEditing==truestyleModifier - style tag for generated element. null if forEditing==truewidthModifier - width tag for generated element. null if forEditing==truerowSpanModifier - row span modifierreadonlyModifier - readonly modifier. null if forEditing==falsedisabledModifier - disabled modifier. null if forEditing==falselockedModifier - modifier to lock field. null if forEditing==falsestringifiedValue - stringified value of fieldforEditing - field is paint in edit mode if true
- Throws:
org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2006-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.