Example usage for javafx.scene.paint Paint valueOf

List of usage examples for javafx.scene.paint Paint valueOf

Introduction

In this page you can find the example usage for javafx.scene.paint Paint valueOf.

Prototype

public static Paint valueOf(String value) 

Source Link

Document

Creates a paint value from a string representation.

Usage

From source file:ninja.eivind.hotsreplayuploader.window.nodes.UploaderNode.java

private void setIdle() {
    setStatus("Idle", Paint.valueOf("#38d3ff"));
}

From source file:pe.edu.system.jcmr.util.UtilidadesFx.java

public void messageError(String message) {
    TrayNotification tray = new TrayNotification(getResourceMessage("mensaje.notification.tile.default"),
            message, NotificationType.ERROR);
    tray.setAnimationType(AnimationType.POPUP);
    tray.setRectangleFill(Paint.valueOf("#FF0000"));
    tray.setImage(new Image("/META-INF/component/notificationIcon/error.png"));
    tray.showAndDismiss(javafx.util.Duration.seconds(1));
    tray.showAndWait();// w  w w .j a v a 2s .c o  m
}

From source file:ninja.eivind.hotsreplayuploader.window.nodes.UploaderNode.java

private void setMaintenance() {
    setStatus("Maintenance", Paint.valueOf("#FF0000"));
}

From source file:ninja.eivind.hotsreplayuploader.window.nodes.UploaderNode.java

private void setUploading() {
    setStatus("Uploading", Paint.valueOf("#00B000"));
}

From source file:ninja.eivind.hotsreplayuploader.window.nodes.UploaderNode.java

private void setError() {
    setStatus("Connection error", Paint.valueOf("#FF0000"));
}

From source file:pe.edu.system.jcmr.util.UtilidadesFx.java

public void messageSuccess(String message) {
    TrayNotification tray = new TrayNotification(getResourceMessage("mensaje.notification.tile"), message,
            NotificationType.SUCCESS);//from   w w w. j a  v  a2 s . c om
    tray.setAnimationType(AnimationType.POPUP);
    tray.setRectangleFill(Paint.valueOf("#A6D785"));
    tray.setImage(new Image("/META-INF/component/notificationIcon/success.png"));
    tray.showAndDismiss(javafx.util.Duration.seconds(1));
    tray.showAndWait();
}

From source file:com.ggvaidya.scinames.complexquery.ComplexQueryViewController.java

public void setQueryStatus(String status) {
    if (status.equals("ok")) {
        queryStatusTextField.setBackground(
                new Background(new BackgroundFill(Paint.valueOf("green"), CornerRadii.EMPTY, Insets.EMPTY)));
        queryStatusTextField.setAlignment(Pos.CENTER);
        queryStatusTextField.setText("Query executed successfully");
    } else {//from   w  ww .java 2  s .c  o  m
        queryStatusTextField.setBackground(
                new Background(new BackgroundFill(Paint.valueOf("red"), CornerRadii.EMPTY, Insets.EMPTY)));
        queryStatusTextField.setAlignment(Pos.CENTER);
        queryStatusTextField.setText(status);
    }

}

From source file:utilitybasedfx.MainGUIController.java

public boolean checkProjectLoaded() {
    boolean fullyLoaded = true;
    if (Prefs.getProjectLoaded()) {
        btnImportSource.setDisable(false);
        btnImportCompiled.setDisable(false);
        btnRecheckProjectFolders.setDisable(false);
        if (Prefs.getSourceImported()) {
            lblSourceStatus.setText("Found");
            lblSourceStatus.setTextFill(Paint.valueOf("GREEN"));
            btnCompileFromSource.setDisable(false);
        } else {//from  w  w  w. j a  v a2  s  .com
            lblSourceStatus.setText("Not Found");
            lblSourceStatus.setTextFill(Paint.valueOf("RED"));
            btnCompileFromSource.setDisable(true);
            fullyLoaded = false;
        }

        if (Prefs.getClassImported()) {
            lblCompiledStatus.setText("Found");
            lblCompiledStatus.setTextFill(Paint.valueOf("GREEN"));
        } else {
            lblCompiledStatus.setText("Not Found");
            lblCompiledStatus.setTextFill(Paint.valueOf("RED"));
            fullyLoaded = false;
        }
    } else {
        btnImportSource.setDisable(true);
        btnImportCompiled.setDisable(true);
        btnCompileFromSource.setDisable(true);
        btnRecheckProjectFolders.setDisable(true);
        fullyLoaded = false;
    }

    if (fullyLoaded) {
        if (shouldRefreshFileTree) {
            refreshFilesTree();
        }
    } else {
        clearFilesTree();
    }

    checkIfGenerateShouldBeEnabled();

    return fullyLoaded;
}