Search in sources :

Example 56 with Timeline

use of javafx.animation.Timeline in project arquivoProject by fader-azevedo.

the class PaginaInicialController method listaTodasPratileiras.

@FXML
private void listaTodasPratileiras() throws IOException {
    Timeline timeline = new Timeline(new KeyFrame(Duration.millis(150), ev -> {
        try {
            btnInicio.getStyleClass().clear();
            btnEstante.getStyleClass().clear();
            btnPratileira.getStyleClass().add("butCriar");
            btnPasta.getStyleClass().clear();
            btnPauta.getStyleClass().clear();
            btnRegistar.getStyleClass().clear();
            btnRegistar.getStyleClass().add("begin");
            pnInicio.toFront();
            pnPesquisa.getChildren().clear();
            FXMLLoader fxmlLoader = new FXMLLoader();
            fxmlLoader.load(getClass().getResource("/view/ListaPratileira.fxml").openStream());
            AnchorPane root = fxmlLoader.getRoot();
            ListaPratileiraController listaPrat = fxmlLoader.getController();
            listaPrat.scrollBtnPratileira("");
            pnInicio.getChildren().clear();
            pnInicio.getChildren().add(root);
        } catch (Exception e) {
        }
    }));
    timeline.play();
}
Also used : JFXButton(com.jfoenix.controls.JFXButton) KeyFrame(javafx.animation.KeyFrame) Initializable(javafx.fxml.Initializable) MenuItem(javafx.scene.control.MenuItem) URL(java.net.URL) Timeline(javafx.animation.Timeline) IOException(java.io.IOException) Logger(java.util.logging.Logger) Level(java.util.logging.Level) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Duration(javafx.util.Duration) ResourceBundle(java.util.ResourceBundle) AnchorPane(javafx.scene.layout.AnchorPane) FXMLLoader(javafx.fxml.FXMLLoader) MenuButton(javafx.scene.control.MenuButton) ObservableValue(javafx.beans.value.ObservableValue) ChangeListener(javafx.beans.value.ChangeListener) JFXTextField(com.jfoenix.controls.JFXTextField) Pane(javafx.scene.layout.Pane) Timeline(javafx.animation.Timeline) KeyFrame(javafx.animation.KeyFrame) FXMLLoader(javafx.fxml.FXMLLoader) AnchorPane(javafx.scene.layout.AnchorPane) IOException(java.io.IOException) FXML(javafx.fxml.FXML)

Example 57 with Timeline

use of javafx.animation.Timeline in project arquivoProject by fader-azevedo.

the class PaginaInicialController method refresh.

public void refresh() throws IOException {
    Timeline timeline = new Timeline(new KeyFrame(Duration.millis(220), ev -> {
        try {
            btnInicio.getStyleClass().add("butCriar");
            btnEstante.getStyleClass().clear();
            btnPratileira.getStyleClass().clear();
            btnPasta.getStyleClass().clear();
            btnPauta.getStyleClass().clear();
            btnRegistar.getStyleClass().clear();
            btnRegistar.getStyleClass().add("begin");
            pnInicio.toFront();
            FXMLLoader fxmlLoader = new FXMLLoader();
            fxmlLoader.load(getClass().getResource("/view/Menu.fxml").openStream());
            AnchorPane root = fxmlLoader.getRoot();
            pnInicio.getChildren().clear();
            pnInicio.getChildren().add(root);
        } catch (IOException ex) {
            Logger.getLogger(PaginaInicialController.class.getName()).log(Level.SEVERE, null, ex);
        }
    }));
    timeline.play();
}
Also used : JFXButton(com.jfoenix.controls.JFXButton) KeyFrame(javafx.animation.KeyFrame) Initializable(javafx.fxml.Initializable) MenuItem(javafx.scene.control.MenuItem) URL(java.net.URL) Timeline(javafx.animation.Timeline) IOException(java.io.IOException) Logger(java.util.logging.Logger) Level(java.util.logging.Level) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Duration(javafx.util.Duration) ResourceBundle(java.util.ResourceBundle) AnchorPane(javafx.scene.layout.AnchorPane) FXMLLoader(javafx.fxml.FXMLLoader) MenuButton(javafx.scene.control.MenuButton) ObservableValue(javafx.beans.value.ObservableValue) ChangeListener(javafx.beans.value.ChangeListener) JFXTextField(com.jfoenix.controls.JFXTextField) Pane(javafx.scene.layout.Pane) Timeline(javafx.animation.Timeline) KeyFrame(javafx.animation.KeyFrame) IOException(java.io.IOException) FXMLLoader(javafx.fxml.FXMLLoader) AnchorPane(javafx.scene.layout.AnchorPane)

