Constructor

Constructor

    The constructor allows for the panels in the same project to interact with another
    Note: ensure the proper panel manager is imported, containing project "module name"
      eg. moduleManager.module.<module name>.PanelManager
      This is because the PanelManager class is generated, and has the same name for each module ( project )
    1
    // ensure the proper panel manager is imported, containing project "module name".
    2
    //eg. moduleManager.module.<module name>.PanelManager
    3
    PanelManager manager;
    4
    public LoginPanel(PanelManager manager) {
    5
    this.manager = manager;
    6
    }
    Copied!
    We can call methods from another panel with the following command
    1
    manager.main.logout();
    Copied!
    main is the panel class name and logout is the function
Last modified 1yr ago
Copy link