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.

Terminal.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal;
  5. import java.io.Serializable;
  6. /**
  7. * Interface for different terminal types.
  8. *
  9. * @author IT Mill Ltd.
  10. * @version
  11. * @VERSION@
  12. * @since 3.0
  13. */
  14. public interface Terminal extends Serializable {
  15. /**
  16. * Gets the name of the default theme.
  17. *
  18. * @return the Name of the terminal window.
  19. */
  20. public String getDefaultTheme();
  21. /**
  22. * Gets the width of the terminal window in pixels.
  23. *
  24. * @return the Width of the terminal window.
  25. */
  26. public int getScreenWidth();
  27. /**
  28. * Gets the height of the terminal window in pixels.
  29. *
  30. * @return the Height of the terminal window.
  31. */
  32. public int getScreenHeight();
  33. /**
  34. * Terminal error event.
  35. */
  36. public interface ErrorEvent extends Serializable{
  37. /**
  38. * Gets the contained throwable.
  39. */
  40. public Throwable getThrowable();
  41. }
  42. /**
  43. * Terminal error listener interface.
  44. */
  45. public interface ErrorListener extends Serializable{
  46. /**
  47. * Invoked when terminal error occurs.
  48. *
  49. * @param event
  50. * the fired event.
  51. */
  52. public void terminalError(Terminal.ErrorEvent event);
  53. }
  54. }