com.gargoylesoftware.htmlunit.javascript
Interface ScriptableWithFallbackGetter

All Superinterfaces:
net.sourceforge.htmlunit.corejs.javascript.Scriptable
All Known Implementing Classes:
ComputedCSSStyleDeclaration, CSSStyleDeclaration, DocumentProxy, FormChild, FormField, HTMLAnchorElement, HTMLAppletElement, HTMLAreaElement, HTMLAudioElement, HTMLBaseElement, HTMLBaseFontElement, HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLCanvasElement, HTMLDelElement, HTMLDirectoryElement, HTMLDivElement, HTMLDListElement, HTMLDocument, HTMLElement, HTMLEmbedElement, HTMLFieldSetElement, HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement, HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement, HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLInsElement, HTMLIsIndexElement, HTMLLabelElement, HTMLLegendElement, HTMLLIElement, HTMLLinkElement, HTMLListElement, HTMLMapElement, HTMLMediaElement, HTMLMenuElement, HTMLMetaElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement, HTMLOptionElement, HTMLOptionsCollection, HTMLParagraphElement, HTMLParamElement, HTMLPreElement, HTMLProgressElement, HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLSourceElement, HTMLSpacerElement, HTMLSpanElement, HTMLStyleElement, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, HTMLTableComponent, HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement, HTMLUnknownElement, HTMLVideoElement, HTMLWBRElement, MimeTypeArray, NamedNodeMap, Plugin, PluginArray, RowContainer, SimpleArray, SimpleScriptableProxy, Window, WindowProxy

public interface ScriptableWithFallbackGetter
extends net.sourceforge.htmlunit.corejs.javascript.Scriptable

Provides a clean way to specify a fallback property getter when the "normal way" failed. Most properties are "cleanly" defined but some host objects like Document or Window are able to return a value that has not been configured as a property (ex: the DOM node whose ID or name matches the property name).

Version:
$Revision: 6701 $
Author:
Marc Guillemot

Field Summary
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Method Summary
 Object getWithFallback(String name)
          Fallback called when no configured property is found with the given name on the Scriptable object.
 
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype
 

Method Detail

getWithFallback

Object getWithFallback(String name)
Fallback called when no configured property is found with the given name on the Scriptable object.

Parameters:
name - the name of the requested property
Returns:
the object value, Scriptable.NOT_FOUND if nothing is found


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.