|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.extensions.components.ERXStatelessComponent
er.extensions.batching.ERXDirectActionBatchNavigationBar
public class ERXDirectActionBatchNavigationBar
BatchNavigationBar that uses a direct action and a "batch" URL parameter to switch to a specific batch. You have to do the batching yourself and get the information from the request though. Tip for this: ERXEOControlUtilities.objectsInRange is a really big help doing that!
Bindings | |
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 |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
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 |
Field Summary | |
---|---|
com.webobjects.foundation.NSDictionary |
dictInRepetition
The one used in the repetition |
Fields inherited from class er.extensions.components.ERXComponent |
---|
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
---|
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
---|
_CLASS |
Constructor Summary | |
---|---|
ERXDirectActionBatchNavigationBar(com.webobjects.appserver.WOContext context)
Standard constructor |
Method Summary | |
---|---|
java.lang.String |
actionClass()
Returns the name of the direct action class, if empty the default class is used (DirectAction) |
java.lang.String |
actionName()
Returns the name of the direct action to call |
com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> |
additionalUrlParameters()
The parameters to add to each link |
java.lang.String |
backString()
the string for the "back" link |
com.webobjects.foundation.NSArray<com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object>> |
batchNumbers()
Returns "batchNumber" objects which are dictionaries with key-value-pairs for the String to display. |
java.lang.Integer |
batchSize()
The current batch size |
java.lang.String |
containerCssClass()
The css class to use for the surrounding div |
java.lang.Integer |
currentBatchIndex()
The current batch index |
java.lang.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 |
java.lang.Integer |
lastBatch()
Returns the number of the last page |
ERXLocalizer |
localizer()
Convenience method to get the localizer. |
java.lang.Integer |
nextBatch()
Returns the number for the next batch |
java.lang.Integer |
numberOfObjects()
The total number of objects for which we create the batches |
java.lang.Integer |
previousBatch()
Returns the number for the previous batch |
void |
reset()
Reset the instance variables |
void |
setActionClass(java.lang.String className)
Sets the name of the actionClass to use for the direct action call |
void |
setActionName(java.lang.String name)
Sets the name of the direct action to call |
void |
setAdditionalUrlParameters(com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> dict)
Set the parameters to add to each link |
void |
setBackString(java.lang.String s)
Set the string for the "back" link |
void |
setBatchSize(java.lang.Integer size)
Set the size of the batches to create the pager |
void |
setContainerCssClass(java.lang.String cssClass)
Set the class name for the surrounding div |
void |
setCurrentBatchIndex(java.lang.Integer index)
Set the current batch index |
void |
setForwardString(java.lang.String s)
Set the string for the "forward" link |
void |
setNumberOfObjects(java.lang.Integer n)
Set total number of objects for which we create the batches |
void |
setShowBatchNavigationForSinglePage(java.lang.Boolean flag)
Set the binding value for showBatchNavigationForSinglePage |
void |
setShowPageNumbers(java.lang.Boolean flag)
Set whether to show the page numbers |
void |
setShowPageString(java.lang.Boolean flag)
Set whether to show the string "Page:" |
java.lang.Boolean |
showBatchNavigationForSinglePage()
Return the value for the showBatchNavigationForSinglePage binding |
boolean |
showNavigationBar()
Should we show the batch navigation bar? Checks the binding "showBatchNavigationForSinglePage" |
java.lang.Boolean |
showPageNumbers()
Returns whether to show the page numbers |
java.lang.Boolean |
showPageString()
Returns whether or not to show the string for "Page:" |
Methods inherited from class er.extensions.components.ERXStatelessComponent |
---|
isStateless, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding |
Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
---|
appendToResponse, invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest |
Methods inherited from class com.webobjects.appserver.WOComponent |
---|
_associationWithName, _childTemplate, _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, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public com.webobjects.foundation.NSDictionary dictInRepetition
Constructor Detail |
---|
public ERXDirectActionBatchNavigationBar(com.webobjects.appserver.WOContext context)
context
- Method Detail |
---|
public void reset()
reset
in class ERXStatelessComponent
public com.webobjects.foundation.NSArray<com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object>> batchNumbers()
public boolean hasMoreThanOneBatch()
public boolean showNavigationBar()
public boolean isSelected()
public java.lang.Integer previousBatch()
public java.lang.Integer nextBatch()
public java.lang.Integer lastBatch()
public boolean isLastBatch()
public boolean isFirstBatch()
public ERXLocalizer localizer()
localizer
in class ERXComponent
public java.lang.String actionName()
public void setActionName(java.lang.String name)
name
- - a direct action namepublic java.lang.String actionClass()
public void setActionClass(java.lang.String className)
className
- - name for the directAction classpublic java.lang.Integer batchSize()
public void setBatchSize(java.lang.Integer size)
size
- public java.lang.Integer numberOfObjects()
public void setNumberOfObjects(java.lang.Integer n)
n
- public java.lang.Integer currentBatchIndex()
public void setCurrentBatchIndex(java.lang.Integer index)
index
- - the index to setpublic com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> additionalUrlParameters()
public void setAdditionalUrlParameters(com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> dict)
dict
- public java.lang.String containerCssClass()
public void setContainerCssClass(java.lang.String cssClass)
cssClass
- public java.lang.Boolean showPageString()
public void setShowPageString(java.lang.Boolean flag)
flag
- public java.lang.String forwardString()
public void setForwardString(java.lang.String s)
s
- public java.lang.String backString()
public void setBackString(java.lang.String s)
s
- public java.lang.Boolean showPageNumbers()
public void setShowPageNumbers(java.lang.Boolean flag)
flag
- public java.lang.Boolean showBatchNavigationForSinglePage()
public void setShowBatchNavigationForSinglePage(java.lang.Boolean flag)
flag
-
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |