public class WebImage extends WebRequestSource
| Modifier and Type | Class and Description |
|---|---|
class |
WebImage.Scriptable |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPresetParameter(String name,
String value)
Records a parameter defined by including it in the destination URL.
|
String |
getAltText() |
protected String |
getEmptyParameterValue() |
WebLink |
getLink() |
String |
getName()
Returns the name associated with this request source.
|
String[] |
getParameterNames()
Returns an array containing the names of any parameters defined as part of this link's URL.
|
String[] |
getParameterValues(String name)
Returns the multiple default values of the named parameter.
|
WebRequest |
getRequest()
Creates and returns a web request which will simulate clicking on this link.
|
String |
getSource() |
ScriptableDelegate |
newScriptable() |
void |
recordParameters(ParameterProcessor processor)
Iterates through the parameters in this holder, recording them in the supplied parameter processor.
|
protected void |
setDestination(String destination) |
doEvent, doEventScript, getAttribute, getBaseResponse, getBaseURL, getClassName, getCurrentFrameContents, getDestination, getDOMSubtree, getElement, getFragmentIdentifier, getFrame, getHTMLPage, getID, getNode, getPageFrame, getParentDelegate, getRelativeURL, getScriptingHandler, getTagName, getTarget, getText, getTitle, handleEvent, isSupportedAttribute, loadDestinationParameters, removeAttribute, setAttribute, setTargetAttribute, submitRequest, submitRequestpublic String getName()
WebRequestSourcegetName in interface HTMLElementgetName in class WebRequestSourcepublic String getSource()
public String getAltText()
public WebLink getLink()
public ScriptableDelegate newScriptable()
public WebRequest getRequest()
getRequest in class WebRequestSourcepublic String[] getParameterNames()
getParameterNames in class WebRequestSourcepublic String[] getParameterValues(String name)
getParameterValues in class WebRequestSourceprotected void addPresetParameter(String name, String value)
WebRequestSourceaddPresetParameter in class WebRequestSourceprotected String getEmptyParameterValue()
getEmptyParameterValue in class WebRequestSourceprotected void setDestination(String destination)
setDestination in class WebRequestSourcepublic void recordParameters(ParameterProcessor processor) throws IOException
IOExceptionCopyright © 2012. All Rights Reserved.