|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.portal.servlet.attribute.AttributeValue
public abstract class AttributeValue
| Field Summary | |
|---|---|
protected ApplicationContext |
application
|
protected FieldDef |
fieldDef
|
protected Object |
object
|
| Constructor Summary | |
|---|---|
AttributeValue(Object object,
FieldDef fieldDef,
ApplicationContext application)
|
|
| Method Summary | |
|---|---|
static AttributeValue |
createAttributeValue(String valueClassName,
Object object,
FieldDef fieldDef,
ApplicationContext application)
|
Autocompleter_1_0 |
getAutocompleter(RefObject_1_0 target)
|
String |
getBackColor()
Returns the background color of the field/value as W3C CSS color, null if not defined. |
String |
getColor()
Returns the color of the field/value as W3C CSS color, null if not defined. |
abstract Object |
getDefaultValue()
|
String |
getIconKey()
Returns icon key. |
protected String |
getLabel(Attribute attribute)
|
String |
getMultiplicity()
|
String |
getName()
|
Object |
getObject()
|
String |
getString(String feature,
boolean shortFormat)
|
String |
getStringifiedValue(HtmlPage p,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
Returns stringified attribute value. |
protected String |
getStringifiedValueInternal(HtmlPage p,
Object v,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
Prepares a single stringified Value to append. |
protected String |
getUpperBound(String defaultValue)
|
Object |
getValue(boolean shortFormat)
|
protected Object |
getValue(String feature,
boolean shortFormat)
|
protected Collection |
getValues(boolean shortFormat)
|
boolean |
isChangeable()
|
boolean |
isEnabled()
|
boolean |
isOptionalValued()
|
boolean |
isSingleValued()
|
void |
paint(Attribute attribute,
HtmlPage p,
String id,
String label,
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. |
void |
refresh()
refresh attribute value, i.e. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final FieldDef fieldDef
protected Object object
protected ApplicationContext application
| Constructor Detail |
|---|
public AttributeValue(Object object,
FieldDef fieldDef,
ApplicationContext application)
| Method Detail |
|---|
public static AttributeValue createAttributeValue(String valueClassName,
Object object,
FieldDef fieldDef,
ApplicationContext application)
public void refresh()
public boolean isSingleValued()
public boolean isOptionalValued()
public String getMultiplicity()
public Object getObject()
public String getName()
public boolean isChangeable()
public boolean isEnabled()
protected Object getValue(String feature,
boolean shortFormat)
public Object getValue(boolean shortFormat)
protected Collection getValues(boolean shortFormat)
protected String getLabel(Attribute attribute)
public abstract Object getDefaultValue()
public String getString(String feature,
boolean shortFormat)
public String getStringifiedValue(HtmlPage p,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
protected String getStringifiedValueInternal(HtmlPage p,
Object v,
boolean multiLine,
boolean forEditing,
boolean shortFormat)
public String toString()
toString in class Objectpublic String getBackColor()
public String getColor()
public String getIconKey()
public Autocompleter_1_0 getAutocompleter(RefObject_1_0 target)
protected String getUpperBound(String defaultValue)
public void paint(Attribute attribute,
HtmlPage p,
String id,
String label,
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 ServiceException
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
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||