br.com.arsmachina.tapestrycrud.components
Class Message

java.lang.Object
  extended by br.com.arsmachina.tapestrycrud.components.Message

public class Message
extends Object

Component that only shows a message if a given text is not null and not empty. It puts the message inside a div with class t-crud-message. One example can be found in Ars Machina Project Example.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
Message()
           
 
Method Summary
 String getMessage()
          Returns the value of the message property.
 boolean render(MarkupWriter writer)
           
 void setMessage(String message)
          Changes the value of the message property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Method Detail

render

@BeforeRenderTemplate
public boolean render(MarkupWriter writer)

getMessage

public final String getMessage()
Returns the value of the message property.

Returns:
a String.

setMessage

public final void setMessage(String message)
Changes the value of the message property.

Parameters:
message - a String.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.