Example usage for javafx.scene.control TextInputControl textProperty

List of usage examples for javafx.scene.control TextInputControl textProperty

Introduction

In this page you can find the example usage for javafx.scene.control TextInputControl textProperty.

Prototype

public final StringProperty textProperty() 

Source Link

Usage

From source file:de.ks.binding.Binding.java

public void registerClearOnRefresh(TextInputControl control) {
    clearOnRefresh.add(control.textProperty());
}

From source file:net.rptools.gui.listeners.fxml.AbstractURLController.java

@Override
protected void init() {
    getURLList().getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    final List<AssetTableRow> urlRows = stateToGui();
    getURLList().setItems(FXCollections.observableList(urlRows));
    final String prefix = BOX + StringUtils.capitalize(getPrefix());
    LOGGER.debug("prefix={}", prefix);
    final TextInputControl name = ((TextInputControl) lookup(prefix + "Name"));
    final TextInputControl location = ((TextInputControl) lookup(prefix + "Location"));
    final BooleanBinding empty = name.textProperty().isEmpty().or(location.textProperty().isEmpty());
    lookup(prefix + "New").disableProperty().bind(empty);
}

From source file:de.rkl.tools.tzconv.TimezoneConverter.java

private Node createCopyToClipboard(final TextInputControl mainArea) {
    final Button copyToClipboard = new Button("Copy to Clipboard");
    copyToClipboard.setOnAction(event -> {
        final StringSelection stringSelection = new StringSelection(mainArea.textProperty().getValue());
        Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSelection, stringSelection);
    });//from  ww  w.ja  v a  2 s .  c  om
    final HBox copyToClipboardBox = new HBox(copyToClipboard);
    copyToClipboardBox.alignmentProperty().setValue(Pos.CENTER);
    return copyToClipboardBox;
}