|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjform.AbstractFormElement
de.mguennewig.pobjform.AbstractValueElement
de.mguennewig.pobjform.AbstractInputElement
de.mguennewig.pobjform.html.HtmlInputElement
de.mguennewig.pobjform.html.HtmlStringElement
public class HtmlStringElement
Class description goes here.
| Field Summary |
|---|
| Fields inherited from interface de.mguennewig.pobjform.InputElement |
|---|
MAX_INPUT_SIZE, RENDER_AS_DISABLED, RENDER_AS_HIDDEN, RENDER_AS_HIDDEN_WITH_LABEL, RENDER_AS_INPUT, RENDER_AS_TEXT |
| Constructor Summary | |
|---|---|
HtmlStringElement(PObjHtmlForm form,
InputEntry entry)
Creates a new HtmlStringElement. |
|
| Method Summary | |
|---|---|
int |
getMaxLength()
|
MapItem[] |
getRestrictTo()
Returns the current allowed set of values. |
int |
getSize()
|
java.lang.String |
getVisualString()
Returns the human readable textual representation of the current value. |
boolean |
isStaticIfOneOption()
Tests whether the input element will be rendered as static if the number of non-null options is exactly one. |
void |
read(javax.servlet.http.HttpServletRequest request)
Reads the internal state from the HTTP request. |
boolean |
removeOption(java.lang.Object value)
Removes the given option from the current set of allowed values. |
void |
setMaxLength(int maxLength)
|
void |
setRestrictTo(MapItem[] restrictTo)
Sets the set of allowed values. |
void |
setSize(int size)
|
void |
setStaticIfOneOption(boolean staticIfOneOption)
Sets whether the input element will be rendered as static if the number on non-null options is exactly one. |
| Methods inherited from class de.mguennewig.pobjform.html.HtmlInputElement |
|---|
getCurrentString, getInitialObject, getInitialString, getObject, hasChanged, setCurrentAsInitialState, setCurrentString, setInitialString, setObject, write, write, writeErrors |
| Methods inherited from class de.mguennewig.pobjform.AbstractInputElement |
|---|
addChangeListener, getChangeListeners, getInputEntry, getRenderAs, getType, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRenderAs, setRightAligned, setVisible, validate |
| Methods inherited from class de.mguennewig.pobjform.AbstractFormElement |
|---|
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, startsNewCell |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.mguennewig.pobjform.InputElement |
|---|
addChangeListener, getInputEntry, getRenderAs, getType, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRenderAs, setRightAligned |
| Methods inherited from interface de.mguennewig.pobjform.ValueElement |
|---|
getCurrentString, getInitialObject, getInitialString, getObject, setCurrentAsInitialState, setObject |
| Methods inherited from interface de.mguennewig.pobjform.FormElement |
|---|
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate |
| Constructor Detail |
|---|
public HtmlStringElement(PObjHtmlForm form,
InputEntry entry)
| Method Detail |
|---|
public final int getSize()
getSize in interface StringElementpublic void setSize(int size)
setSize in interface StringElementpublic final int getMaxLength()
getMaxLength in interface StringElementpublic void setMaxLength(int maxLength)
setMaxLength in interface StringElementpublic final MapItem[] getRestrictTo()
StringElement
getRestrictTo in interface StringElementpublic void setRestrictTo(MapItem[] restrictTo)
StringElementThis only restricts the visual options by using a selection box with these values.
setRestrictTo in interface StringElementpublic boolean removeOption(java.lang.Object value)
removeOption in interface StringElementtrue if the value has been found in the current set
of allowed values and removed, otherwise false.StringElement.getRestrictTo(),
StringElement.setRestrictTo(MapItem[])public java.lang.String getVisualString()
This is the value used to write the current value into the UI element.
It is never null.
getVisualString in interface InputElementgetVisualString in class AbstractInputElementpublic final void read(javax.servlet.http.HttpServletRequest request)
read in interface HtmlFormElementread in class HtmlInputElementpublic final boolean isStaticIfOneOption()
isStaticIfOneOption in interface StringElementStringElement.setStaticIfOneOption(boolean)public void setStaticIfOneOption(boolean staticIfOneOption)
setStaticIfOneOption in interface StringElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||