/** * {@inheritDoc} * * Returns "Submit Query" if <tt>name</tt> attribute is defined and <tt>value</tt> attribute is not defined. */ @Override public NameValuePair[] getSubmitNameValuePairs() { if (!getNameAttribute().isEmpty() && !hasAttribute("value")) { return new NameValuePair[]{new NameValuePair(getNameAttribute(), DEFAULT_VALUE)}; } return super.getSubmitNameValuePairs(); }
/** * {@inheritDoc} * * Returns "Submit Query" if <tt>name</tt> attribute is defined and <tt>value</tt> attribute is not defined. */ @Override public NameValuePair[] getSubmitKeyValuePairs() { if (getNameAttribute().length() != 0 && !hasAttribute("value")) { return new NameValuePair[]{new NameValuePair(getNameAttribute(), DEFAULT_VALUE)}; } return super.getSubmitKeyValuePairs(); } }
/** * {@inheritDoc} * * Returns "Submit Query" if <tt>name</tt> attribute is defined and <tt>value</tt> attribute is not defined. */ @Override public NameValuePair[] getSubmitNameValuePairs() { if (!getNameAttribute().isEmpty() && !hasAttribute("value")) { return new NameValuePair[]{new NameValuePair(getNameAttribute(), DEFAULT_VALUE)}; } return super.getSubmitNameValuePairs(); }
/** * {@inheritDoc} * * Returns "Submit Query" if <tt>name</tt> attribute is defined and <tt>value</tt> attribute is not defined. */ @Override public NameValuePair[] getSubmitKeyValuePairs() { if (getNameAttribute().length() != 0 && !hasAttribute("value")) { return new NameValuePair[]{new NameValuePair(getNameAttribute(), DEFAULT_VALUE)}; } return super.getSubmitKeyValuePairs(); } }
/** * {@inheritDoc} * * Returns "Submit Query" if <tt>name</tt> attribute is defined and <tt>value</tt> attribute is not defined. */ @Override public NameValuePair[] getSubmitKeyValuePairs() { if (getNameAttribute().length() != 0 && !hasAttribute("value")) { return new NameValuePair[]{new NameValuePair(getNameAttribute(), DEFAULT_VALUE)}; } return super.getSubmitKeyValuePairs(); } }
/** * Creates an instance. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name of the element type to instantiate * @param page the page that contains this element * @param attributes the initial attributes */ HtmlSubmitInput(final String namespaceURI, final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(namespaceURI, qualifiedName, page, attributes); if (getPage().getWebClient().getBrowserVersion().isIE() && !hasAttribute("value")) { setAttribute("value", DEFAULT_VALUE); } }
/** * Creates an instance. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name of the element type to instantiate * @param page the page that contains this element * @param attributes the initial attributes */ HtmlSubmitInput(final String namespaceURI, final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(namespaceURI, qualifiedName, page, attributes); if (getPage().getWebClient().getBrowserVersion().isIE() && !hasAttribute("value")) { setAttribute("value", DEFAULT_VALUE); } }
/** * Creates an instance. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name of the element type to instantiate * @param page the page that contains this element * @param attributes the initial attributes */ HtmlSubmitInput(final String namespaceURI, final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(namespaceURI, qualifiedName, page, attributes); if (getPage().getWebClient().getBrowserVersion().isIE() && !hasAttribute("value")) { setAttribute("value", DEFAULT_VALUE); } }