|
||||||||||
| 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.AbstractButtonElement
public abstract class AbstractButtonElement
Abstract implementation for a button form element.
| Constructor Summary | |
|---|---|
AbstractButtonElement(PObjForm form,
ButtonEntry entry)
Creates a new AbstractButtonElement. |
|
| Method Summary | |
|---|---|
java.lang.String |
getButtonLabel()
Returns the label that is displayed within the button. |
boolean |
hasChanged()
Tests whether the data for this element has been changed. |
boolean |
isMandatory()
Tests whether data for this element must be entered. |
boolean |
isVisible()
Tests whether this element will write anything visible. |
void |
setButtonLabel(java.lang.String buttonLabel)
Sets the label that will be displayed within the button. |
void |
setVisible(boolean visible)
Sets whether the button is visible. |
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.ButtonElement |
|---|
hasPressed, resetPressed |
| Methods inherited from interface de.mguennewig.pobjform.FormElement |
|---|
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, startsNewCell |
| Constructor Detail |
|---|
public AbstractButtonElement(PObjForm form,
ButtonEntry entry)
| Method Detail |
|---|
public final boolean isMandatory()
isMandatory in interface FormElementpublic final boolean isVisible()
isVisible in interface FormElementpublic final boolean hasChanged()
hasChanged in interface FormElementfalse as this element can't change.public final void validate()
For this form element we need to do nothing.
validate in interface FormElementpublic final java.lang.String getButtonLabel()
getButtonLabel in interface ButtonElementpublic void setButtonLabel(java.lang.String buttonLabel)
setButtonLabel in interface ButtonElementpublic void setVisible(boolean visible)
setVisible in interface ButtonElementsetVisible in interface FormElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||