|
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
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WPage
er.directtoweb.pages.ERD2WPage
er.directtoweb.pages.ERD2WListPage
public class ERD2WListPage
Reimplementation of the D2WListPage. Descends from ERD2WPage instead of D2WList.
D2W Keys | |
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 |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class er.directtoweb.pages.ERD2WPage |
---|
ERD2WPage.Keys |
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 | |
---|---|
protected com.webobjects.appserver.WODisplayGroup |
_displayGroup
Holds the display group. |
boolean |
_hasToUpdate
|
protected boolean |
_rowFlip
|
protected java.lang.String |
_sessionID
|
protected boolean |
_shouldRefetch
|
protected java.lang.Object |
dataSourceState
|
static org.apache.log4j.Logger |
log
logging support |
com.webobjects.eocontrol.EOEnterpriseObject |
referenceEO
|
Fields inherited from class er.directtoweb.pages.ERD2WPage |
---|
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationLog |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
---|
_eo, _localContext, currentObjectKey |
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 | |
---|---|
ERD2WListPage(com.webobjects.appserver.WOContext c)
Public constructor. |
Method Summary | |
---|---|
protected void |
_fetchDisplayGroup(com.webobjects.appserver.WODisplayGroup dg)
|
java.lang.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()
|
java.lang.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). |
java.lang.String |
colorForRow()
|
protected void |
createDisplayGroup()
Creates the display group and sets the _displayGroup instance variable |
java.lang.String |
defaultSortKey()
|
com.webobjects.appserver.WOComponent |
deleteObjectAction()
|
java.lang.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()
|
com.webobjects.appserver.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()
|
java.lang.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(com.webobjects.foundation.NSArray displayPropertyKeys,
java.lang.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,
com.webobjects.appserver.WODisplayGroup displayGroup)
|
com.webobjects.foundation.NSArray |
referenceEOs()
|
com.webobjects.eocontrol.EOEnterpriseObject |
selectedObject()
The currently selected object. |
com.webobjects.foundation.NSArray |
selectedObjects()
The currently selected objects. |
com.webobjects.appserver.WOComponent |
selectObjectAction()
Action method to select an object. |
java.lang.String |
sessionID()
Cached session ID, so we don't need to awake. |
void |
setBackgroundColorForRow(java.lang.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(com.webobjects.foundation.NSArray eos)
Sets currently selected objects. |
protected void |
setSortOrderingsOnDisplayGroup(com.webobjects.foundation.NSArray sortOrderings,
com.webobjects.appserver.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. |
com.webobjects.foundation.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. |
java.lang.String |
targetString()
|
java.lang.String |
urlForCurrentState()
end of reimplementation |
boolean |
useBatchingDisplayGroup()
Checks the d2wContext for useBatchingDisplayGroup and returns it. |
boolean |
userPreferencesCanSpecifySorting()
|
void |
warmUpForDisplay()
|
protected void |
willUpdate()
|
Methods inherited from class com.webobjects.directtoweb.D2WPage |
---|
alternateRowColor, dataSource, extraBindings, finalize, replacementAssociationForAssociation, setExtraBindings |
Methods inherited from class com.webobjects.directtoweb.D2WComponent |
---|
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 |
Methods inherited from class com.webobjects.appserver.WOComponent |
---|
_associationWithName, _awakeInContext, _childTemplate, _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, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForKey, valueForKeyPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webobjects.directtoweb.ListPageInterface |
---|
setNextPage, setNextPageDelegate |
Methods inherited from interface com.webobjects.directtoweb.SelectPageInterface |
---|
nextPageDelegate, setNextPageDelegate |
Field Detail |
---|
public static final org.apache.log4j.Logger log
protected boolean _shouldRefetch
protected java.lang.String _sessionID
protected com.webobjects.appserver.WODisplayGroup _displayGroup
public boolean _hasToUpdate
protected boolean _rowFlip
protected java.lang.Object dataSourceState
public com.webobjects.eocontrol.EOEnterpriseObject referenceEO
Constructor Detail |
---|
public ERD2WListPage(com.webobjects.appserver.WOContext c)
EOEditingContext.EditingContextDidSaveChangesNotification
so that
component stays informed when objects are deleted and added.
c
- current contextMethod Detail |
---|
public com.webobjects.appserver.WODisplayGroup displayGroup()
displayGroup
in interface ERDListPageInterface
protected void createDisplayGroup()
public boolean useBatchingDisplayGroup()
public java.lang.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 java.lang.String alternatingColorForRow()
public java.lang.String backgroundColorForRow()
public void setBackgroundColorForRow(java.lang.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 com.webobjects.foundation.NSArray selectedObjects()
public void setSelectedObjects(com.webobjects.foundation.NSArray eos)
public com.webobjects.appserver.WOComponent selectObjectAction()
public com.webobjects.appserver.WOComponent backAction()
public java.lang.String urlForCurrentState()
urlForCurrentState
in interface ERXComponentActionRedirector.Restorable
urlForCurrentState
in class ERD2WPage
protected void setSortOrderingsOnDisplayGroup(com.webobjects.foundation.NSArray sortOrderings, com.webobjects.appserver.WODisplayGroup dg)
public static com.webobjects.appserver.WOComponent printerFriendlyVersion(com.webobjects.directtoweb.D2WContext d2wContext, com.webobjects.appserver.WOSession session, com.webobjects.eocontrol.EODataSource dataSource, com.webobjects.appserver.WODisplayGroup displayGroup)
public com.webobjects.appserver.WOComponent printerFriendlyVersion()
public java.lang.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(com.webobjects.foundation.NSArray displayPropertyKeys, java.lang.String sortKey)
displayPropertyKeys
- the current display propertiessortKey
- the sort key to validate
public com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOSortOrdering> sortOrderings()
public java.lang.String defaultSortKey()
public void takeValuesFromRequest(com.webobjects.appserver.WORequest r, com.webobjects.appserver.WOContext c)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
protected void _fetchDisplayGroup(com.webobjects.appserver.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 java.lang.String formTargetJavaScriptUrl()
public java.lang.String targetString()
public boolean shouldShowSelectAll()
public void warmUpForDisplay()
public java.lang.String colorForRow()
public com.webobjects.foundation.NSArray referenceEOs()
public boolean shouldShowBatchNavigation()
showBatchNavigation
to false.
|
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 |