er.extensions.batching
Class ERXFlickrBatchNavigation
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.batching.ERXFlickrBatchNavigation
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
- Direct Known Subclasses:
- AjaxFlickrBatchNavigation
public class ERXFlickrBatchNavigation
- extends ERXComponent
ERXFlickrBatchNavigation is a batch navigation component that provides
pagination that behaves like the paginator on Flickr.com.
Include ERXFlickrBatchNavigation.css in ERExtensions for a default stylesheet
that looks (very) similar to Flickr.
Can also be used for pagination on the parent component, where the objects being paginated may be POJOs in an array,
or where paging all the objects in the allObjects array is not feasible due to memory requirements.
- Author:
- mschrag, rob, cug (non displayGroup batching)
- See Also:
- Serialized Form
| Bindings |
displayGroup | the display group to paginate |
displayName | the name of the items that are being display ("photo", "bug", etc) |
showPageRange | if true, the page of items on the page is shown, for example "(1-7 of 200 items)" |
showBatchSizes | if true, a menu to change the items per page is shown "Show: (10) 20 (100) (All) items per page" |
batchSizes | can be either a string or an NSArray of numbers that define the batch sizes to chose from. |
small | if true, a compressed page count style is used |
parentActionName | (if you don't provide a displayGroup) the action to be executed on the parent component to get the next batch of items. |
currentBatchIndex | (if you don't provide a displayGroup) used to get and set on the parent component the selected page index |
maxNumberOfObjects | (if you don't provide a displayGroup) used to get the total number of objects that are being paginated. |
numberOfObjectsPerBatch | (if you don't provide a displayGroup) the number of objects per batch (page) |
| Methods inherited from class er.extensions.components.ERXComponent |
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, appendToResponse, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, invokeAction, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, reset, stringValueForBinding, stringValueForBinding, takeValuesFromRequest, useDefaultComponentCSS, useDefaultComponentJavascript |
| Methods inherited from class com.webobjects.appserver.WOComponent |
__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding |
currentBatchSize
public Integer currentBatchSize
ERXFlickrBatchNavigation
public ERXFlickrBatchNavigation(WOContext context)
synchronizesVariablesWithBindings
public boolean synchronizesVariablesWithBindings()
- Overrides:
synchronizesVariablesWithBindings in class WOComponent
objects
public NSArray objects()
displayGroup
public WODisplayGroup displayGroup()
setRepetitionPageNumber
public void setRepetitionPageNumber(ERXFlickrBatchNavigation.PageNumber repetitionPageNumber)
repetitionPageNumber
public ERXFlickrBatchNavigation.PageNumber repetitionPageNumber()
hasMultiplePages
public boolean hasMultiplePages()
showLabels
public boolean showLabels()
hasPreviousPage
public boolean hasPreviousPage()
previousPage
public WOActionResults previousPage()
hasNextPage
public boolean hasNextPage()
nextPage
public WOActionResults nextPage()
selectPage
public WOActionResults selectPage()
displayName
public String displayName()
displayNameCount
public Integer displayNameCount()
isCurrentPageNumber
public boolean isCurrentPageNumber()
pageNumbers
public NSArray<ERXFlickrBatchNavigation.PageNumber> pageNumbers()
addEllipsis
protected void addEllipsis()
addPageNumbers
protected void addPageNumbers(int startIndex,
int endIndex)
batchCount
public int batchCount()
numberOfObjectsPerBatch
public int numberOfObjectsPerBatch()
maxNumberOfObjects
public int maxNumberOfObjects()
currentBatchIndex
public int currentBatchIndex()
parentActionName
public String parentActionName()
firstIndex
public int firstIndex()
lastIndex
public int lastIndex()
showBatchSizes
public boolean showBatchSizes()
possibleBatchSizes
public NSArray<Number> possibleBatchSizes()
batchSize
public int batchSize()
currentBatchSizeString
public String currentBatchSizeString()
isCurrentBatchSizeSelected
public boolean isCurrentBatchSizeSelected()
selectBatchSize
public WOActionResults selectBatchSize()
Copyright © 2002 – 2007 Project Wonder.