@Component public class EnrollmentDemo extends FormTablePage
editLink, form, removeLink, table
controls, format, forward, headElements, headers, includeControlHeadElements, messages, model, PAGE_ACTION, PAGE_MESSAGES, pageImports, path, redirect, stateful, template
Constructor and Description |
---|
EnrollmentDemo() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the form dataObject and any errors it might have.
|
org.apache.cayenne.DataObject |
getDataObject(Object id)
Return the DataObject for the given id.
|
Class |
getDataObjectClass()
Return the DataObject class to edit and display.
|
List |
getRowList()
Return the list of DataObjects to display in the table.
|
boolean |
onEditClick()
The edit event handler.
|
void |
onInit()
Complete the initialization of the form and table controls.
|
boolean |
onSaveClick()
The save event handler.
|
createForm, deleteDataObject, getMaxTableSize, onCancelClick, onRemoveClick, onRender, onSecurityCheck, saveDataObject
getTemplate, onDestroy
addControl, addModel, getContentType, getContext, getControls, getFormat, getForward, getHeadElements, getHeaders, getHtmlImports, getMessage, getMessage, getMessages, getModel, getPageImports, getPath, getRedirect, hasControls, hasHeaders, isIncludeControlHeadElements, isStateful, onGet, onPost, removeControl, setFormat, setForward, setForward, setForward, setHeader, setHeaders, setIncludeControlHeadElements, setPageImports, setPath, setRedirect, setRedirect, setRedirect, setRedirect, setStateful, setTemplate
public void onInit()
FormTablePage
onInit
in class FormTablePage
FormTablePage.onInit()
public boolean onSaveClick()
FormTablePage
onSaveClick
in class FormTablePage
FormTablePage.onSaveClick()
public boolean onEditClick()
FormTablePage
onEditClick
in class FormTablePage
FormTablePage.onEditClick()
public void clear()
FormTablePage
clear
in class FormTablePage
FormTablePage.clear()
public org.apache.cayenne.DataObject getDataObject(Object id)
FormTablePage
getDataObject
in class FormTablePage
id
- the DataObject identifierFormTablePage.getDataObject(Object)
public Class getDataObjectClass()
FormTablePage
getDataObjectClass
in class FormTablePage
FormTablePage.getDataObjectClass()
public List getRowList()
FormTablePage
getRowList
in class FormTablePage
FormTablePage.getRowList()