@Override public String getText() { return contentElem.getInnerText(); }
public final String getText() { return labelTD.getInnerText(); }
/** * Gets the text contained within an element. If the element has child * elements, only the text between them will be retrieved. * * @param elem the element whose inner text is to be retrieved * @return the text inside this element * @deprecated Use {@link Element#getInnerText()} instead. */ @Deprecated public static String getInnerText(Element elem) { return elem.getInnerText(); }
/** * Gets the face's contents as text. * * @return face's contents as text * */ @Override public String getText() { return getFace().getInnerText(); }
@Override public final String getText() { return beforeInitPlaceholder == null ? getTextImpl() : beforeInitPlaceholder.getInnerText(); }
/** * Get the inner text or html of the element, taking the inner span wrap into consideration, if * needed. Prefer using {@link #getText} or {@link #getHtml} instead of this method. * * @param isHtml true to get the inner html, false to get the inner text * @return the text or html */ public String getTextOrHtml(boolean isHtml) { Element elem = isSpanWrapped ? element.getFirstChildElement() : element; return isHtml ? elem.getInnerHTML() : elem.getInnerText(); }
/** * Gets the text within the specified cell. * * @param row the cell's row * @param column the cell's column * @return the cell's text contents * @throws IndexOutOfBoundsException */ public String getText(int row, int column) { checkCellBounds(row, column); Element e = cellFormatter.getElement(row, column); return e.getInnerText(); }
/** * Creates a ValueLabel widget that wraps an existing <span> element. * <p> * The ValueLabel's value will be initialized with the element's content, * passed through the <code>parser</code>. * <p> * This element must already be attached to the document. If the element is * removed from the document, you must call * {@link RootPanel#detachNow(Widget)}. * * @param element the element to be wrapped * @param renderer the renderer used to render values into the element * @param parser the parser used to initialize the ValueLabel's value from the * element's content */ public static <T> ValueLabel<T> wrap(Element element, Renderer<? super T> renderer, Parser<? extends T> parser) throws ParseException { ValueLabel<T> label = wrap(element, renderer); label.setValue(parser.parse(element.getInnerText())); // Mark it attached and remember it for cleanup. label.onAttach(); RootPanel.detachOnWindowClose(label); return label; }
/** * Returns the value of the "main" text element */ @Override public String getText() { return headerElem != null ? headerElem.getInnerText() : null; }
/** * Returns the value of the "main" text element */ @Override public String getText() { return headerElem != null ? headerElem.getInnerText() : null; }
/** * Returns the value of the count bubble or null if no count has been set */ public Integer getCount() { if (countElem == null) return null; return Integer.parseInt(countElem.getInnerText()); }
/** * Returns the value of the count bubble or null if no count has been set */ public Integer getCount() { if (countElem == null) return null; return Integer.parseInt(countElem.getInnerText()); }
/** * Gets the face's contents as text. * * @return face's contents as text * */ @Override public String getText() { return getFace().getInnerText(); }
/** * Gets the face's contents as text. * * @return face's contents as text * */ @Override public String getText() { return getFace().getInnerText(); }
/** * Gets the face's contents as text. * * @return face's contents as text * */ @Override public String getText() { return getFace().getInnerText(); }
public void addElement(Element element) { sb.append("<").append(element.getTagName()); // TODO : append attributes sb.append(">").append(element.getInnerText()).append("</").append(element.getTagName()).append( ">"); }
public Label create(Element e) { Label label = new Label(); label.setText(e.getInnerText()); WidgetsUtils.replaceOrAppend(e, label); return label; } }
private Message decodeMessage(Element e) { Message message = new Message(); String content = e.getInnerText(); String[] parts = content.split(","); message.setContent(URL.decodeQueryString(parts[0])); for (int i = 1; i < parts.length; i++) { String[] keyValuePair = parts[i].split("="); message.getAttributes().put(URL.decodeQueryString(keyValuePair[0]), URL.decodeQueryString(keyValuePair[1])); } message.setSerialNumber(Integer.parseInt(e.getAttribute("id"))); return message; }
public T create(Element e) { T textBox = createWidget(); if (getEquivalentTagName().equalsIgnoreCase(e.getTagName())) { copyAttributes((InputElement) e.cast(), (InputElement) textBox.getElement().cast()); } else { textBox.setValue(e.getInnerText()); } WidgetsUtils.replaceOrAppend(e, textBox); return (T) textBox; }
void attachAlert(AlertPanel alertPanel) { // Add widget's DOM element straight into HTML body RootPanel.get().add(alertPanel); // Use tool tip in case the textual content overflows Element messageDivElement = alertPanel.getMessageAt(0).getElement(); if (ElementUtils.detectHorizontalOverflow(messageDivElement)) { alertPanel.getAlertTooltip().setText(messageDivElement.getInnerText()); alertPanel.getAlertTooltip().setPlacement(Placement.BOTTOM); } }