java.lang.Object
BasePage
cayenne.tutorial.tapestry.pages.EditorPage
- Direct Known Subclasses:
- AddArtistPage, AddGalleryPage, AddPaintingPage
- public class EditorPage
- extends BasePage
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorMessage
protected java.lang.String errorMessage
- A human presentable error message. Should never be null.
EditorPage
public EditorPage()
initialize
public void initialize()
getErrorMessage
public java.lang.String getErrorMessage()
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
- Sets the error message. If the argument is null,
it will set the error message to the empty string.
appendToErrorMessage
public void appendToErrorMessage(java.lang.String appendix)
- Appends the argument to the error message. Ensures that
the argument does not already exist in the error message.
appendHtmlToErrorMessage
public void appendHtmlToErrorMessage(java.lang.String htmlAppendix)
- Appends the argument to the error message. Assumes it is HTML
and prepends an HTML break tag to the appendix.
errorMessageContainsString
public boolean errorMessageContainsString(java.lang.String text)
- Checks to see if the argument is already in the error message.
If the argument is null, returns true. Trims the argument for
matching purposes.
getHasErrorMessage
public boolean getHasErrorMessage()
- Returns true if the error message is non-empty (i.e., length > 0).
assertNotNull
public boolean assertNotNull(java.lang.Object anObject)