Gets the currently selected text.

@return the text selected.
486916
public String getSelectedText()
	{
		if (!selectingText)
			return "";

		int start = Math.min(selectionCursor.index, cursor.index);
		int end = Math.max(selectionCursor.index, cursor.index);

		return this.text.substring(start, end);
	}
707133
public String getText()
	{
		if(this.target == null)
			throw new RequiredException("this.target in ReplaceTextDecorator");
		
		return Text.replaceForRegExprWith(this.target.getText(), regExp, replacement);
	}
923421
public String getCurrentAttempt()
	{
		if (currentIndex < words.size())
		{
			final String currentAttempt = words.get(currentIndex);
			return currentAttempt;
		}
		return null;
	}
966824
protected int getSelectedTextColor(Context ctx) {
        return ColorHolder.color(getSelectedTextColor(), ctx, R.attr.material_drawer_selected_text, R.color.material_drawer_selected_text);
    }
410408
public String getSubtext() {
        String subtext = attrMixin.getAttribute(SUBTEXT);
        return subtext.isEmpty() ? null : subtext;
    }
1111931
protected String getText() {
        String text = null;

        // Try to find a text component in the spinner
        JTextComponent textEditorComponent;
        if (spinner.getEditor() instanceof JTextComponent) {
            textEditorComponent = (JTextComponent) spinner.getEditor();
        } else if (spinner.getEditor() instanceof JSpinner.DefaultEditor) {
            textEditorComponent = ((JSpinner.DefaultEditor) spinner.getEditor()).getTextField();
        } else {
            LOGGER.error("No text component can be found in the spinner to get the text: " + spinner);
            textEditorComponent = null;
        }

        // Read text from text component
        if (textEditorComponent != null) {
            text = textEditorComponent.getText();
        }

        return text;
    }
947282
public static String getText(){
        Transferable contents = clipboard().getContents(null);
        try{
            if(contents!=null && contents.isDataFlavorSupported(DataFlavor.stringFlavor))
                return (String)contents.getTransferData(DataFlavor.stringFlavor);
            else
                return null;
        }catch(UnsupportedFlavorException ex){
            throw new ImpossibleException(ex);
        }catch(IOException ex){
            throw new RuntimeException(ex);
        }
    }
293271
public String getTexTextValue() {
		String text = value;
		if ((text != null) && (text.trim().length() > 0)) {
			Enumeration e = bundle.getKeys();
			while (e.hasMoreElements()) {
				String key = (String) e.nextElement();
				if (text.indexOf(key) != -1)
					text = stringReplace(text, key, bundle.getString(key));
			}
		}
		return text;
	}
753156
public String wholeText() {
        final StringBuilder accum = StringUtil.borrowBuilder();
        NodeTraversor.traverse(new NodeVisitor() {
            public void head(Node node, int depth) {
                if (node instanceof TextNode) {
                    TextNode textNode = (TextNode) node;
                    accum.append(textNode.getWholeText());
                }
            }

            public void tail(Node node, int depth) {
            }
        }, this);

        return StringUtil.releaseBuilder(accum);
    }
347302
public Integer getSelectedLastRow() {
        final Object result = getStateHelper().eval(PropertyKeys.selectedLastRow);
        if (result == null) {
            return null;
        }
        return Integer.valueOf(result.toString());
    }
1325746
public String text2() {
        StringBuilder text = new StringBuilder();
        for (Change aDiff : getChangeList()) {
            if (aDiff.operation != Operation.DELETE) {
                text.append(aDiff.text);
            }
        }
        return text.toString();
    }
1008312
public Category getSelectedCategory() {
    TreeItem<Category> selectedTreeItem =
        navigationView.treeView.getSelectionModel().getSelectedItem();
    if (selectedTreeItem != null) {
      return navigationView.treeView.getSelectionModel().getSelectedItem().getValue();
    }
    return null;
  }
579598
public ArrayList<String> getVisibleText()
    {
        ArrayList<TextView> textViews = getFilteredViews(TextView.class);

        ArrayList<String> allStrings = new ArrayList<String>();
        for(TextView v: textViews)
        {
            if(v.getVisibility() == View.VISIBLE)
            {
                String s = v.getText().toString();
                allStrings.add(s);
            }
        }

        return allStrings;
    }
1150304
public String getText()
    {
        String strText = super.getText();
        if (strText != null)
            if (strText.equals(m_strDescription))
                strText = Constants.BLANK;
        return strText;
    }
88613
@Override
    public String getText()
    {
        if (_closed) {
            return null;
        }
        // need to separate handling a bit...
        switch (_currToken) {
        case FIELD_NAME:
            return _nodeCursor.currentName();
        case VALUE_STRING:
        case VALUE_NUMBER_INT:
        case VALUE_NUMBER_FLOAT:
            return currentNode().asText();
// 28-Dec-2015, tatu: Not yet supported:
//        case VALUE_EMBEDDED_OBJECT:
        default:
        	return (_currToken == null) ? null : _currToken.asString();
        }
    }
1224981
public @Nonnull String text() {
        return new NodeListSpliterator(node.getChildNodes()).stream()
                        .filter(it -> it instanceof Text)
                        .map(it -> ((Text) it).getNodeValue())
                        .collect(joining());
    }
743047
public Integer getSelectedColumn() {
        final Object result = getStateHelper().eval(PropertyKeys.selectedColumn);
        if (result == null) {
            return null;
        }
        return Integer.valueOf(result.toString());
    }