public class FormNavigationAction extends NavigationAction
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
CLICK_NAVIGATION_ACTION, FORM_NAVIGATION_ACTION, LIST_SELECTION_NAVIGATION_ACTION, TEXT_ENTRY_NAVIGATION_ACTION
Constructor and Description |
---|
FormNavigationAction()
Default constructor.
|
FormNavigationAction(FormNavigationAction formNavigationAction)
Creates a new
FormNavigationAction based on an
existing one. |
FormNavigationAction(int navigationActionID,
ScrapeableFile scrapeableFile,
java.lang.String name,
ScrapeableFile targetScrapeableFile,
java.lang.String criteria,
java.lang.String formParametersToSet,
boolean invokedFromScript,
int sequence)
Initializes the action fully.
|
FormNavigationAction(ScrapeableFile scrapeableFile)
Initializes an empty instance for the given scrapeable file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttributes()
Returns a list of possible attributes for this action
|
protected NavigationActionDoer |
getNavigationActionDoerForHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
Gets a
NavigationActionDoer based on a
HtmlElement . |
int |
getNavigationActionType()
Gets the numeric constant that represents the type
of the action.
|
addFormParameterToSet, compareTo, delete, dumpToLog, getCriteria, getFormParametersToSet, getFormParametersToSetAsSet, getFormParametersToSetAsSingleValue, getFormParameterToSet, getHtmlElementIdentifier, getHtmlElementIdentifierAttribute, getHtmlElementIdentifierValidSeqencesStringValue, getHtmlElementIdentifierValidSequences, getHtmlElementIdentifierValue, getID, getInvokedFromScript, getName, getNavigationActionDoers, getNumFormParametersToSet, getScrapeableFile, getSequence, getTargetScrapeableFile, getTargetScrapeableFileName, getView, removeFormParameterToSet, save, setCriteria, setFormParametersToSet, setFormParametersToSetAsSingleValue, setFormParameterToSetName, setFormParameterToSetValue, setHtmlElementIdentifier, setHtmlElementIdentifier, setHtmlElementIdentifierAttribute, setHtmlElementIdentifierValidSequences, setHtmlElementIdentifierValue, setID, setInvokedFromScript, setName, setScrapeableFile, setSequence, setTargetScrapeableFile, setTargetScrapeableFileName, setView
public FormNavigationAction()
public FormNavigationAction(ScrapeableFile scrapeableFile)
scrapeableFile
- The scrapeable file containing the action.public FormNavigationAction(int navigationActionID, ScrapeableFile scrapeableFile, java.lang.String name, ScrapeableFile targetScrapeableFile, java.lang.String criteria, java.lang.String formParametersToSet, boolean invokedFromScript, int sequence)
navigationActionID
- The database ID.scrapeableFile
- The scrapeable file containing the action.name
- An identifier for the action.targetScrapeableFile
- The scrapeable file targeted by this action.criteria
- Used to determine which forms this action should
apply to.formParametersToSet
- A URL-type list of parameters that should be
set in the form before it gets submitted.invokedFromScript
- Whether or not the action is to be invoked from a
script.sequence
- The sequence of the action.public FormNavigationAction(FormNavigationAction formNavigationAction)
FormNavigationAction
based on an
existing one.formNavigationAction
- A FormNavigationAction
.public java.lang.String[] getAttributes()
NavigationAction
getAttributes
in class NavigationAction
protected NavigationActionDoer getNavigationActionDoerForHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
NavigationActionDoer
based on a
HtmlElement
.getNavigationActionDoerForHtmlElement
in class NavigationAction
htmlElement
- The HtmlElement
.NavigationActionDoer
.public int getNavigationActionType()
getNavigationActionType
in class NavigationAction