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.

Focusable.java 557B

12345678910111213141516171819
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. /**
  6. * GWT's HasFocus is way too overkill for just receiving focus in simple
  7. * components. Vaadin uses this interface in addition to GWT's HasFocus to pass
  8. * focus requests from server to actual ui widgets in browsers.
  9. *
  10. * So in to make your server side focusable component receive focus on client
  11. * side it must either implement this or HasFocus interface.
  12. */
  13. public interface Focusable {
  14. /**
  15. * Sets focus to this widget.
  16. */
  17. public void focus();
  18. }