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
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 |
---|---|
protected WODisplayGroup |
_displayGroup
Holds the display group.
|
boolean |
_hasToUpdate |
protected boolean |
_rowFlip |
protected String |
_sessionID |
protected boolean |
_shouldRefetch |
protected Object |
dataSourceState |
static org.apache.log4j.Logger |
log
logging support
|
EOEnterpriseObject |
referenceEO |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog
_eo, _localContext, currentObjectKey
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERD2WListPage(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(WOResponse r,
WOContext c)
Overridden from the parent for better logging.
|
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() |
WOComponent |
deleteObjectAction() |
String |
descriptionForResponse(WOResponse aResponse,
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(NSNotification notif)
Called when an
EOEditingContext has changed. |
WOComponent |
editObjectAction() |
protected void |
fetchIfNecessary() |
String |
formTargetJavaScriptUrl() |
WOComponent |
inspectObjectAction() |
WOActionResults |
invokeAction(WORequest r,
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 EOEnterpriseObject |
localInstanceOfObject() |
int |
numberOfObjectsPerBatch() |
WOComponent |
printerFriendlyVersion() |
static WOComponent |
printerFriendlyVersion(com.webobjects.directtoweb.D2WContext d2wContext,
WOSession session,
EODataSource dataSource,
WODisplayGroup displayGroup) |
NSArray |
referenceEOs() |
EOEnterpriseObject |
selectedObject()
The currently selected object.
|
NSArray |
selectedObjects()
The currently selected objects.
|
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(EODataSource eodatasource) |
void |
setSelectedObject(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<EOSortOrdering> |
sortOrderings() |
void |
takeValuesFromRequest(WORequest r,
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 org.apache.log4j.Logger log
protected boolean _shouldRefetch
protected String _sessionID
protected WODisplayGroup _displayGroup
public boolean _hasToUpdate
protected boolean _rowFlip
protected Object dataSourceState
public EOEnterpriseObject referenceEO
public ERD2WListPage(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(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 EOEnterpriseObject selectedObject()
selectedObject
in interface com.webobjects.directtoweb.SelectPageInterface
public void setSelectedObject(EOEnterpriseObject eo)
setSelectedObject
in interface com.webobjects.directtoweb.SelectPageInterface
public NSArray selectedObjects()
public void setSelectedObjects(NSArray eos)
public WOComponent selectObjectAction()
public WOComponent backAction()
public String urlForCurrentState()
urlForCurrentState
in interface ERXComponentActionRedirector.Restorable
urlForCurrentState
in class ERD2WPage
protected void setSortOrderingsOnDisplayGroup(NSArray sortOrderings, WODisplayGroup dg)
public static WOComponent printerFriendlyVersion(com.webobjects.directtoweb.D2WContext d2wContext, WOSession session, EODataSource dataSource, WODisplayGroup displayGroup)
public WOComponent printerFriendlyVersion()
public String descriptionForResponse(WOResponse aResponse, 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<EOSortOrdering> sortOrderings()
public String defaultSortKey()
public void takeValuesFromRequest(WORequest r, WOContext c)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
protected void _fetchDisplayGroup(WODisplayGroup dg)
protected void fetchIfNecessary()
public WOActionResults invokeAction(WORequest r, WOContext c)
ERD2WPage
invokeAction
in class ERD2WPage
public void appendToResponse(WOResponse r, WOContext c)
ERD2WPage
appendToResponse
in class ERD2WPage
public void setDataSource(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 WOComponent deleteObjectAction()
public WOComponent editObjectAction()
public WOComponent inspectObjectAction()
protected 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 – 2024 Project Wonder.