dev.archiecortez.jfacelog.shell.ShellPresenter.java Source code

Java tutorial

Introduction

Here is the source code for dev.archiecortez.jfacelog.shell.ShellPresenter.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dev.archiecortez.jfacelog.shell;

import dev.archiecortez.jfacelog.dialogs.NewPassDialog;
import dev.archiecortez.jfacelog.employeemanager.EmployeeManagerView;
import dev.archiecortez.jfacelog.entities.DTREmployee;
import java.io.IOException;
import java.net.URL;
import java.util.Optional;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.SelectionMode;
import javafx.scene.control.Tab;
import javafx.util.Pair;
import org.springframework.stereotype.Component;

/**
 *
 * @author Administrator
 */
@Component
public class ShellPresenter implements Initializable {

    @FXML
    Tab employeeManagerTab;

    public void initialize(URL location, ResourceBundle resources) {
        employeeManagerTab.setContent(new EmployeeManagerView().getView());
    }
}