Package com.chandu0101.passwordmemoryclient

Examples of com.chandu0101.passwordmemoryclient.MainApp


    private Button loginButton;

    @FXML
    void handleLogin(ActionEvent event) {
        App.getInstance().setMastePassword(masterPasswordField.getText());
        BaseView view = new BaseView();
        BasePresenter basePresenter = (BasePresenter) view.getPresenter();
        App.getInstance().replaceStageContent(view.getView());
    }
View Full Code Here


    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        restClient.setMasterPassword(App.getInstance().getMastePassword());
        AddEditView addEditView = new AddEditView();
        AddEditPresenter addEditPresenter = (AddEditPresenter) addEditView.getPresenter();
        this.addEditPresenter = addEditPresenter;
        addEditPresenter.setBasePresenter(instance);
        addEditPopOver = new PopOver(addEditView.getView());
        addEditPopOver.setDetachedTitle("Add or Edit Password");
        filteredPasswords = new FilteredList<>(allPasswords);
        prepareTable();
        simpleSearchBox.setFilteredList(filteredPasswords);
View Full Code Here


    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        restClient.setMasterPassword(App.getInstance().getMastePassword());
        AddEditView addEditView = new AddEditView();
        AddEditPresenter addEditPresenter = (AddEditPresenter) addEditView.getPresenter();
        this.addEditPresenter = addEditPresenter;
        addEditPresenter.setBasePresenter(instance);
        addEditPopOver = new PopOver(addEditView.getView());
        addEditPopOver.setDetachedTitle("Add or Edit Password");
        filteredPasswords = new FilteredList<>(allPasswords);
        prepareTable();
        simpleSearchBox.setFilteredList(filteredPasswords);
        new Thread(() -> {
View Full Code Here

        }
    }

    @FXML
    void handleLogout(ActionEvent event) {
        LoginView view = new LoginView();
        App.getInstance().replaceStageContent(view.getView());
    }
View Full Code Here


    @Override
    public void start(Stage stage) throws Exception {
        this.stage = stage;
        LoginView view = new LoginView();
        Scene scene = new Scene(view.getView());
        scene.getStylesheets().add(getClass().getResource("app.css").toExternalForm());
        stage.setTitle("PaswordMemory Client");
        stage.setScene(scene);
        stage.show();
    }
View Full Code Here

           updateRecord();
        }
    }

    private void updateRecord() {
        RestClient restClient = basePresenter.getRestClient();
        selectedBluePrint.setUrl(urlTextField.getText());
        selectedBluePrint.setUsername(usernameTextField.getText());
        selectedBluePrint.setEncryptedPassword(AES.encrypt(passwordTextField.getText(), restClient.getMasterPassword()));
        HashMap<String,String> newvalues = new HashMap<>();
        newvalues.put("url",selectedBluePrint.getUrl());
        newvalues.put("username",selectedBluePrint.getUsername());
        newvalues.put("encryptedPassword",selectedBluePrint.getEncryptedPassword());
        restClient.updatePassword(selectedBluePrint.getId(),newvalues);
        basePresenter.getAddEditPopOver().hide();

    }
View Full Code Here

    }

    private void saveRecord() {
        BluePrint bluePrint = new BluePrint();
        RestClient restClient = basePresenter.getRestClient();
        bluePrint.setUrl(urlTextField.getText());
        bluePrint.setUsername(usernameTextField.getText());
        bluePrint.setEncryptedPassword(AES.encrypt(passwordTextField.getText(), restClient.getMasterPassword()));
        basePresenter.getAllPasswords().add(restClient.createPassword(bluePrint));
        basePresenter.getAddEditPopOver().hide();
    }
View Full Code Here

TOP

Related Classes of com.chandu0101.passwordmemoryclient.MainApp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.