WebObjects 5.4.2

com.webobjects.directtoweb
Class D2WConfirmPage

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.directtoweb.D2WComponent
              extended by com.webobjects.directtoweb.D2WPage
                  extended by com.webobjects.directtoweb.D2WConfirmPage
All Implemented Interfaces:
WOActionResults, ConfirmPageInterface, DTWGeneration, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
Direct Known Subclasses:
BASConfirmPage, NEUConfirmPage, WOLConfirmPage

public class D2WConfirmPage
extends D2WPage
implements DTWGeneration, ConfirmPageInterface

The D2WConfirmPage class provides the behavior for the confirm page Direct to Web templates, specifically BASConfirmPage, NEUConfirmPage, and WOLConfirmPage. The classes for these pages inherit directly from D2WConfirmPage and define no additional methods or variables.

Most of the methods in this class are accessed, via the EOKeyValueCoding interface defined in the EOControl framework) from the Direct to Web template's bindings (.wod) file. If you create a Direct to Web template from a confirm page, you can invoke the methods in this class in the same way. See the "Direct to Web" chapter of WebObjects Tools and Techniques for more information about creating a Direct to Web template.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
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.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 
Fields inherited from class com.webobjects.directtoweb.D2WComponent
currentObjectKey
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
D2WConfirmPage(WOContext aContext)
          Constructs a D2WConfirmPage with the specified context.
 
Method Summary
 WOComponent cancelAction()
          Is invoked when the user clicks Cancel.
 WOComponent confirmAction()
          Executes when the user clicks Confirm.
 String message()
          Returns the message displayed by the confirm page.
 WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
          This method is intentionally undocumented.
 void setCancelDelegate(NextPageDelegate nextPage)
          Sets the cancel delegate of the receiver.
 void setConfirmDelegate(NextPageDelegate nextPage)
          Sets the confirm delegate of the receiver.
 void setMessage(String aMessage)
          Sets the message displayed by the confirm page.
 
Methods inherited from class com.webobjects.directtoweb.D2WPage
alternateRowColor, dataSource, descriptionForResponse, extraBindings, finalize, nextPage, nextPageDelegate, pageWrapperName, setDataSource, setExtraBindings, setNextPage, setNextPageDelegate, showCancel
 
Methods inherited from class com.webobjects.directtoweb.D2WComponent
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContext, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, object, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setLocalContext, setObject, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
 
Methods inherited from class com.webobjects.appserver.WOComponent
appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

D2WConfirmPage

public D2WConfirmPage(WOContext aContext)
Constructs a D2WConfirmPage with the specified context.

Parameters:
aContext - - the WOContext.
Method Detail

setConfirmDelegate

public void setConfirmDelegate(NextPageDelegate nextPage)
Sets the confirm delegate of the receiver. When the user clicks Yes in the confirm page, Direct to Web invokes the nextPage method on the confirm delegate.

Specified by:
setConfirmDelegate in interface ConfirmPageInterface
Parameters:
nextPage - - the next page delegate.

setCancelDelegate

public void setCancelDelegate(NextPageDelegate nextPage)
Sets the cancel delegate of the receiver. When the user clicks No in the confirm page, Direct to Web invokes the nextPage method on the cancel delegate.

Specified by:
setCancelDelegate in interface ConfirmPageInterface
Parameters:
nextPage - - the next page delegate.

message

public String message()
Returns the message displayed by the confirm page.

Returns:
the message displayed by the confirm page.

setMessage

public void setMessage(String aMessage)
Sets the message displayed by the confirm page.

Specified by:
setMessage in interface ConfirmPageInterface
Parameters:
aMessage - - the message displayed by the confirm page.

confirmAction

public WOComponent confirmAction()
                          throws Throwable
Executes when the user clicks Confirm. To specify the confirm behavior, use the confirm delegate.

Returns:
the confirm page.
Throws:
Throwable
See Also:
D2WConfirmPage.setConfirmDelegate(com.webobjects.directtoweb.NextPageDelegate)

cancelAction

public WOComponent cancelAction()
                         throws Throwable
Is invoked when the user clicks Cancel. If you need this method to execute custom code, use the cancel delegate.

Returns:
the confirm page.
Throws:
Throwable
See Also:
D2WConfirmPage.setCancelDelegate(com.webobjects.directtoweb.NextPageDelegate)

replacementAssociationForAssociation

public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation,
                                                          String oldBinding,
                                                          DTWTemplate aTemplate,
                                                          WOContext aContext)
Description copied from class: D2WPage
This method is intentionally undocumented. You should never have to invoke or customize it.

Specified by:
replacementAssociationForAssociation in interface DTWGeneration
Overrides:
replacementAssociationForAssociation in class D2WPage

Last updated June 2008

Copyright © 2000-2008 Apple Inc.