|
||||||||||
| 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
public abstract class AbstractInputElement
Abstract implementation of an input element.
| 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 | |
|---|---|
AbstractInputElement(PObjForm form,
InputEntry entry)
Creates a new AbstractInputElement. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds a listener for change events for this element. |
javax.swing.event.ChangeListener[] |
getChangeListeners()
|
InputEntry |
getInputEntry()
|
java.lang.Object |
getObject()
Returns the current object. |
int |
getRenderAs()
|
Type |
getType()
|
java.lang.String |
getVisualString()
Returns the human readable textual representation of the current value. |
boolean |
isHiddenInput()
Tests whether this input element is hidden. |
boolean |
isMandatory()
Tests whether data for this element must be entered. |
boolean |
isRightAligned()
Returns whether the data will be right aligned. |
boolean |
isVisible()
Tests whether this input element is hidden. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removed a previously added listener for change events. |
void |
setMandatory(boolean mandatory)
|
void |
setObject(java.lang.Object obj)
Sets the current object to the new value. |
void |
setRenderAs(int renderAs)
|
void |
setRightAligned(boolean rightAligned)
Sets whether the data should be right aligned. |
void |
setVisible(boolean visible)
Sets whether this element will be written visibly. |
void |
validate()
Checks for a valid value in this form element and any possible children. |
| 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.ValueElement |
|---|
getCurrentString, getInitialObject, getInitialString, setCurrentAsInitialState |
| Methods inherited from interface de.mguennewig.pobjform.FormElement |
|---|
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, startsNewCell |
| Constructor Detail |
|---|
public AbstractInputElement(PObjForm form,
InputEntry entry)
| Method Detail |
|---|
public final void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener in interface InputElementpublic final void removeChangeListener(javax.swing.event.ChangeListener l)
If the given listener is not registered anymore this method will do nothing.
removeChangeListener in interface InputElementpublic final javax.swing.event.ChangeListener[] getChangeListeners()
public java.lang.Object getObject()
getObject in interface ValueElementpublic void setObject(java.lang.Object obj)
setObject in interface ValueElementpublic final InputEntry getInputEntry()
getInputEntry in interface InputElementpublic final Type getType()
getType in interface InputElementpublic final int getRenderAs()
getRenderAs in interface InputElementpublic void setRenderAs(int renderAs)
setRenderAs in interface InputElementpublic final boolean isMandatory()
isMandatory in interface FormElementisMandatory in interface InputElementpublic void setMandatory(boolean mandatory)
setMandatory in interface InputElementpublic final boolean isRightAligned()
isRightAligned in interface InputElementpublic void setRightAligned(boolean rightAligned)
setRightAligned in interface InputElementpublic final boolean isVisible()
The value RENDER_AS_HIDDEN_WITH_LABEL is classified as
visible.
isVisible in interface FormElementisVisible in interface InputElementpublic final void setVisible(boolean visible)
setVisible in interface FormElementsetRenderAs(int),
InputElement.RENDER_AS_INPUT,
InputElement.RENDER_AS_HIDDENpublic final boolean isHiddenInput()
RENDER_AS_HIDDEN_WITH_LABEL is classified as
invisible.
isHiddenInput in interface InputElementpublic 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 InputElementpublic void validate()
FormElement
validate in interface FormElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||