Guest User

Untitled

a guest
Feb 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. public class ManufacturerEditor extends Composite implements HasEditorErrors<ManufacturerProxy> {
  2.  
  3. private static ManufacturerEditorUiBinder uiBinder = GWT.create(ManufacturerEditorUiBinder.class);
  4.  
  5. interface ManufacturerEditorUiBinder extends UiBinder<Widget, ManufacturerEditor> {
  6. }
  7.  
  8. @UiField
  9. ValueBoxEditorDecorator<String> name;
  10.  
  11. @UiField
  12. ValueBoxEditorDecorator<String> location;
  13.  
  14. @UiField
  15. ValueBoxEditorDecorator<String> contact;
  16.  
  17. public ManufacturerEditor() {
  18. initWidget(uiBinder.createAndBindUi(this));
  19. }
  20.  
  21. /* (non-Javadoc)
  22. * @see com.google.gwt.editor.client.HasEditorErrors#showErrors(java.util.List)
  23. */
  24. @Override
  25. public void showErrors(List<EditorError> errors) {
  26. StringBuilder sb = new StringBuilder("showErrors(): ");
  27. for (EditorError error : errors) {
  28. sb.append(error.getPath() + ": " + error.getMessage());
  29. }
  30. Window.alert(sb.toString());
  31. }
  32.  
  33. }
Add Comment
Please, Sign In to add comment