You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NullConsole.java 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. import java.util.Set;
  6. import com.google.gwt.core.client.GWT;
  7. /**
  8. * Client side console implementation for non-debug mode that discards all
  9. * messages.
  10. *
  11. */
  12. public class NullConsole implements Console {
  13. public void dirUIDL(ValueMap u, ApplicationConfiguration cnf) {
  14. }
  15. public void error(String msg) {
  16. GWT.log(msg);
  17. }
  18. public void log(String msg) {
  19. GWT.log(msg);
  20. }
  21. public void printObject(Object msg) {
  22. GWT.log(msg.toString());
  23. }
  24. public void printLayoutProblems(ValueMap meta,
  25. ApplicationConnection applicationConnection,
  26. Set<VPaintableWidget> zeroHeightComponents,
  27. Set<VPaintableWidget> zeroWidthComponents) {
  28. }
  29. public void log(Throwable e) {
  30. GWT.log(e.getMessage(), e);
  31. }
  32. public void error(Throwable e) {
  33. GWT.log(e.getMessage(), e);
  34. }
  35. public void setQuietMode(boolean quietDebugMode) {
  36. }
  37. public void init() {
  38. }
  39. }