|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.tobago.model.AbstractCrud
public abstract class AbstractCrud
| Constructor Summary | |
|---|---|
protected |
AbstractCrud()
|
| Method Summary | |
|---|---|
String |
cancelItem()
Managed bean (controller) method to exit the crud detail view without saving. |
String |
createItem()
Managed bean (controller) method to create a new item on the CRUD detail view. |
String |
deleteItem()
Managed bean (controller) method to delete an selected item. |
protected abstract boolean |
doCreateItem()
Hook for the implementation of business logic, after invoking the action createItem(). |
protected abstract boolean |
doDeleteItem()
Hook for the implementation of business logic, after invoking the action deleteItem(). |
protected abstract boolean |
doSaveItem()
Hook for the implementation of business logic, after invoking the action saveItem(). |
protected abstract boolean |
doShowItem()
Hook for the implementation of business logic, after invoking the action showItem(). |
String |
editItem()
Managed bean (controller) method to show and edit an selected item on the CRUD detail view. |
protected String |
getDefaultOutcome()
|
boolean |
getShowDetail()
Indicates if the crud component should show the crud detail view otherwise the crud master view is shown |
boolean |
isItemEditable()
Indicates wether an item shown in the CRUD detail view is editable. |
protected void |
reset()
Helper mehtod to reset the controllers attributes. |
String |
saveItem()
Managed bean (controller) method to save changes to a existing item or save a newly created item on the crud detail view. |
void |
setDefaultOutcome(String defaultOutcome)
Set the outcome for all actions of the crud component. |
String |
showItem()
Managed bean (controller) method to show an selected item on the CRUD detail view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractCrud()
| Method Detail |
|---|
public final boolean getShowDetail()
Crud
getShowDetail in interface CrudCrud.getShowDetail()public final boolean isItemEditable()
Crud
isItemEditable in interface CrudCrud.isItemEditable()public final String deleteItem()
Crud
deleteItem in interface CrudCrud.deleteItem()protected abstract boolean doDeleteItem()
Hook for the implementation of business logic, after invoking the action
deleteItem(). If the execution of the
business logic completed successfully, the method has to return true.
Otherwise the method has to return false.
public final String showItem()
Crud
showItem in interface CrudCrud.showItem()public final String editItem()
Crud
editItem in interface CrudCrud.editItem()protected abstract boolean doShowItem()
Hook for the implementation of business logic, after invoking the action
showItem(). If the execution of the
business logic completed successfully, the method has to return true.
Otherwise the method has to return false.
public final String createItem()
Crud
createItem in interface CrudCrud.createItem()protected abstract boolean doCreateItem()
Hook for the implementation of business logic, after invoking the action
createItem(). If the execution of the
business logic completed successfully, the method has to return true.
Otherwise the method has to return false.
public final String saveItem()
Crud
saveItem in interface CrudCrud.saveItem()protected abstract boolean doSaveItem()
Hook for the implementation of business logic, after invoking the action
saveItem(). If the execution of the
business logic completed successfully, the method has to return true.
Otherwise the method has to return false.
public final String cancelItem()
Crud
cancelItem in interface CrudCrud.cancelItem()protected final String getDefaultOutcome()
public final void setDefaultOutcome(String defaultOutcome)
defaultOutcome - The outcome for all actions of the crud componentprotected void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||