br.com.arsmachina.tapestrycrud.components
Class EmptyGridMessage

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

@IncludeStylesheet(value="classpath:/br/com/arsmachina/tapestrycrud/components/tapestry-crud.css")
public class EmptyGridMessage
extends Object

Component used to easily standardize and internationalize the Grid's "no records to display" message. It puts the message inside a div with class t-crud-emptygrid. Ars Machina Project Example.

Author:
Thiago H. de Paula Figueiredo

Field Summary
static String CSS_CLASS
          Generated <p> CSS class.
static String MESSAGE_GRID_EMPTY
          Key of the empty grid message.
 
Constructor Summary
EmptyGridMessage()
           
 
Method Summary
 boolean discardBody()
          Discards the tag body.
 String getMessage()
          Returns the value of the message property.
 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
 

Field Detail

MESSAGE_GRID_EMPTY

public static final String MESSAGE_GRID_EMPTY
Key of the empty grid message.

See Also:
Constant Field Values

CSS_CLASS

public static final String CSS_CLASS
Generated <p> CSS class.

See Also:
Constant Field Values
Constructor Detail

EmptyGridMessage

public EmptyGridMessage()
Method Detail

getMessage

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

Returns:
a String.

setMessage

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

Parameters:
message - a String.

discardBody

@BeforeRenderBody
public boolean discardBody()
Discards the tag body.

Returns:
false.


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