예제 #1
0
 private void login() {
   final String name = elName.getValue().trim();
   String pass = elPass.getValue().trim();
   elPass.setValue("");
   if (GWTUtils.isEmpty(name) || GWTUtils.isEmpty(pass)) {
     return;
   }
   new AjaxRequest(Actions.LOGIN)
       .addParam("name", name)
       .addParam("pass", pass)
       .send(
           new AjaxCallback() {
             @Override
             public void onResponse(JSONObject json) {
               applyLogin(name, json);
             }
           });
 }
 @UiHandler("useCustom")
 void onClickCustom(ClickEvent event) {
   select(gadgetUrl.getValue());
 }