Examples of SWTEntity


Examples of net.sourceforge.hibernateswt.annotation.SWTEntity

     * @param dynamicWidget The widget object being created
     * @param annotation The annotation onthe property
     * @param property The bean property widget is for
     */
    protected void buildDynamicWidgetCollection(DynamicWidget dynamicWidget, SWTWidget annotation, Field property) {
        SWTEntity propAnno = property.getType().getAnnotation(SWTEntity.class);
        if(propAnno == null) {
            log.error("Unable to build a SWT widget collection from non SWTEntity annotated objects. Bean property: " +property.getName());
            buildDynamicWidget(dynamicWidget, annotation, property);
            return;
        }
        SWTEntity.Type collectionType = propAnno.defaultCollectionType();

        dynamicWidget.widgetPropertyMappingDefinition = defaultConverterMap.get(property.getType());
        dynamicWidget.widget = (Control)defaultConverterMap.get(property.getType()).createWidget(this);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.