Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cayenne.tutorial.tapestry.pages
Class EditorPage  view EditorPage download EditorPage.java

java.lang.Object
  extended byBasePage
      extended bycayenne.tutorial.tapestry.pages.EditorPage
Direct Known Subclasses:
AddArtistPage, AddGalleryPage, AddPaintingPage

public class EditorPage
extends BasePage


Field Summary
protected  java.lang.String errorMessage
          A human presentable error message.
 
Constructor Summary
EditorPage()
           
 
Method Summary
 void appendHtmlToErrorMessage(java.lang.String htmlAppendix)
          Appends the argument to the error message.
 void appendToErrorMessage(java.lang.String appendix)
          Appends the argument to the error message.
 boolean assertNotNull(java.lang.Object anObject)
           
 boolean errorMessageContainsString(java.lang.String text)
          Checks to see if the argument is already in the error message.
 java.lang.String getErrorMessage()
           
 boolean getHasErrorMessage()
          Returns true if the error message is non-empty (i.e., length > 0).
 void initialize()
           
 void setErrorMessage(java.lang.String errorMessage)
          Sets the error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorMessage

protected java.lang.String errorMessage
A human presentable error message. Should never be null.

Constructor Detail

EditorPage

public EditorPage()
Method Detail

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)