/** * Returns the value of the "text" property. * @return the text property */ @Override public String jsxGet_text() { return getDomNodeOrNull().getText(); }
/** * Returns the value of the "text" property. * @return the text property */ @Override public String jsxGet_text() { return getDomNodeOrNull().getText(); }
/** * Returns the value of the "text" property. * @return the text property */ @Override public String jsxGet_text() { return getDomNodeOrNull().getText(); }
/** * Returns the value of the attribute "value". Refer to the * <a href='http://www.w3.org/TR/html401/'>HTML 4.01</a> * documentation for details on the use of this attribute. * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-value-OPTION"> * initial value if value attribute is not set</a> * @return the value of the attribute "value" */ public final String getValueAttribute() { String value = getAttribute("value"); if (value == ATTRIBUTE_NOT_DEFINED) { value = getText(); } return value; }
/** * Returns the value of the attribute {@code value}. Refer to the * <a href='http://www.w3.org/TR/html401/'>HTML 4.01</a> * documentation for details on the use of this attribute. * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-value-OPTION"> * initial value if value attribute is not set</a> * @return the value of the attribute {@code value} */ public final String getValueAttribute() { String value = getAttributeDirect("value"); if (value == ATTRIBUTE_NOT_DEFINED) { value = getText(); } return value; }
/** * Returns the value of the attribute "value". Refer to the * <a href='http://www.w3.org/TR/html401/'>HTML 4.01</a> * documentation for details on the use of this attribute. * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-value-OPTION"> * initial value if value attribute is not set</a> * @return the value of the attribute "value" */ public final String getValueAttribute() { String value = getAttribute("value"); if (value == ATTRIBUTE_NOT_DEFINED) { value = getText(); } return value; }
/** * Returns the value of the attribute {@code value}. Refer to the * <a href='http://www.w3.org/TR/html401/'>HTML 4.01</a> * documentation for details on the use of this attribute. * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-value-OPTION"> * initial value if value attribute is not set</a> * @return the value of the attribute {@code value} */ public final String getValueAttribute() { String value = getAttributeDirect("value"); if (value == ATTRIBUTE_NOT_DEFINED) { value = getText(); } return value; }
/** * Returns the value of the attribute "value". Refer to the * <a href='http://www.w3.org/TR/html401/'>HTML 4.01</a> * documentation for details on the use of this attribute. * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-value-OPTION"> * initial value if value attribute is not set</a> * @return the value of the attribute "value" */ public final String getValueAttribute() { String value = getAttribute("value"); if (value == ATTRIBUTE_NOT_DEFINED) { value = getText(); } return value; }
/** * Returns the value of the {@code text} property. * @return the text property */ @JsxGetter public String getText() { final DomNode dom = getDomNodeOrNull(); if (dom instanceof HtmlOption) { return ((HtmlOption) dom).getText(); } return null; }
/** * Returns the value of the {@code text} property. * @return the text property */ @JsxGetter public String getText() { final DomNode dom = getDomNodeOrNull(); if (dom instanceof HtmlOption) { return ((HtmlOption) dom).getText(); } return null; }
/** * Returns the {@link HtmlOption} object that has the specified text. * * @param text the text to search by * @return the {@link HtmlOption} object that has the specified text * @exception ElementNotFoundException If a particular element could not be found in the DOM model */ public HtmlOption getOptionByText(final String text) throws ElementNotFoundException { WebAssert.notNull("text", text); for (final HtmlOption option : getOptions()) { if (option.getText().equals(text)) { return option; } } throw new ElementNotFoundException("option", "text", text); }
/** * Returns the {@link HtmlOption} object that has the specified text. * * @param text the text to search by * @return the {@link HtmlOption} object that has the specified text * @exception ElementNotFoundException If a particular element could not be found in the DOM model */ public HtmlOption getOptionByText(final String text) throws ElementNotFoundException { WebAssert.notNull("text", text); for (final HtmlOption option : getOptions()) { if (option.getText().equals(text)) { return option; } } throw new ElementNotFoundException("option", "text", text); }
/** * Returns the {@link HtmlOption} object that has the specified text. * * @param text the text to search by * @return the {@link HtmlOption} object that has the specified text * @exception ElementNotFoundException If a particular element could not be found in the DOM model */ public HtmlOption getOptionByText(final String text) throws ElementNotFoundException { WebAssert.notNull("text", text); for (final HtmlOption option : getOptions()) { if (option.getText().equals(text)) { return option; } } throw new ElementNotFoundException("option", "text", text); }
/** * Returns the {@link HtmlOption} object that has the specified text. * * @param text the text to search by * @return the {@link HtmlOption} object that has the specified text * @exception ElementNotFoundException If a particular element could not be found in the DOM model */ public HtmlOption getOptionByText(final String text) throws ElementNotFoundException { WebAssert.notNull("text", text); for (final HtmlOption option : getOptions()) { if (option.getText().equals(text)) { return option; } } throw new ElementNotFoundException("option", "text", text); }
/** * Returns the {@link HtmlOption} object that has the specified text. * * @param text the text to search by * @return the {@link HtmlOption} object that has the specified text * @exception ElementNotFoundException If a particular element could not be found in the DOM model */ public HtmlOption getOptionByText(final String text) throws ElementNotFoundException { WebAssert.notNull("text", text); for (final HtmlOption option : getOptions()) { if (option.getText().equals(text)) { return option; } } throw new ElementNotFoundException("option", "text", text); }
/** * Returns the value of the {@code value} property. * @return the value property */ @JsxGetter public String getValue() { String value = getDomNodeOrNull().getAttributeDirect("value"); if (value == DomElement.ATTRIBUTE_NOT_DEFINED) { value = ((HtmlOption) getDomNodeOrNull()).getText(); } return value; }
/** * Returns the value of the {@code value} property. * @return the value property */ @JsxGetter public String getValue() { String value = getDomNodeOrNull().getAttributeDirect("value"); if (value == DomElement.ATTRIBUTE_NOT_DEFINED) { value = ((HtmlOption) 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; }
/** * 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; }