SHARE
TWEET

Untitled

a guest Jan 24th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import javafx.fxml.FXML;
  2. import javafx.scene.layout.BorderPane;
  3. import javafx.scene.layout.VBox;
  4. import utils.FxmlUtils;
  5.  
  6. public class MainController {
  7.  
  8. //Glowne przyciski
  9.     @FXML
  10.     public VBox mainButtons;
  11.  
  12. //Pojawiajace sie na poczatku logowanie.
  13.     @FXML
  14.     public VBox loginWindow;
  15.  
  16. //Glowny borderPane
  17.     @FXML
  18.     private BorderPane borderPane;
  19.  
  20. //Kontroler odpowiedzialny za logie loginWindow
  21.     @FXML
  22.     LoginController loginController;
  23.  
  24.  
  25.     private void initialize() {
  26.         // to nie dziala:(
  27.         // loginController.setMainController(this);
  28.     }
  29.  
  30.  
  31.    public void setInfoInCentre(String fxmlPath){
  32.         this.borderPane.setCenter(FxmlUtils.fxmlLoader(fxmlPath));
  33.     }
  34.  
  35.     public VBox getLoginWindow() {
  36.         return loginWindow;
  37.     }
  38.  
  39.     public BorderPane getBorderPane() {
  40.         return borderPane;
  41.     }
  42.  
  43.     public void disabledLogin(){
  44.         borderPane.getChildren().remove(loginWindow);
  45.     }
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top