summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/WidgetMap.java
blob: 4fcadd6398c5c2a83910a42eb1dee104931cc349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.terminal.gwt.client;

import java.util.HashMap;

abstract class WidgetMap {

    protected static HashMap<Class, WidgetInstantiator> instmap = new HashMap<Class, WidgetInstantiator>();

    // FIXME: Should use Paintable and not VPaintableWidget
    public ComponentConnector instantiate(
            Class<? extends ComponentConnector> classType) {
        return instmap.get(classType).get();
    }

    // FIXME: Should use Paintable and not VPaintableWidget
    public abstract Class<? extends ComponentConnector> getImplementationByServerSideClassName(
            String fullyqualifiedName);

    // FIXME: Should use Paintable and not VPaintableWidget
    public abstract Class<? extends ComponentConnector>[] getDeferredLoadedWidgets();

    // FIXME: Should use Paintable and not VPaintableWidget
    public abstract void ensureInstantiator(
            Class<? extends ComponentConnector> classType);

}