|
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.ERD2WInspectPage
public class ERD2WInspectPage
Superclass for all inspecting/editing ERD2W templates.
| D2W Keys | |
inspectConfirmConfigurationName | inspectConfirmConfigurationName |
object | object |
editConfigurationName | editConfigurationName |
useNestedEditingContext | useNestedEditingContext |
shouldRenderBorder | shouldRenderBorder |
shouldShowActionButtons | shouldShowActionButtons |
shouldShowCancelButtons | shouldShowCancelButtons |
shouldShowSubmitButton | shouldShowSubmitButton |
hasForm | hasForm |
validationKeys | validationKeys |
shouldRevertChanges | shouldRevertChanges |
shouldSaveChanges | shouldSaveChanges |
shoudlvalidateBeforeSave | shoudlvalidateBeforeSave |
shouldCollectValidationExceptions | shouldCollectValidationExceptions |
shouldRecoverFromOptimisticLockingFailure | shouldRecoverFromOptimisticLockingFailure |
shouldRevertUponSaveFailure | shouldRevertUponSaveFailure |
firstResponder | firstResponder |
| 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 boolean |
_objectWasSaved
|
protected static String |
firstResponderContainerName
|
static Logger |
log
logging support |
static Logger |
validationCat
|
| 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 | |
|---|---|
ERD2WInspectPage(WOContext context)
Public constructor |
|
| Method Summary | |
|---|---|
WOComponent |
cancelAction()
|
WOComponent |
deleteAction()
|
boolean |
doesNotHaveForm()
|
WOComponent |
editAction()
|
boolean |
hasPropertyName()
|
WOComponent |
nextPage()
|
WOComponent |
nextPage(boolean doConfirm)
|
boolean |
objectWasSaved()
|
String |
otherTagStringsForPropertyKeyComponentCell()
Generates other strings to be included in the WOGenericContainer tag for the propertyKey component cell. |
void |
performAdditionalValidations()
|
WOComponent |
previousPage()
|
WOComponent |
printerFriendlyVersion()
|
String |
saveButtonFileName()
|
String |
scriptForFirstResponderActivation()
Constructs a JavaScript string to include in the WOComponent that will give a particular field focus when the page is loaded, if the key firstResponderKey from the d2wContext resolves. |
void |
setObject(EOEnterpriseObject eoenterpriseobject)
Implementation of the InspectPageInterface |
void |
setPreviousPage(WOComponent existingPageName)
|
boolean |
shouldCollectValidationExceptions()
Should exceptions also be handled here or only handled by the parent. |
boolean |
shouldRecoverFromOptimisticLockingFailure()
|
boolean |
shouldRenderBorder()
|
boolean |
shouldRevertChanges()
|
boolean |
shouldRevertUponSaveFailure()
|
boolean |
shouldSaveChanges()
|
boolean |
shouldShowActionButtons()
|
boolean |
shouldShowCancelButton()
|
boolean |
shouldShowSubmitButton()
|
boolean |
shouldValidateBeforeSave()
|
boolean |
showCancel()
|
WOComponent |
submitAction()
|
String |
tabScriptString()
Constructs a JavaScript string that will give a particular field focus when the page is loaded. |
void |
takeValuesFromRequest(WORequest request,
WOContext context)
Overridden from the parent for better logging. |
boolean |
tryToSaveChanges(boolean validateObject)
|
String |
urlForCurrentState()
Implementation of the ERXComponentActionRedirector.Restorable
interface. |
| 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, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface er.directtoweb.interfaces.ERDEditPageInterface |
|---|
object |
| Methods inherited from interface com.webobjects.directtoweb.InspectPageInterface |
|---|
setNextPage, setNextPageDelegate |
| Field Detail |
|---|
public static final Logger log
public static final Logger validationCat
protected static final String firstResponderContainerName
protected boolean _objectWasSaved
| Constructor Detail |
|---|
public ERD2WInspectPage(WOContext context)
context - current context| Method Detail |
|---|
public String urlForCurrentState()
ERD2WPageERXComponentActionRedirector.Restorable
interface. This implementation creates an URL with the name of the
current pageConfiguration as a direct action, which assumes a
ERD2WDirectAction as the default direct action. Subclasses need
to implement more sensible behaviour.
urlForCurrentState in interface ERXComponentActionRedirector.RestorableurlForCurrentState in class ERD2WPagepublic boolean objectWasSaved()
objectWasSaved in interface ERDObjectSaverInterfacepublic WOComponent previousPage()
previousPage in interface ERDFollowPageInterfacepublic void setPreviousPage(WOComponent existingPageName)
setPreviousPage in interface ERDFollowPageInterfacepublic WOComponent nextPage()
nextPage in class ERD2WPagepublic WOComponent nextPage(boolean doConfirm)
public WOComponent editAction()
public WOComponent deleteAction()
throws Throwable
Throwablepublic WOComponent cancelAction()
public boolean shouldRenderBorder()
public boolean shouldShowActionButtons()
public boolean shouldShowCancelButton()
public boolean shouldShowSubmitButton()
public boolean showCancel()
showCancel in class ERD2WPagepublic boolean doesNotHaveForm()
public void setObject(EOEnterpriseObject eoenterpriseobject)
ERD2WPageInspectPageInterface
setObject in interface com.webobjects.directtoweb.InspectPageInterfacesetObject in class ERD2WPagepublic void performAdditionalValidations()
public void takeValuesFromRequest(WORequest request,
WOContext context)
ERD2WPage
takeValuesFromRequest in class ERD2WPagepublic boolean hasPropertyName()
public boolean shouldRevertChanges()
public boolean shouldSaveChanges()
public boolean shouldValidateBeforeSave()
public boolean shouldCollectValidationExceptions()
ERD2WPage
shouldCollectValidationExceptions in class ERD2WPagepublic boolean shouldRecoverFromOptimisticLockingFailure()
public boolean shouldRevertUponSaveFailure()
public boolean tryToSaveChanges(boolean validateObject)
public WOComponent submitAction()
throws Throwable
Throwablepublic String saveButtonFileName()
public WOComponent printerFriendlyVersion()
public String otherTagStringsForPropertyKeyComponentCell()
firstResponderKey to mark the cell where the propertyKey is that named
by the firstResponderKey so that the "focusing" JavaScript tabScriptString
can identify it.
td tag for the propertyKey component cell.
tabScriptString
public String tabScriptString()
Constructs a JavaScript string that will give a particular field focus when the page is loaded. If the key
firstResponderKey from the d2wContext resolves, the script will attempt to focus on the form field
belonging to the property key named by the firstResponderKey. Otherwise, the script will just focus
on the first field in the form.
Note that the key useFocus must resolve to true in order for the script to be
generated.
- Returns:
- a JavaScript string.
scriptForFirstResponderActivation
public String scriptForFirstResponderActivation()
Constructs a JavaScript string to include in the WOComponent that will give a particular field focus when the
page is loaded, if the key firstResponderKey from the d2wContext resolves. The script will attempt
to focus on the form field belonging to the property key named by the firstResponderKey.
- Returns:
- a JavaScript string to bring focus to a specific form element.
Overview
Package
Class
Use
Tree
Deprecated
Components
D2WKeys
Index
Help
Last updated: Wed, Feb 22, 2012 07:00 AM EST
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2002 – 2011 Project Wonder.