/** * Sets the text for this HtmlOption. * @param text the text */ public void setText(final String text) { if (text == null || text.isEmpty()) { removeAllChildren(); } else { final DomNode child = getFirstChild(); if (child == null) { appendChild(new DomText(getPage(), text)); } else { child.setNodeValue(text); } } }
/** * Sets the text for this HtmlOption. * @param text the text */ public void setText(final String text) { if (text == null || text.isEmpty()) { removeAllChildren(); } else { final DomNode child = getFirstChild(); if (child == null) { appendChild(new DomText(getPage(), text)); } else { child.setNodeValue(text); } } }
/** * Sets the text for this HtmlOption. * @param text the text */ public void setText(final String text) { if (getPage().getWebClient().getBrowserVersion().isIE() && (text == null || text.length() == 0)) { removeAllChildren(); } else { final DomNode child = getFirstChild(); if (child == null) { appendChild(new DomText(getPage(), text)); } else { child.setNodeValue(text); } } }
/** * Sets the text for this HtmlOption. * @param text the text */ public void setText(final String text) { if (getPage().getWebClient().getBrowserVersion().isIE() && (text == null || text.length() == 0)) { removeAllChildren(); } else { final DomNode child = getFirstChild(); if (child == null) { appendChild(new DomText(getPage(), text)); } else { child.setNodeValue(text); } } }
/** * Sets the text for this HtmlOption. * @param text the text */ public void setText(final String text) { if (getPage().getWebClient().getBrowserVersion().isIE() && (text == null || text.length() == 0)) { removeAllChildren(); } else { final DomNode child = getFirstChild(); if (child == null) { appendChild(new DomText(getPage(), text)); } else { child.setNodeValue(text); } } }