org.apache.cocoon.forms.formmodel
Class EnhancedRepeater
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidget
org.apache.cocoon.forms.formmodel.Repeater
org.apache.cocoon.forms.formmodel.EnhancedRepeater
- All Implemented Interfaces:
- Widget, ValidationErrorAware, Locatable
public class EnhancedRepeater
- extends Repeater
Methods inherited from class org.apache.cocoon.forms.formmodel.Repeater |
addRepeaterListener, addRow, addRow, broadcastEvent, clear, generateDisplayData, generateItemSaxFragment, generateSize, generateWidgetLabel, getChild, getDefinition, getMaxSize, getMinSize, getParentRow, getRow, getSize, getValidationError, getWidget, getXMLElementName, hasRepeaterListeners, indexOf, moveRow, moveRow2, moveRowLeft, moveRowRight, readFromRequest, removeRepeaterListener, removeRow, removeRows, setValidationError, validate |
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidget |
addValidator, generateLabel, generateSaxFragment, getAttribute, getCombinedState, getForm, getFullName, getId, getLocation, getName, getParent, getRequestParameterName, getState, getValue, getWidget, isRequired, isValid, lookupWidget, removeAttribute, removeValidator, setAttribute, setParent, setState, setValue, toString, widgetNameChanged |
EnhancedRepeater
public EnhancedRepeater(RepeaterDefinition repeaterDefinition)
doPageLoad
public void doPageLoad()
throws BindingException
- Throws:
BindingException
doPageSave
public void doPageSave()
throws BindingException
- save current page to cache-collections (updatedRows, deleted rows, insertedRows)
- Throws:
BindingException
getMaxPage
public int getMaxPage()
getCustomPageWidgetValue
public int getCustomPageWidgetValue()
getCurrentPage
public int getCurrentPage()
getDisplayableCurrentPage
public int getDisplayableCurrentPage()
getDisplayableLastPage
public int getDisplayableLastPage()
isFirstPage
public boolean isFirstPage()
isLastPage
public boolean isLastPage()
getPageSize
public int getPageSize()
setPageSize
public void setPageSize(int pageSize)
isEnhanced
public boolean isEnhanced()
getXMLElementAttributes
public AttributesImpl getXMLElementAttributes()
- Description copied from class:
Repeater
- Adds @size attribute
- Overrides:
getXMLElementAttributes
in class Repeater
- Returns:
- the attributes for the main element for this widget's sax-fragment.
setCollection
public void setCollection(RepeaterJXPathCollection collection)
initialize
public void initialize()
- Description copied from class:
AbstractWidget
- Called after widget's environment has been setup,
to allow for any contextual initalization, such as
looking up case widgets for union widgets.
- Specified by:
initialize
in interface Widget
- Overrides:
initialize
in class Repeater
getCollection
public RepeaterJXPathCollection getCollection()
refreshPage
public void refreshPage()
throws BindingException
- Throws:
BindingException
goToPage
public void goToPage(int page)
throws BindingException
- Throws:
BindingException
sortBy
public void sortBy(String field)
throws BindingException
- Throws:
BindingException
setFilter
public void setFilter(String field,
Object value)
throws BindingException
- Throws:
BindingException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.