Package edu.spbstu.hoteldb.handlers

Examples of edu.spbstu.hoteldb.handlers.NameFilter


    Label lid = new Label("Id:");
    TextField tfid = new TextField();
    tfid.addEventFilter(KeyEvent.KEY_TYPED, new NumFilter());
    Label lname = new Label("Name:");
    TextField tfname = new TextField();
    tfname.addEventFilter(KeyEvent.KEY_TYPED, new NameFilter());
    Button btnsearch = new Button("Search");
   
    gp.add(lclean, 0, 0);
    gp.add(lid, 0, 1);
    gp.add(tfid, 1, 1);
View Full Code Here


    final TextArea results = (TextArea)args.get(0);
    final Main main = (Main)args.get(1);
   
    Label llogin = new Label("Login: ");
    TextField tflogin = new TextField();
    tflogin.addEventHandler(KeyEvent.KEY_TYPED, new NameFilter());
    tflogin.setPromptText("3-16 symbols");
    Label lemail = new Label("Email: ");
    TextField tfemail = new TextField();
    tfemail.addEventHandler(KeyEvent.KEY_TYPED, new NameFilter());
    tfemail.setPromptText("Required");
    Label lpass = new Label("Password: ");
    PasswordField tfpass = new PasswordField();
    tfpass.addEventHandler(KeyEvent.KEY_TYPED, new NameFilter());
    tfpass.setPromptText("Required");
    Label lname = new Label("Name: ");
    TextField tfname = new TextField();
    tfname.setPromptText("Required");
    tfname.addEventHandler(KeyEvent.KEY_TYPED, new NameFilter());
    Label lcountry = new Label("Country: ");
    ChoiceBox<String> cbcountry = new ChoiceBox<String>(
        FXCollections.observableArrayList("Russia", "Spain", "USA",
            "UK"));
    Label llang = new Label("Language: ");
View Full Code Here

    TextField tfid = new TextField();
    tfid.addEventFilter(KeyEvent.KEY_TYPED, new NumFilter());
   
    Label lname = new Label("Name: ");
    TextField tfname = new TextField();
    tfname.addEventFilter(KeyEvent.KEY_TYPED, new NameFilter());
   
    Button btnsearch = new Button("Search");
    List<Node> arg = new LinkedList<Node>();
    arg.add(tfid); arg.add(tfname);
    btnsearch.setOnAction(new PersonnelSearchEventHandler(results, connect, arg));
View Full Code Here

    TextField tfid = new TextField();
    tfid.addEventFilter(KeyEvent.KEY_TYPED, new NumFilter());
   
    Label lname = new Label("Name: ");
    TextField tfname = new TextField();
    tfname.addEventFilter(KeyEvent.KEY_TYPED, new NameFilter());
   
    Button btnsearch = new  Button("Search");
    List<Node> arg = new LinkedList<Node>();
    arg.add(tfid); arg.add(tfname);
    btnsearch.setOnAction(new ClientSearchEventHandler(results, connect, arg));
View Full Code Here

TOP

Related Classes of edu.spbstu.hoteldb.handlers.NameFilter

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.