Package it.freedomotic.gwtclient.client.widgets

Examples of it.freedomotic.gwtclient.client.widgets.ConfigurationDialog



    }

    private void showConfigurationDialog() {
        final ConfigurationDialog dialog = new ConfigurationDialog(
                new OkCancelDialogCallback() {
                    @Override
                    public void okButtonClick(String text) {
                        final long DURATION = 1000 * 60 * 60 * 24 * 14;
                        // duration remembering login. 2 weeks in this example.
                        Date expires = new Date(System.currentTimeMillis()
                                + DURATION);
                        Cookies.setCookie("broker_ip", text, expires, null,
                                "/", false);
                        GWT.log("on ok ip:" + text);
                        brokerIp = Cookies.getCookie("broker_ip");
                        init();

                    }

                    @Override
                    public void cancelButtonClick() {
                        // TODO Auto-generated method stub
                    }
                });

        dialog.setPopupPosition(400, 400);
        dialog.show();
    }
View Full Code Here



  }
 
  private void showConfigurationDialog() {
    final ConfigurationDialog dialog = new ConfigurationDialog(
        new OkCancelDialogCallback() {

          @Override
          public void okButtonClick(String text) {
            final long DURATION = 1000 * 60 * 60 * 24 * 14;
            // duration remembering login. 2 weeks in this example.
            Date expires = new Date(System.currentTimeMillis()
                + DURATION);
            Cookies.setCookie("broker_ip", text, expires, null,
                "/", false);           
            GWT.log("on ok ip:" + text);
            brokerIp = Cookies.getCookie("broker_ip");
            init();

          }

          @Override
          public void cancelButtonClick() {
            // TODO Auto-generated method stub
          }
        });

    dialog.setPopupPosition(400, 400);
    dialog.show();   
  }
View Full Code Here

TOP

Related Classes of it.freedomotic.gwtclient.client.widgets.ConfigurationDialog

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.