All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.handlers.ResizeLayoutPanelImplCreateHandler Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.handlers;

import com.googlecode.gwt.test.GwtCreateHandler;
import com.googlecode.gwt.test.utils.GwtReflectionUtils;

/**
 * GwtCreateHandler for ResizeLayoutPanel$Impl.
 *
 * @author Gael Lazzari
 */
class ResizeLayoutPanelImplCreateHandler implements GwtCreateHandler {

    /*
     * (non-Javadoc)
     *
     * @see com.googlecode.gwt.test.GwtCreateHandler#create(java.lang.Class)
     */
    public Object create(Class classLiteral) throws Exception {
        if (!"com.google.gwt.user.client.ui.ResizeLayoutPanel$Impl".equals(classLiteral.getName())) {
            return null;
        }

        Class clazz = Class.forName("com.google.gwt.user.client.ui.ResizeLayoutPanel$ImplStandard");
        return GwtReflectionUtils.instantiateClass(clazz);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy