org.apache.myfaces.tobago.model
Interface Crud

All Known Implementing Classes:
AbstractCrud

public interface Crud


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.
 String editItem()
          Managed bean (controller) method to show and edit an selected item on the CRUD detail view.
 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.
 String saveItem()
          Managed bean (controller) method to save changes to a existing item or save a newly created item on the crud detail view.
 String showItem()
          Managed bean (controller) method to show an selected item on the CRUD detail view.
 

Method Detail

getShowDetail

boolean getShowDetail()
Indicates if the crud component should show the crud detail view otherwise the crud master view is shown

Returns:
True if the detail view should be shown, false if the master view should be shown

deleteItem

String deleteItem()
Managed bean (controller) method to delete an selected item.

Returns:
The outcome after the method was executed

showItem

String showItem()
Managed bean (controller) method to show an selected item on the CRUD detail view.

Returns:
The outcome after the method was executed

editItem

String editItem()
Managed bean (controller) method to show and edit an selected item on the CRUD detail view.

Returns:
The outcome after the method was executed

createItem

String createItem()
Managed bean (controller) method to create a new item on the CRUD detail view.

Returns:
The outcome after the method was executed

saveItem

String saveItem()
Managed bean (controller) method to save changes to a existing item or save a newly created item on the crud detail view.

Returns:
The outcome after the method was executed

cancelItem

String cancelItem()
Managed bean (controller) method to exit the crud detail view without saving.

Returns:
The outcome after the method was executed

isItemEditable

boolean isItemEditable()
Indicates wether an item shown in the CRUD detail view is editable.

Returns:
true if the shown item is editable, false if not


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.