use of javafx.fxml.FXMLLoader 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();
}
use of javafx.fxml.FXMLLoader 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();
}
use of javafx.fxml.FXMLLoader 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();
}
use of javafx.fxml.FXMLLoader in project arquivoProject by fader-azevedo.
the class PaginaInicialController method carregaPanePesq.
void carregaPanePesq() {
try {
FXMLLoader fxmlLoader = new FXMLLoader();
fxmlLoader.load(getClass().getResource("/view/PanePesquisa.fxml").openStream());
pnPesquisa.toFront();
AnchorPane root = fxmlLoader.getRoot();
pnPesquisa.getChildren().clear();
pnPesquisa.getChildren().add(root);
} catch (IOException ex) {
Logger.getLogger(PaginaInicialController.class.getName()).log(Level.SEVERE, null, ex);
}
}
use of javafx.fxml.FXMLLoader 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();
}
Aggregations