er.extensions.components.javascript
Class ERXJSAutoClosePage
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.javascript.ERXJSAutoClosePage
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
public class ERXJSAutoClosePage
- extends WOComponent
When returned will close the current page by calling onload=window.close().
Useful for server side determining if a window should be closed.
No Bindings.
- See Also:
- Serialized Form
| Methods inherited from class com.webobjects.appserver.WOComponent |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding |
ERXJSAutoClosePage
public ERXJSAutoClosePage(WOContext aContext)
- Public constructor
isStateless
public boolean isStateless()
- component is stateless
- Overrides:
isStateless in class WOComponent
onLoad
public String onLoad()
- Returns:
- JavaScript for onLoad function, additionalJavaScript() (if any) followed by "window.close()"
refreshOpener
public void refreshOpener()
- Convenience method to set additionalJavaScript() to "opener.location.reload(true);")
additionalJavaScript
public String additionalJavaScript()
- Returns:
- additionalJavaScript to execute before closing the current window
setAdditionalJavaScript
public void setAdditionalJavaScript(String javaScript)
- Parameters:
javaScript - the additional JavaScript to execute before closing the current window
Copyright © 2002 – 2007 Project Wonder.