Package com.totsp.gwittir.example.client.remote

Examples of com.totsp.gwittir.example.client.remote.TypeLookup


        e.newAddress.setAction(new Action() {
                public void execute(BoundWidget w) {
                    final Address newAddress = new Address();

                    TypeLookup type = new TypeLookup();
                    type.id = new Integer(1);
                    type.name = "home";

                    StateLookup state = new StateLookup();
                    state.id = new Integer(2);
                    state.code = "AL";
                    state.name = "Alabama";
                    newAddress.setType(type);
                    newAddress.setState(state);

                    ArrayList list = new ArrayList();
                    list.add(newAddress);
                    System.out.println("newAddress - " + newAddress);
                    e.addresses.add(newAddress);

                    //setSelected(list); // TODO setSelected causes errors, why are we using it here, and why does it err?
                }
            });

        e.newPhone.setAction(new Action() {
                public void execute(BoundWidget w) {
                    final Phone phone = new Phone();
                    TypeLookup type = new TypeLookup();
                    type.id = new Integer(1);
                    type.name = "home";
                    phone.setType(type);
                    e.phoneNumbers.add(phone);
                }
View Full Code Here


        ArrayList addresses = new ArrayList();
        Address a = new Address();
        a.setAddress1( "555 Peachtree St.");
        a.setCity( "Somewhere");
        a.setState( state );
        TypeLookup type = new TypeLookup();
        type.id = Integer.valueOf( 1 );
        type.name = "home";
        a.setType( type );
        addresses.add( a );
        c.setAddresses( addresses );
View Full Code Here

TOP

Related Classes of com.totsp.gwittir.example.client.remote.TypeLookup

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.