|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.directtoweb.D2WComponent com.webobjects.directtoweb.D2WPage er.directtoweb.ERD2WPage er.directtoweb.ERD2WListPage
Nested Class Summary |
Nested classes inherited from class er.directtoweb.ERD2WPage |
ERD2WPage.Keys |
Nested classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent._EventLoggingEnabler, WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class 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
|
static ERXLogger |
log
logging support |
EOEnterpriseObject |
referenceEO
|
Fields inherited from class er.directtoweb.ERD2WPage |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _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 |
_CLASS, NullValue |
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. |
void |
appendToResponse(WOResponse r,
WOContext c)
Overridden from the parent for better logging. |
WOComponent |
backAction()
|
String |
backgroundColorForRow()
The background color for the current row. |
String |
colorForRow()
|
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. |
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()
|
boolean |
isEntityInspectable()
|
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()
|
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. |
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. |
protected void |
setSortOrderingsOnDisplayGroup(NSArray sortOrderings,
WODisplayGroup dg)
|
protected void |
setupPhase()
|
boolean |
shouldShowSelectAll()
|
boolean |
showCancel()
|
NSArray |
sortOrderings()
|
void |
takeValuesFromRequest(WORequest r,
WOContext c)
Overridden from the parent for better logging. |
String |
targetString()
|
String |
urlForCurrentState()
end of reimplementation |
boolean |
userPreferencesCanSpecifySorting()
|
void |
warmUpForDisplay()
|
Methods inherited from class com.webobjects.directtoweb.D2WPage |
alternateRowColor, dataSource, extraBindings, pageWrapperName, 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 ERXLogger log
protected WODisplayGroup _displayGroup
public boolean _hasToUpdate
protected boolean _rowFlip
public EOEnterpriseObject referenceEO
Constructor Detail |
public ERD2WListPage(WOContext c)
EOEditingContext.EditingContextDidSaveChangesNotification
so that
component stays informed when objects are deleted and added.
c
- current contextMethod Detail |
public void finalize() throws Throwable
Throwable
public WODisplayGroup displayGroup()
displayGroup
in interface ERDListPageInterface
public void editingContextDidSaveChanges(NSNotification notif)
EOditingContext
has changed. Sets _hasToUpdate
which in turn lets the group refetch on the next display.
public boolean isEntityReadOnly()
public boolean isEntityEditable()
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 SelectPageInterface
public void setSelectedObject(EOEnterpriseObject eo)
setSelectedObject
in interface SelectPageInterface
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(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 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 ERD2WPage
public void setDataSource(EODataSource eodatasource)
setDataSource
in interface ListPageInterface
setDataSource
in class ERD2WPage
protected void setupPhase()
public boolean isEntityInspectable()
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()
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |