|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.com.arsmachina.tapestrycrud.base.BasePage<T,K>
T - the entity class related to this encoder.K - the type of the class' primary key property.public abstract class BasePage<T,K extends Serializable>
Class that implements some common infrastructure for listing and editing pages. This class is not
| Constructor Summary | |
|---|---|
BasePage()
Single constructor of this class. |
|
| Method Summary | ||
|---|---|---|
protected boolean |
filterReadOnlyComponentsInBeanModel()
Used by #getBeanModel() to filter read only components or not. |
|
protected
|
getActivationContextEncoder(Class<V> clasz)
Returns the ActivationContextEncoder for a given class. |
|
br.com.arsmachina.controller.Controller<T,K> |
getController()
Returns the value of the controller property. |
|
Class<T> |
getEntityClass()
Returns the entity type. |
|
Zone |
getFormZone()
Returns the Zone that surrounds the form. |
|
protected
|
getLabelEncoder(Class<V> clasz)
Returns the LabelEncoder for a given class. |
|
String |
getMessage()
Returns the value of the message property. |
|
Messages |
getMessages()
Returns the value of the messages property. |
|
Class<K> |
getPrimaryKeyClass()
Returns the type of the entity's primary key field. |
|
protected
|
getPrimaryKeyEncoder(Class<V> clasz)
Returns the PrimaryKeyEncoder for a given class. |
|
protected SelectModelFactory |
getSelectModelFactory()
Returns the value of the selectModelFactory property. |
|
protected
|
getValueEncoder(Class<V> clasz)
Returns the ValueEncoder for a given class. |
|
protected boolean |
returnZoneOnXHR()
Used by #returnFromRemove() to know whether it must return a Zone or a
Block. |
|
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 |
|---|
public BasePage()
| Method Detail |
|---|
protected boolean filterReadOnlyComponentsInBeanModel()
#getBeanModel() to filter read only components or not. This implementation
returns true.
boolean.protected <V> ValueEncoder<V> getValueEncoder(Class<V> clasz)
ValueEncoder for a given class.
V - the class.clasz - a Class;
ValueEncoder.protected <V> LabelEncoder<V> getLabelEncoder(Class<V> clasz)
LabelEncoder for a given class.
V - the class.clasz - a Class;
LabelEncoder.protected <V,X extends Serializable> ActivationContextEncoder<V> getActivationContextEncoder(Class<V> clasz)
ActivationContextEncoder for a given class.
V - the class.clasz - a Class;
ActivationContextEncoder.protected <V,X extends Serializable> PrimaryKeyEncoder<X,V> getPrimaryKeyEncoder(Class<V> clasz)
PrimaryKeyEncoder for a given class.
V - the class.X - the class' primary key field type.clasz - a Class;
PrimaryKeyEncoder.public String getMessage()
CrudPagemessage property.
getMessage in interface CrudPage<T,K extends Serializable>String.CrudPage.getMessage()public void setMessage(String message)
CrudPagemessage property.
setMessage in interface CrudPage<T,K extends Serializable>message - a String.CrudPage.setMessage(java.lang.String)public final br.com.arsmachina.controller.Controller<T,K> getController()
controller property.
Controller.public final Class<T> getEntityClass()
CrudPage
getEntityClass in interface CrudPage<T,K extends Serializable>Class.public final Class<K> getPrimaryKeyClass()
CrudPage
getPrimaryKeyClass in interface CrudPage<T,K extends Serializable>Class>.public final Messages getMessages()
messages property.
Messages.public Zone getFormZone()
Zone that surrounds the form.
Zone.protected boolean returnZoneOnXHR()
#returnFromRemove() to know whether it must return a Zone or a
Block. This implementation returns true.
boolean.protected final SelectModelFactory getSelectModelFactory()
selectModelFactory property.
SelectModelFactory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||