public class ERXDirectActionBatchNavigationBar extends ERXStatelessComponent
Name | Description |
---|---|
actionName | (String) - the name of the directAction to call |
actionClass | (String) - the name of the class for the directAction call |
additionalUrlParameters | (NSDictionary) - parameters that get added to navigation URLs |
batchsize | (Integer) - the size of the batches |
currentBatchIndex | (Integer) - the index of the current page |
numberOfObjects | (Integer) - the number of objects to batch |
containerCssClass | (String) - the css class to use for the surrounding div container |
backString | (String) - the string to use for the "back" link (HTML enabled); default = « back |
forwardString | (String) - the string to use for the "forward" link (HTML enabled); default = back » |
showPageNumbers | (Boolean) - whether or not to show the page numbers (you might want to show only the back and forward links); default = true |
showPageString | (Boolean) - whether or not to show the "Page:" string to the left of the nav (will be made more flexible); default = false |
showBatchNavigationForSinglePage | (Boolean) - whether or not to show the the batch navigation if we have only a single page; default = true |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
NSDictionary |
dictInRepetition
The one used in the repetition
|
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
ERXDirectActionBatchNavigationBar(com.webobjects.appserver.WOContext context)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
String |
actionClass()
Returns the name of the direct action class, if empty the default class is used (DirectAction)
|
String |
actionName()
Returns the name of the direct action to call
|
NSDictionary<String,Object> |
additionalUrlParameters()
The parameters to add to each link
|
String |
backString()
the string for the "back" link
|
NSArray<NSDictionary<String,Object>> |
batchNumbers()
Returns "batchNumber" objects which are dictionaries with key-value-pairs for the String to display.
|
Integer |
batchSize()
The current batch size
|
String |
containerCssClass()
The css class to use for the surrounding div
|
Integer |
currentBatchIndex()
The current batch index
|
String |
forwardString()
The string for the forward link
|
boolean |
hasMoreThanOneBatch()
Returns whether we have more than one batch and should show the navigation at all
|
boolean |
isFirstBatch()
Returns true if the currently displayed batch is the first one (for hiding the arrows on the left)
|
boolean |
isLastBatch()
Returns true if the currently displayed batch is the last one (for hiding the arrows on the right)
|
boolean |
isSelected()
Returns whether the currently generated item from the repetition is the selected one
|
Integer |
lastBatch()
Returns the number of the last page
|
ERXLocalizer |
localizer()
Convenience method to get the localizer.
|
Integer |
nextBatch()
Returns the number for the next batch
|
Integer |
numberOfObjects()
The total number of objects for which we create the batches
|
Integer |
previousBatch()
Returns the number for the previous batch
|
void |
reset()
Reset the instance variables
|
void |
setActionClass(String className)
Sets the name of the actionClass to use for the direct action call
|
void |
setActionName(String name)
Sets the name of the direct action to call
|
void |
setAdditionalUrlParameters(NSDictionary<String,Object> dict)
Set the parameters to add to each link
|
void |
setBackString(String s)
Set the string for the "back" link
|
void |
setBatchSize(Integer size)
Set the size of the batches to create the pager
|
void |
setContainerCssClass(String cssClass)
Set the class name for the surrounding div
|
void |
setCurrentBatchIndex(Integer index)
Set the current batch index
|
void |
setForwardString(String s)
Set the string for the "forward" link
|
void |
setNumberOfObjects(Integer n)
Set total number of objects for which we create the batches
|
void |
setShowBatchNavigationForSinglePage(Boolean flag)
Set the binding value for showBatchNavigationForSinglePage
|
void |
setShowPageNumbers(Boolean flag)
Set whether to show the page numbers
|
void |
setShowPageString(Boolean flag)
Set whether to show the string "Page:"
|
Boolean |
showBatchNavigationForSinglePage()
Return the value for the showBatchNavigationForSinglePage binding
|
boolean |
showNavigationBar()
Should we show the batch navigation bar? Checks the binding "showBatchNavigationForSinglePage"
|
Boolean |
showPageNumbers()
Returns whether to show the page numbers
|
Boolean |
showPageString()
Returns whether or not to show the string for "Page:"
|
isStateless
appendToResponse, invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript
__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, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public NSDictionary dictInRepetition
public ERXDirectActionBatchNavigationBar(com.webobjects.appserver.WOContext context)
context
- the current contextpublic void reset()
reset
in class ERXStatelessComponent
public NSArray<NSDictionary<String,Object>> batchNumbers()
public boolean hasMoreThanOneBatch()
public boolean showNavigationBar()
public boolean isSelected()
public Integer previousBatch()
public Integer nextBatch()
public Integer lastBatch()
public boolean isLastBatch()
public boolean isFirstBatch()
public ERXLocalizer localizer()
localizer
in class ERXComponent
public String actionName()
public void setActionName(String name)
name
- - a direct action namepublic String actionClass()
public void setActionClass(String className)
className
- - name for the directAction classpublic Integer batchSize()
public void setBatchSize(Integer size)
size
- number of items per batchpublic Integer numberOfObjects()
public void setNumberOfObjects(Integer n)
n
- public Integer currentBatchIndex()
public void setCurrentBatchIndex(Integer index)
index
- - the index to setpublic NSDictionary<String,Object> additionalUrlParameters()
public void setAdditionalUrlParameters(NSDictionary<String,Object> dict)
dict
- parameterspublic String containerCssClass()
public void setContainerCssClass(String cssClass)
cssClass
- CSS class for container elementpublic Boolean showPageString()
public void setShowPageString(Boolean flag)
flag
- public String forwardString()
public void setForwardString(String s)
s
- public String backString()
public void setBackString(String s)
s
- public Boolean showPageNumbers()
public void setShowPageNumbers(Boolean flag)
flag
- public Boolean showBatchNavigationForSinglePage()
public void setShowBatchNavigationForSinglePage(Boolean flag)
flag
- Copyright © 2002 – 2020 Project Wonder.