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.

WidgetMap.java 975B

1234567891011121314151617181920212223242526272829
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. import java.util.HashMap;
  6. abstract class WidgetMap {
  7. protected static HashMap<Class, WidgetInstantiator> instmap = new HashMap<Class, WidgetInstantiator>();
  8. // FIXME: Should use Paintable and not VPaintableWidget
  9. public ComponentConnector instantiate(
  10. Class<? extends ComponentConnector> classType) {
  11. return instmap.get(classType).get();
  12. }
  13. // FIXME: Should use Paintable and not VPaintableWidget
  14. public abstract Class<? extends ComponentConnector> getImplementationByServerSideClassName(
  15. String fullyqualifiedName);
  16. // FIXME: Should use Paintable and not VPaintableWidget
  17. public abstract Class<? extends ComponentConnector>[] getDeferredLoadedWidgets();
  18. // FIXME: Should use Paintable and not VPaintableWidget
  19. public abstract void ensureInstantiator(
  20. Class<? extends ComponentConnector> classType);
  21. }