Example 58 with Timeline

use of javafx.animation.Timeline in project arquivoProject by fader-azevedo.

the class PaginaInicialController method listaTodasPastas.

@FXML
private void listaTodasPastas() throws IOException {
    Timeline timeline = new Timeline(new KeyFrame(Duration.millis(250), ev -> {
        try {
            btnInicio.getStyleClass().clear();
            btnEstante.getStyleClass().clear();
            btnPratileira.getStyleClass().clear();
            btnPasta.getStyleClass().add("butCriar");
            btnPauta.getStyleClass().clear();
            btnRegistar.getStyleClass().clear();
            btnRegistar.getStyleClass().add("begin");
            pnInicio.toFront();
            pnPesquisa.getChildren().clear();
            FXMLLoader fxmlLoader = new FXMLLoader();
            fxmlLoader.load(getClass().getResource("/view/ListaPasta.fxml").openStream());
            AnchorPane root = fxmlLoader.getRoot();
            ListaPastaController listPastCont = fxmlLoader.getController();
            listPastCont.scrollBtnPasta("", "");
            pnInicio.getChildren().clear();
            pnInicio.getChildren().add(root);
        } catch (Exception e) {
        }
    }));
    timeline.play();
}
Also used : JFXButton(com.jfoenix.controls.JFXButton) KeyFrame(javafx.animation.KeyFrame) Initializable(javafx.fxml.Initializable) MenuItem(javafx.scene.control.MenuItem) URL(java.net.URL) Timeline(javafx.animation.Timeline) IOException(java.io.IOException) Logger(java.util.logging.Logger) Level(java.util.logging.Level) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Duration(javafx.util.Duration) ResourceBundle(java.util.ResourceBundle) AnchorPane(javafx.scene.layout.AnchorPane) FXMLLoader(javafx.fxml.FXMLLoader) MenuButton(javafx.scene.control.MenuButton) ObservableValue(javafx.beans.value.ObservableValue) ChangeListener(javafx.beans.value.ChangeListener) JFXTextField(com.jfoenix.controls.JFXTextField) Pane(javafx.scene.layout.Pane) Timeline(javafx.animation.Timeline) KeyFrame(javafx.animation.KeyFrame) FXMLLoader(javafx.fxml.FXMLLoader) AnchorPane(javafx.scene.layout.AnchorPane) IOException(java.io.IOException) FXML(javafx.fxml.FXML)

Example 59 with Timeline

use of javafx.animation.Timeline in project arquivoProject by fader-azevedo.

the class PaginaInicialController method criarEstantePane.

private void criarEstantePane() {
    Timeline timeline = new Timeline(new KeyFrame(Duration.millis(250), ev -> {
        try {
            btnInicio.getStyleClass().clear();
            btnEstante.getStyleClass().clear();
            btnPratileira.getStyleClass().clear();
            btnPasta.getStyleClass().clear();
            btnPauta.getStyleClass().clear();
            btnRegistar.getStyleClass().add("butCriar");
            pnInicio.getChildren().clear();
            pnPesquisa.getChildren().clear();
            pnCarregador.toFront();
            FXMLLoader fxmlLoader = new FXMLLoader();
            fxmlLoader.load(getClass().getResource("/view/CriarEstante.fxml").openStream());
            AnchorPane root = fxmlLoader.getRoot();
            pnCarregador.getChildren().clear();
            pnCarregador.getChildren().add(root);
        } catch (IOException ex) {
            Logger.getLogger(PaginaInicialController.class.getName()).log(Level.SEVERE, null, ex);
        }
    }));
    timeline.play();
}
Also used : JFXButton(com.jfoenix.controls.JFXButton) KeyFrame(javafx.animation.KeyFrame) Initializable(javafx.fxml.Initializable) MenuItem(javafx.scene.control.MenuItem) URL(java.net.URL) Timeline(javafx.animation.Timeline) IOException(java.io.IOException) Logger(java.util.logging.Logger) Level(java.util.logging.Level) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Duration(javafx.util.Duration) ResourceBundle(java.util.ResourceBundle) AnchorPane(javafx.scene.layout.AnchorPane) FXMLLoader(javafx.fxml.FXMLLoader) MenuButton(javafx.scene.control.MenuButton) ObservableValue(javafx.beans.value.ObservableValue) ChangeListener(javafx.beans.value.ChangeListener) JFXTextField(com.jfoenix.controls.JFXTextField) Pane(javafx.scene.layout.Pane) Timeline(javafx.animation.Timeline) KeyFrame(javafx.animation.KeyFrame) IOException(java.io.IOException) FXMLLoader(javafx.fxml.FXMLLoader) AnchorPane(javafx.scene.layout.AnchorPane)

