public class ERD2WListPage extends ERD2WPage implements ERDListPageInterface, com.webobjects.directtoweb.SelectPageInterface, ERXComponentActionRedirector.Restorable
Name | Description |
---|---|
useBatchingDisplayGroup | useBatchingDisplayGroup |
isEntityEditable | isEntityEditable |
readOnly | readOnly |
alwaysRefetchList | alwaysRefetchList |
pageConfiguration | pageConfiguration |
defaultBatchSize | defaultBatchSize |
subTask | subTask |
checkSortOrderingKeys | checkSortOrderingKeys |
defaultSortOrdering | defaultSortOrdering |
displayPropertyKeys | displayPropertyKeys |
restrictingFetchSpecification | restrictingFetchSpecification |
isEntityInspectable | isEntityInspectable |
isEntityPrintable | isEntityPrintable |
confirmDeleteConfigurationName | confirmDeleteConfigurationName |
editConfigurationName | editConfigurationName |
inspectConfigurationName | inspectConfigurationName |
useNestedEditingContext | useNestedEditingContext |
targetDictionary | targetDictionary |
shouldShowSelectAll | shouldShowSelectAll |
referenceRelationshipForBackgroupColor | referenceRelationshipForBackgroupColor |
showBatchNavigation | showBatchNavigation |
ERD2WPage.Keys, ERD2WPage.ValidationDelegate
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 |
---|---|
protected WODisplayGroup |
_displayGroup
Holds the display group.
|
boolean |
_hasToUpdate |
protected boolean |
_rowFlip |
protected String |
_sessionID |
protected boolean |
_shouldRefetch |
protected Object |
dataSourceState |
static Logger |
log
logging support
|
com.webobjects.eocontrol.EOEnterpriseObject |
referenceEO |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog
_eo, _localContext, currentObjectKey
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
ERD2WListPage(com.webobjects.appserver.WOContext c)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_fetchDisplayGroup(WODisplayGroup dg) |
String |
alternatingColorForRow()
Utility to have alternating row colors.
|
boolean |
alwaysRefetchList() |
void |
appendToResponse(com.webobjects.appserver.WOResponse r,
com.webobjects.appserver.WOContext c)
Overridden from the parent for better logging.
|
com.webobjects.appserver.WOComponent |
backAction() |
String |
backgroundColorForRow()
The background color for the current row.
|
boolean |
checkSortOrderingKeys()
Returns whether or not sort orderings should be validated (based on the checkSortOrderingKeys rule).
|
String |
colorForRow() |
protected void |
createDisplayGroup()
Creates the display group and sets the _displayGroup instance variable
|
String |
defaultSortKey() |
com.webobjects.appserver.WOComponent |
deleteObjectAction() |
String |
descriptionForResponse(com.webobjects.appserver.WOResponse aResponse,
com.webobjects.appserver.WOContext aContext)
This will allow d2w pages to be listed on a per configuration basis in
stats collecting.
|
protected void |
didUpdate() |
WODisplayGroup |
displayGroup()
Returns the display group, creating one if there is none present.
|
void |
editingContextDidSaveChanges(com.webobjects.foundation.NSNotification notif)
Called when an
EOEditingContext has changed. |
com.webobjects.appserver.WOComponent |
editObjectAction() |
protected void |
fetchIfNecessary() |
String |
formTargetJavaScriptUrl() |
com.webobjects.appserver.WOComponent |
inspectObjectAction() |
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest r,
com.webobjects.appserver.WOContext c)
Overridden from the parent for better logging.
|
boolean |
isEntityEditable()
If the key
isEntityEditable is set, then this value is
used, otherwise the value from the super implementation, which checks if
the entity is not in the list of readOnlyEntityNames . |
boolean |
isEntityInspectable() |
boolean |
isEntityPrintable() |
boolean |
isEntityReadOnly()
Checks if the entity is read only, meaning that you can't edit it's
objects.
|
boolean |
isListEmpty()
Checks if the current list is empty.
|
boolean |
isSelecting()
Checks if the current task is select.
|
boolean |
isSelectingNotTopLevel()
Returns true of we are selecting, but not the top-level page.
|
protected boolean |
isValidSortKey(NSArray<String> displayPropertyKeys,
String sortKey)
Validates the given sort key (is it a display key, an attribute, or a valid attribute path).
|
int |
listSize()
The number of objects in the list.
|
protected com.webobjects.eocontrol.EOEnterpriseObject |
localInstanceOfObject() |
int |
numberOfObjectsPerBatch() |
com.webobjects.appserver.WOComponent |
printerFriendlyVersion() |
static com.webobjects.appserver.WOComponent |
printerFriendlyVersion(com.webobjects.directtoweb.D2WContext d2wContext,
com.webobjects.appserver.WOSession session,
com.webobjects.eocontrol.EODataSource dataSource,
WODisplayGroup displayGroup) |
NSArray |
referenceEOs() |
com.webobjects.eocontrol.EOEnterpriseObject |
selectedObject()
The currently selected object.
|
NSArray |
selectedObjects()
The currently selected objects.
|
com.webobjects.appserver.WOComponent |
selectObjectAction()
Action method to select an object.
|
String |
sessionID()
Cached session ID, so we don't need to awake.
|
void |
setBackgroundColorForRow(String value)
Does nothing and exists only for KeyValueCoding.
|
void |
setDataSource(com.webobjects.eocontrol.EODataSource eodatasource) |
void |
setSelectedObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
Sets currently selected object.
|
void |
setSelectedObjects(NSArray eos)
Sets currently selected objects.
|
protected void |
setSortOrderingsOnDisplayGroup(NSArray sortOrderings,
WODisplayGroup dg) |
protected void |
setupPhase() |
boolean |
shouldShowBatchNavigation()
Determines if the batch navigation should be shown.
|
boolean |
shouldShowSelectAll() |
boolean |
showCancel()
Should we show the cancel button? It's only visible when we have a
nextPage set up.
|
NSArray<com.webobjects.eocontrol.EOSortOrdering> |
sortOrderings() |
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest r,
com.webobjects.appserver.WOContext c)
Overridden from the parent for better logging.
|
String |
targetString() |
String |
urlForCurrentState()
end of reimplementation
|
boolean |
useBatchingDisplayGroup()
Checks the d2wContext for useBatchingDisplayGroup and returns it.
|
boolean |
userPreferencesCanSpecifySorting() |
void |
warmUpForDisplay() |
protected void |
willUpdate() |
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, awake, branch, branchChoices, branchName, clearTabSectionsContents, clearValidationFailed, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessageForPropertyKey, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, isEmbedded, isKeyOmitted, isObjectDeleteable, isObjectEditable, isObjectInspectable, isTopLevelPage, latestEntryForCurrentPropertyKey, makeStatsKey, nextPage, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setObject, setPageController, settings, setValidationDelegate, shouldCollectValidationExceptions, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationDelegate, validationFailedWithException
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final Logger log
protected boolean _shouldRefetch
protected String _sessionID
protected WODisplayGroup _displayGroup
public boolean _hasToUpdate
protected boolean _rowFlip
protected Object dataSourceState
public com.webobjects.eocontrol.EOEnterpriseObject referenceEO
public ERD2WListPage(com.webobjects.appserver.WOContext c)
EOEditingContext.EditingContextDidSaveChangesNotification
so that
component stays informed when objects are deleted and added.c
- current contextpublic WODisplayGroup displayGroup()
displayGroup
in interface ERDListPageInterface
protected void createDisplayGroup()
public boolean useBatchingDisplayGroup()
public String sessionID()
sessionID
in class com.webobjects.directtoweb.D2WComponent
public void editingContextDidSaveChanges(com.webobjects.foundation.NSNotification notif)
EOEditingContext
has changed. Sets
_hasToUpdate
which in turn lets the group refetch on the next
display.public boolean isEntityReadOnly()
isEntityReadOnly
in class ERD2WPage
public boolean isEntityEditable()
ERD2WPage
isEntityEditable
is set, then this value is
used, otherwise the value from the super implementation, which checks if
the entity is not in the list of readOnlyEntityNames
.isEntityEditable
in class ERD2WPage
public boolean alwaysRefetchList()
public boolean isSelecting()
SelectPageInterface
so we can't do an instanceof
test.public boolean isListEmpty()
public int listSize()
public String alternatingColorForRow()
public String backgroundColorForRow()
public void setBackgroundColorForRow(String value)
public com.webobjects.eocontrol.EOEnterpriseObject selectedObject()
selectedObject
in interface com.webobjects.directtoweb.SelectPageInterface
public void setSelectedObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
setSelectedObject
in interface com.webobjects.directtoweb.SelectPageInterface
public NSArray selectedObjects()
public void setSelectedObjects(NSArray eos)
public com.webobjects.appserver.WOComponent selectObjectAction()
public com.webobjects.appserver.WOComponent backAction()
public String urlForCurrentState()
urlForCurrentState
in interface ERXComponentActionRedirector.Restorable
urlForCurrentState
in class ERD2WPage
protected void setSortOrderingsOnDisplayGroup(NSArray sortOrderings, WODisplayGroup dg)
public static com.webobjects.appserver.WOComponent printerFriendlyVersion(com.webobjects.directtoweb.D2WContext d2wContext, com.webobjects.appserver.WOSession session, com.webobjects.eocontrol.EODataSource dataSource, WODisplayGroup displayGroup)
public com.webobjects.appserver.WOComponent printerFriendlyVersion()
public String descriptionForResponse(com.webobjects.appserver.WOResponse aResponse, com.webobjects.appserver.WOContext aContext)
ERD2WPage
descriptionForResponse
in class ERD2WPage
public int numberOfObjectsPerBatch()
public boolean userPreferencesCanSpecifySorting()
public boolean checkSortOrderingKeys()
protected boolean isValidSortKey(NSArray<String> displayPropertyKeys, String sortKey)
displayPropertyKeys
- the current display propertiessortKey
- the sort key to validatepublic NSArray<com.webobjects.eocontrol.EOSortOrdering> sortOrderings()
public String defaultSortKey()
public void takeValuesFromRequest(com.webobjects.appserver.WORequest r, com.webobjects.appserver.WOContext c)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
protected void _fetchDisplayGroup(WODisplayGroup dg)
protected void fetchIfNecessary()
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest r, com.webobjects.appserver.WOContext c)
ERD2WPage
invokeAction
in class ERD2WPage
public void appendToResponse(com.webobjects.appserver.WOResponse r, com.webobjects.appserver.WOContext c)
ERD2WPage
appendToResponse
in class ERD2WPage
public void setDataSource(com.webobjects.eocontrol.EODataSource eodatasource)
setDataSource
in interface com.webobjects.directtoweb.ListPageInterface
setDataSource
in interface com.webobjects.directtoweb.SelectPageInterface
setDataSource
in class ERD2WPage
protected void willUpdate()
protected void didUpdate()
protected void setupPhase()
public boolean isEntityInspectable()
public boolean isEntityPrintable()
public com.webobjects.appserver.WOComponent deleteObjectAction()
public com.webobjects.appserver.WOComponent editObjectAction()
public com.webobjects.appserver.WOComponent inspectObjectAction()
protected com.webobjects.eocontrol.EOEnterpriseObject localInstanceOfObject()
public boolean showCancel()
showCancel
in class ERD2WPage
public boolean isSelectingNotTopLevel()
public String formTargetJavaScriptUrl()
public String targetString()
public boolean shouldShowSelectAll()
public void warmUpForDisplay()
public String colorForRow()
public NSArray referenceEOs()
public boolean shouldShowBatchNavigation()
showBatchNavigation
to false.Copyright © 2002 – 2020 Project Wonder.