groups = _groups;
userAdd = _userAdd;
permList = _permList;
+
+ groupBox.getElement().setId("addPermission.dropDown");
+
+ suggestBox.getElement().setId("addPermission.textBox");
+
+ read.getElement().setId("addPermission.read");
+
+ write.getElement().setId("addPermission.write");
+
+ modifyACL.getElement().setId("addpermission.modify");
+
for (GroupResource group : _groups)
groupBox.addItem(group.getName(), group.getName());
final VerticalPanel panel = new VerticalPanel();
keyCode == KeyCodes.KEY_LEFT ||
keyCode == KeyCodes.KEY_RIGHT)
return;
+ if (keyCode==KeyCodes.KEY_ESCAPE) {
+ suggestBox.hideSuggestionList();
+ return;
+ }
String text = suggestBox.getText().trim();
// Avoid useless queries for keystrokes that do not modify
// the text.
hide();
}
});
+ ok.getElement().setId("addPermission.button.ok");
buttons.add(ok);
buttons.setCellHorizontalAlignment(ok, HasHorizontalAlignment.ALIGN_CENTER);
// Create the 'Cancel' button, along with a listener that hides the
hide();
}
});
+ cancel.getElement().setId("addPermission.button.cancel");
buttons.add(cancel);
buttons.setCellHorizontalAlignment(cancel, HasHorizontalAlignment.ALIGN_CENTER);
buttons.setSpacing(8);
GWT.log("Searching for " + query, null);
GetCommand<UserSearchResource> eg = new GetCommand<UserSearchResource>(UserSearchResource.class,
- app.getApiPath() + "users/" + URL.encodeComponent(query), false) {
+ app.getApiPath() + "users/" + URL.encodeComponent(query), false, null) {
@Override
public void onComplete() {
- DisplayHelper.hideSuggestions(suggestBox);
+ suggestBox.hideSuggestionList();
oracle.clear();
UserSearchResource s = getResult();
for (UserResource user : s.getUsers()) {
GWT.log("Found " + user.getUsername(), null);
oracle.add(user.getUsername());
}
- DisplayHelper.showSuggestions(suggestBox, selectedUser);
+ suggestBox.showSuggestionList();
}
@Override