/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> * @return whether or not this version version 52 of a Firefox browser */ public boolean isFirefox52() { return isFirefox() && getBrowserVersionNumeric() == 52; }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> * @return whether or not this version version 52 of a Firefox browser */ public boolean isFirefox52() { return isFirefox() && getBrowserVersionNumeric() == 52; }
/** * Returns the value of the "align" property. * @return the value of the "align" property */ public String jsxGet_align() { final boolean returnInvalidValues = getBrowserVersion().isFirefox(); return getAlign(returnInvalidValues); }
/** * {@inheritDoc} */ @Override public Object getDefaultValue(final Class< ? > hint) { final boolean ff = getBrowserVersion().isFirefox(); if (ff && (String.class.equals(hint) || hint == null)) { return getPageSelection().toString(); } return super.getDefaultValue(hint); }
/** * {@inheritDoc} */ @Override public Object getDefaultValue(final Class< ? > hint) { final boolean ff = getBrowserVersion().isFirefox(); if (ff && (String.class.equals(hint) || hint == null)) { return getPageSelection().toString(); } return super.getDefaultValue(hint); }
/** * Looks at attributes with the specified name. * {@inheritDoc} */ public Object getWithFallback(final String name) { if (getBrowserVersion().isFirefox()) { return getIt(name); } return NOT_FOUND; }
/** * Returns the value of the <tt>link</tt> attribute. * @return the value of the <tt>link</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms534119.aspx">MSDN Documentation</a> */ public String jsxGet_link() { String link = getDomNodeOrDie().getAttribute("link"); if (link == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { link = "#0000ee"; } return link; }
/** * Returns the value of the <tt>aLink</tt> attribute. * @return the value of the <tt>aLink</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms533070.aspx">MSDN Documentation</a> */ public String jsxGet_aLink() { String aLink = getDomNodeOrDie().getAttribute("aLink"); if (aLink == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { aLink = "#ee0000"; } return aLink; }
/** * Returns the value of the <tt>bgColor</tt> attribute. * @return the value of the <tt>bgColor</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms533505.aspx">MSDN Documentation</a> */ public String jsxGet_bgColor() { String bgColor = getDomNodeOrDie().getAttribute("bgColor"); if (bgColor == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { bgColor = "#ffffff"; } return bgColor; }
/** * Returns the value of the <tt>link</tt> attribute. * @return the value of the <tt>link</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms534119.aspx">MSDN Documentation</a> */ public String jsxGet_link() { String link = getDomNodeOrDie().getAttribute("link"); if (link == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { link = "#0000ee"; } return link; }
/** * Returns the value of the <tt>vLink</tt> attribute. * @return the value of the <tt>vLink</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms534677.aspx">MSDN Documentation</a> */ public String jsxGet_vLink() { String vLink = getDomNodeOrDie().getAttribute("vLink"); if (vLink == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { vLink = "#000000"; } return vLink; }
/** * Returns the value of the <tt>vLink</tt> attribute. * @return the value of the <tt>vLink</tt> attribute * @see <a href="http://msdn.microsoft.com/en-us/library/ms534677.aspx">MSDN Documentation</a> */ public String jsxGet_vLink() { String vLink = getDomNodeOrDie().getAttribute("vLink"); if (vLink == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { vLink = "#000000"; } return vLink; }
/** * {@inheritDoc} * @see SubmittableElement#setDefaultChecked(boolean) */ @Override public void setDefaultChecked(final boolean defaultChecked) { defaultCheckedState_ = defaultChecked; if (getPage().getWebClient().getBrowserVersion().isFirefox()) { setChecked(defaultChecked); } }
/** * {@inheritDoc} Also sets the value attribute when emulating Netscape browsers. * @see SubmittableElement#setDefaultValue(String) * @see HtmlFileInput#setDefaultValue(String) */ public void setDefaultValue(final String defaultValue) { final boolean modifyValue = getPage().getWebClient().getBrowserVersion().isFirefox(); setDefaultValue(defaultValue, modifyValue); }
/** * {@inheritDoc} * @see SubmittableElement#setDefaultChecked(boolean) */ @Override public void setDefaultChecked(final boolean defaultChecked) { defaultCheckedState_ = defaultChecked; if (getPage().getWebClient().getBrowserVersion().isFirefox()) { setChecked(defaultChecked); } }
/** * Returns the value of the "value" property. * @return the value property */ public String jsxGet_value() { String value = getDomNodeOrNull().getAttribute("value"); if (value == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { value = getDomNodeOrNull().getText(); } return value; }
/** * Returns the value of the "value" property. * @return the value property */ public String jsxGet_value() { String value = getDomNodeOrNull().getAttribute("value"); if (value == DomElement.ATTRIBUTE_NOT_DEFINED && getBrowserVersion().isFirefox()) { value = getDomNodeOrNull().getText(); } return value; }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }
/** * {@inheritDoc} */ @Override public Node jsxGet_lastChild() { if (getBrowserVersion().isFirefox()) { final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue()); return (Node) text.getScriptObject(); } return null; } }