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, submitRequest
public String getName()
WebRequestSource
getName
in interface HTMLElement
getName
in class WebRequestSource
public String getSource()
public String getAltText()
public WebLink getLink()
public ScriptableDelegate newScriptable()
public WebRequest getRequest()
getRequest
in class WebRequestSource
public String[] getParameterNames()
getParameterNames
in class WebRequestSource
public String[] getParameterValues(String name)
getParameterValues
in class WebRequestSource
protected void addPresetParameter(String name, String value)
WebRequestSource
addPresetParameter
in class WebRequestSource
protected String getEmptyParameterValue()
getEmptyParameterValue
in class WebRequestSource
protected void setDestination(String destination)
setDestination
in class WebRequestSource
public void recordParameters(ParameterProcessor processor) throws IOException
IOException
Copyright © 2012. All Rights Reserved.