/** * Returns the selected text in the owner element, or {@code null} if there is no selected text. * @return the selected text in the owner element, or {@code null} if there is no selected text */ public String getSelectedText() { return selection_.toString(); }
/** * Returns the selected text in the owner element, or {@code null} if there is no selected text. * @return the selected text in the owner element, or {@code null} if there is no selected text */ public String getSelectedText() { return selection_.toString(); }
/** * Retrieves the text contained within the range. * @return the text contained within the range */ @JsxGetter public String getText() { return range_.toString(); }
/** * Retrieves the text contained within the range. * @return the text contained within the range */ @JsxGetter public String getText() { return range_.toString(); }
/** * {@inheritDoc} */ @Override public Object getDefaultValue(final Class<?> hint) { if (getPrototype() != null && (String.class.equals(hint) || hint == null)) { final StringBuilder sb = new StringBuilder(); for (final Range r : getRanges()) { sb.append(r.toString()); } return sb.toString(); } return super.getDefaultValue(hint); }
/** * {@inheritDoc} */ @Override public Object getDefaultValue(final Class<?> hint) { if (getPrototype() != null && (String.class.equals(hint) || hint == null)) { final StringBuilder sb = new StringBuilder(); for (final Range r : getRanges()) { sb.append(r.toString()); } return sb.toString(); } return super.getDefaultValue(hint); }