de.mguennewig.pobjform
Interface ButtonElement

All Superinterfaces:
FormElement
All Known Implementing Classes:
AbstractButtonElement, HtmlButtonElement, SwingButtonElement

public interface ButtonElement
extends FormElement

Interface for all button elements.

Author:
Michael Günnewig

Method Summary
 java.lang.String getButtonLabel()
          Returns the label that is displayed within the button.
 boolean hasPressed()
          Tests whether the button has been pressed by the user.
 void resetPressed()
          Clears the currently set pressed status.
 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.
 
Methods inherited from interface de.mguennewig.pobjform.FormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isMandatory, isPulledIn, isVisible, omitRowHeader, setLabel, setProperty, setPullInPrefix, startsNewCell, validate
 

Method Detail

hasPressed

boolean hasPressed()
Tests whether the button has been pressed by the user.


resetPressed

void resetPressed()
Clears the currently set pressed status.


getButtonLabel

java.lang.String getButtonLabel()
Returns the label that is displayed within the button.


setButtonLabel

void setButtonLabel(java.lang.String buttonLabel)
Sets the label that will be displayed within the button.


setVisible

void setVisible(boolean visible)
Sets whether the button is visible.

Specified by:
setVisible in interface FormElement