Example 60 with Timeline

use of javafx.animation.Timeline in project arquivoProject by fader-azevedo.

the class PaginaInicialController method criarPratileiraPane.

private void criarPratileiraPane() {
    Timeline timeline = new Timeline(new KeyFrame(Duration.millis(250), ev -> {
        try {
            btnInicio.getStyleClass().clear();
            btnEstante.getStyleClass().clear();
            btnPratileira.getStyleClass().clear();
            btnPasta.getStyleClass().clear();
            btnPauta.getStyleClass().clear();
            btnRegistar.getStyleClass().add("butCriar");
            pnInicio.getChildren().clear();
            pnPesquisa.getChildren().clear();
            pnCarregador.toFront();
            Parent root = FXMLLoader.load(getClass().getResource("/view/CriarPratileira.fxml"));
            pnCarregador.getChildren().clear();
            pnCarregador.getChildren().add(root);
        } catch (IOException ex) {
            Logger.getLogger(PaginaInicialController.class.getName()).log(Level.SEVERE, null, ex);
        }
    }));
    timeline.play();
}
Also used : JFXButton(com.jfoenix.controls.JFXButton) KeyFrame(javafx.animation.KeyFrame) Initializable(javafx.fxml.Initializable) MenuItem(javafx.scene.control.MenuItem) URL(java.net.URL) Timeline(javafx.animation.Timeline) IOException(java.io.IOException) Logger(java.util.logging.Logger) Level(java.util.logging.Level) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Duration(javafx.util.Duration) ResourceBundle(java.util.ResourceBundle) AnchorPane(javafx.scene.layout.AnchorPane) FXMLLoader(javafx.fxml.FXMLLoader) MenuButton(javafx.scene.control.MenuButton) ObservableValue(javafx.beans.value.ObservableValue) ChangeListener(javafx.beans.value.ChangeListener) JFXTextField(com.jfoenix.controls.JFXTextField) Pane(javafx.scene.layout.Pane) Timeline(javafx.animation.Timeline) Parent(javafx.scene.Parent) KeyFrame(javafx.animation.KeyFrame) IOException(java.io.IOException)

Aggregations

Timeline (javafx.animation.Timeline)111 KeyFrame (javafx.animation.KeyFrame)107 KeyValue (javafx.animation.KeyValue)81 Duration (javafx.util.Duration)32 ActionEvent (javafx.event.ActionEvent)22 JFXButton (com.jfoenix.controls.JFXButton)20 IOException (java.io.IOException)19 URL (java.net.URL)19 ResourceBundle (java.util.ResourceBundle)19 FXML (javafx.fxml.FXML)19 Initializable (javafx.fxml.Initializable)18 FXMLLoader (javafx.fxml.FXMLLoader)17 Pane (javafx.scene.layout.Pane)17 AnchorPane (javafx.scene.layout.AnchorPane)16 Level (java.util.logging.Level)15 Logger (java.util.logging.Logger)15 MouseEvent (javafx.scene.input.MouseEvent)14 Rotate (javafx.scene.transform.Rotate)14 JFXTextField (com.jfoenix.controls.JFXTextField)12 Interpolator (javafx.animation.Interpolator)12