|
Project Wonder 5.0.0.8794 | |||||||||
| 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. Descendes from ERD2WPage instead of D2WList.
| 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 |
|---|
WOComponent._EventLoggingEnabler, WOComponent.Event |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
protected WODisplayGroup |
_displayGroup
Holds the display group. |
boolean |
_hasToUpdate
|
protected boolean |
_rowFlip
|
protected boolean |
_shouldRefetch
|
protected Object |
dataSourceState
|
static Logger |
log
logging support |
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, MINUSONE |
| 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.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERD2WListPage(WOContext c)
Public constructor. |
|
| Method Summary | |
|---|---|
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()
|
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 EOditingContext has changed. |
WOComponent |
editObjectAction()
|
void |
finalize()
Override to un-register for stop obsevring notifcations. |
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. |
int |
listSize()
The number of objects in the list. |
protected EOEnterpriseObject |
localInstanceOfObject()
|
int |
numberOfObjectsPerBatch()
|
WOComponent |
printerFriendlyVersion()
|
static WOComponent |
printerFriendlyVersion(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. |
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 |
shouldShowSelectAll()
|
boolean |
showCancel()
Should we show the cancel button? It's only visible when we have a nextPage set up. |
NSArray |
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()
|
| Methods inherited from class com.webobjects.directtoweb.D2WPage |
|---|
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings |
| 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 Logger log
protected boolean _shouldRefetch
protected WODisplayGroup _displayGroup
public boolean _hasToUpdate
protected boolean _rowFlip
protected Object dataSourceState
public EOEnterpriseObject referenceEO
| Constructor Detail |
|---|
public ERD2WListPage(WOContext c)
EOEditingContext.EditingContextDidSaveChangesNotification so that
component stays informed when objects are deleted and added.
c - current context| Method Detail |
|---|
public void finalize()
throws Throwable
finalize in class D2WPageThrowablepublic WODisplayGroup displayGroup()
displayGroup in interface ERDListPageInterfaceprotected void createDisplayGroup()
public boolean useBatchingDisplayGroup()
public void editingContextDidSaveChanges(NSNotification notif)
EOditingContext has changed. Sets
_hasToUpdate which in turn lets the group refetch on the next
display.
public boolean isEntityReadOnly()
isEntityReadOnly in class ERD2WPagepublic boolean isEntityEditable()
ERD2WPageisEntityEditable 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 ERD2WPagepublic 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 SelectPageInterfacepublic void setSelectedObject(EOEnterpriseObject eo)
setSelectedObject in interface SelectPageInterfacepublic NSArray selectedObjects()
public void setSelectedObjects(NSArray eos)
public WOComponent selectObjectAction()
public WOComponent backAction()
public String urlForCurrentState()
urlForCurrentState in interface ERXComponentActionRedirector.RestorableurlForCurrentState in class ERD2WPage
protected void setSortOrderingsOnDisplayGroup(NSArray sortOrderings,
WODisplayGroup dg)
public static WOComponent printerFriendlyVersion(D2WContext d2wContext,
WOSession session,
EODataSource dataSource,
WODisplayGroup displayGroup)
public WOComponent printerFriendlyVersion()
public String descriptionForResponse(WOResponse aResponse,
WOContext aContext)
ERD2WPage
descriptionForResponse in class ERD2WPagepublic int numberOfObjectsPerBatch()
public boolean userPreferencesCanSpecifySorting()
public boolean checkSortOrderingKeys()
public NSArray sortOrderings()
public String defaultSortKey()
public void takeValuesFromRequest(WORequest r,
WOContext c)
ERD2WPage
takeValuesFromRequest in class ERD2WPage
public WOActionResults invokeAction(WORequest r,
WOContext c)
ERD2WPage
invokeAction in class ERD2WPage
public void appendToResponse(WOResponse r,
WOContext c)
ERD2WPage
appendToResponse in class ERD2WPagepublic void setDataSource(EODataSource eodatasource)
setDataSource in interface ListPageInterfacesetDataSource in interface SelectPageInterfacesetDataSource in class ERD2WPageprotected void willUpdate()
protected void didUpdate()
protected void setupPhase()
public boolean isEntityInspectable()
public boolean isEntityPrintable()
public WOComponent deleteObjectAction()
public WOComponent editObjectAction()
public WOComponent inspectObjectAction()