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 |
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
NSDictionary |
dictInRepetition
The one used in the repetition
|
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERXDirectActionBatchNavigationBar(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(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 – 2024 Project Wonder.