|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.field.valueobject.ValueObjectFieldWriter
This writer is used to display links to other value objects.
| Field Summary | |
static java.lang.String |
CSS_COMBO
This is the style class used for combo (single choice) lists. |
static java.lang.String |
CSS_LIST
This is the style class used for multiple choice lists. |
static java.lang.String |
DEFAULT_DISPLAY_VALUE
This is the value which is output as a default. |
static java.lang.String |
DEFAULT_VALUE
This is the value which is output as a default. |
static java.lang.String |
NEW_DISPLAY_VALUE
This is the value which is output as a new entry. |
| Constructor Summary | |
ValueObjectFieldWriter(com.ivata.mask.field.Field fieldParam,
java.lang.String actionPageParam,
java.util.Collection allValueObjectsParam,
HTMLFormatter formatterParam,
int listHeightParam,
boolean multipleParam)
Construct a field writer. |
|
| Method Summary | |
protected java.util.Collection |
getAllValueObjects()
All possible value objects to display in a list - for a choice. |
protected AttributesWriter |
getAttributesWriter()
Access the attributes writer, which is responsible for converting the field attributes into text. |
protected com.ivata.mask.field.Field |
getField()
Access the field to be displayed. |
protected HTMLFormatter |
getFormatter()
Used to format the displayed, usually ensuring line breaks are converted into HTML. |
void |
removeAttribute(java.lang.String name)
Refer to FieldWriter#clearAttribute. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Refer to FieldWriter.setAttribute(java.lang.String, java.lang.String). |
java.lang.String |
write(javax.servlet.jsp.PageContext pageContextParam,
com.ivata.mask.valueobject.ValueObject valueObjectParam,
boolean displayOnlyParam)
Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean). |
java.lang.String |
writeChoiceField(javax.servlet.jsp.PageContext pageContextParam,
java.util.Collection valuesParam)
Display a field (which is not read-only). |
java.lang.String |
writeDisplayOnly(javax.servlet.jsp.PageContext pageContextParam,
java.util.Collection valuesParam)
Display the correct field value from the value object - for a read-only field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CSS_COMBO
This is the style class used for combo (single choice) lists.
public static final java.lang.String CSS_LIST
This is the style class used for multiple choice lists.
public static final java.lang.String DEFAULT_DISPLAY_VALUE
This is the value which is output as a default. TODO: i18n
public static final java.lang.String DEFAULT_VALUE
This is the value which is output as a default. TODO: i18n
public static final java.lang.String NEW_DISPLAY_VALUE
This is the value which is output as a new entry. TODO: i18n
| Constructor Detail |
public ValueObjectFieldWriter(com.ivata.mask.field.Field fieldParam,
java.lang.String actionPageParam,
java.util.Collection allValueObjectsParam,
HTMLFormatter formatterParam,
int listHeightParam,
boolean multipleParam)
Construct a field writer.
fieldParam - defines the field to be displayed.actionPageParam - Refer to DefaultFieldWriter#getActionPage.allValueObjectsParam - Refer to getAllValueObjects().formatterParam - Refer to getFormatter().listHeightParam - set as the size attribute in the field.multipleParam - if true, then the user can make more than one
selection.| Method Detail |
protected final java.util.Collection getAllValueObjects()
Collection of
ValueObject instances.protected final AttributesWriter getAttributesWriter()
Access the attributes writer, which is responsible for converting the field attributes into text.
protected final com.ivata.mask.field.Field getField()
Access the field to be displayed.
protected final HTMLFormatter getFormatter()
public void removeAttribute(java.lang.String name)
FieldWriter#clearAttribute.
removeAttribute in interface FieldWritername - Refer to FieldWriter#clearAttribute.
public void setAttribute(java.lang.String name,
java.lang.String value)
FieldWriter.setAttribute(java.lang.String, java.lang.String).
setAttribute in interface FieldWritername - Refer to FieldWriter.setAttribute(java.lang.String, java.lang.String).value - Refer to FieldWriter.setAttribute(java.lang.String, java.lang.String).
public final java.lang.String write(javax.servlet.jsp.PageContext pageContextParam,
com.ivata.mask.valueobject.ValueObject valueObjectParam,
boolean displayOnlyParam)
FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).
write in interface FieldWriterpageContextParam - Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).valueObjectParam - Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).displayOnlyParam - Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).
FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).
public final java.lang.String writeChoiceField(javax.servlet.jsp.PageContext pageContextParam,
java.util.Collection valuesParam)
pageContextParam - Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).valuesParam - contains all the possible values as strings.
public final java.lang.String writeDisplayOnly(javax.servlet.jsp.PageContext pageContextParam,
java.util.Collection valuesParam)
pageContextParam - Refer to FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean).valuesParam - Refer to writeChoiceField(javax.servlet.jsp.PageContext, java.util.Collection).
writeChoiceField(javax.servlet.jsp.PageContext, java.util.Collection).FieldWriter.write(javax.servlet.jsp.PageContext, com.ivata.mask.valueobject.ValueObject, boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||