Package com.chandu0101.passwordmemoryclient

Examples of com.chandu0101.passwordmemoryclient.MainApp$Person


    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

     * @see Person#getAge()
     */
    @Test
    public void getAllPersonsEligibleToVote() {
        List<Person> potentialVoters =
                new ArrayList<>(asList(new Person("Tom", 24), new Person("Dick", 75), new Person("Harry", 17)));

        int legalAgeOfVoting = 18;
        List<Person> eligibleVoters = VotingRules.eligibleVoters(potentialVoters, legalAgeOfVoting);

        assertThat(eligibleVoters, hasSize(2));
View Full Code Here

   }
  
   public void test1() throws Exception
   {
      MyStateful stateful = (MyStateful) getInitialContext(0).lookup("MyStatefulBean/remote");
      Person p = new Person("Brian");
      stateful.save(p);
      String expected = "Changing SFSB state";
      stateful.setDescription(expected);
      stateful.setUpFailover("once");
      try
View Full Code Here

    public void test_Person_binding() throws IOException, SAXException {
        XMLBinding xmlBinding = new XMLBinding().add(getClass().getResourceAsStream("config5/person-binding-config.xml"));
        xmlBinding.intiailize();

        Person person = xmlBinding.fromXML("<person name='Max' age='50' />", Person.class);
        String xml = xmlBinding.toXML(person);
        XMLUnit.setIgnoreWhitespace(true);
        XMLAssert.assertXMLEqual("<person name='Max' age='50' />", xml);

    }
View Full Code Here

TOP

Related Classes of com.chandu0101.passwordmemoryclient.MainApp$Person

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.