Package net.sourceforge.hibernateswt.exception

Examples of net.sourceforge.hibernateswt.exception.BeanAnnotationException


    }

    private GridColumn[] generateGridColumns(Object bean) {
        ArrayList<GridColumn> gcList = new ArrayList<GridColumn>();
        if(bean.getClass().getAnnotation(SWTEntity.class) == null)
            throw new BeanAnnotationException("Bean(s) must be annotated with the SWTEntity annotation to have a dynamic GUI created for it.");

        for(Field field: bean.getClass().getDeclaredFields()) {
            Annotation a = field.getAnnotation(SWTWidget.class);
            if(a != null) {
                field.setAccessible(true);
View Full Code Here


        enableEditingWidgetLData.top = new FormAttachment(0,100,0);
        enableEditingWidgetLData.right = new FormAttachment(100,100,0);
        enableEditingButton.setLayoutData(enableEditingWidgetLData);

        if(viewDataObject.getClass().getAnnotation(SWTEntity.class) == null)
            throw new BeanAnnotationException("Beans must be annotated with the SWTEntity annotation to have a dynamic GUI created for it.");

        for(Field field: viewDataObject.getClass().getDeclaredFields()) {
            field.setAccessible(true);
            Annotation a = field.getAnnotation(SWTWidget.class);
            if(a != null) {
View Full Code Here

TOP

Related Classes of net.sourceforge.hibernateswt.exception.BeanAnnotationException

Copyright © 2018 www.massapicom. 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.