br.com.arsmachina.example.web.pages.task
Class EditTask

java.lang.Object
  extended by br.com.arsmachina.tapestrycrud.base.BasePage<T,K>
      extended by br.com.arsmachina.tapestrycrud.base.BaseEditPage<Task,Integer>
          extended by br.com.arsmachina.example.web.pages.task.EditTask
All Implemented Interfaces:
br.com.arsmachina.tapestrycrud.CrudPage<Task,Integer>, br.com.arsmachina.tapestrycrud.EditPage<Task,Integer>

public class EditTask
extends br.com.arsmachina.tapestrycrud.base.BaseEditPage<Task,Integer>

Task edit page.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
EditTask()
           
 
Method Summary
protected  Task createNewObject()
          We override BaseEditPage.createNewObject() to prefill the Task creator property.
 SelectModel getProjectSM()
          Returns a SelectModel for the project property.
 SelectModel getTeamSM()
          Returns a SelectModel for the user property.
 ValueEncoder<br.com.arsmachina.authentication.entity.User> getTeamVE()
          Returns a ValueEncoder for the team property.
 Object redirectIfNotLoggedIn()
          Redirects to the task listing page if the user is not logged in.
 
Methods inherited from class br.com.arsmachina.tapestrycrud.base.BaseEditPage
addError, clearObject, getForm, getListPage, getObject, getZone, onPassivate, prepare, prepareObjectForSaveOrUpdate, returnFromRemove, saveOrUpdate, setObject, setSaveOrUpdateSuccessMessage, validate, validateObject
 
Methods inherited from class br.com.arsmachina.tapestrycrud.base.BasePage
filterReadOnlyComponentsInBeanModel, getActivationContextEncoder, getController, getEntityClass, getLabelEncoder, getMessage, getMessages, getPrimaryKeyClass, getPrimaryKeyEncoder, getSelectModelFactory, getValueEncoder, returnZoneOnXHR, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface br.com.arsmachina.tapestrycrud.CrudPage
getEntityClass, getMessage, getPrimaryKeyClass, setMessage
 

Constructor Detail

EditTask

public EditTask()
Method Detail

redirectIfNotLoggedIn

@OnEvent(value="activate")
public Object redirectIfNotLoggedIn()
Redirects to the task listing page if the user is not logged in.


createNewObject

protected Task createNewObject()
We override BaseEditPage.createNewObject() to prefill the Task creator property.

Overrides:
createNewObject in class br.com.arsmachina.tapestrycrud.base.BaseEditPage<Task,Integer>

getProjectSM

public SelectModel getProjectSM()
Returns a SelectModel for the project property.

Returns:
a SelectModel.

getTeamSM

public SelectModel getTeamSM()
Returns a SelectModel for the user property.

Returns:
a SelectModel.

getTeamVE

public ValueEncoder<br.com.arsmachina.authentication.entity.User> getTeamVE()
Returns a ValueEncoder for the team property.

Returns:
a ValueEncoder.


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