Package reportgen.prototype.entity

Examples of reportgen.prototype.entity.QEntityProperty


                continue;
            } else if(gen.embedded()) {
                embedded.add(field);
            }

            QEntityProperty qep = null;
            Class type = field.getType();
            String name = path + field.getName();
            if(type.isAnnotationPresent(Entity.class)) {
                qep = new QueryEntityObjectField(parent, type, gen.title(), gen.desc(), name);
            } else {
View Full Code Here


            Class type = method.getReturnType();
            if(type.isAnnotationPresent(Entity.class)) {
                throw new RuntimeException("Аннотирован метод класса " + method.getDeclaringClass()
                    + " представляющий не встроенную сущность " + method.getName());
            }
            QEntityProperty qep =new QueryEntityMethod(parent, type,
                gen.title(), gen.desc(), path + method.getName());
            res.add(qep);
        }

        //embedded properties
View Full Code Here

    }

    @Override
    public Component getListCellRendererComponent(JList list,
            Object value, int index, boolean isSelected, boolean cellHasFocus) {
        QEntityProperty property = (QEntityProperty)value;
        label.setText(property != null ? property.getTitle() : "");
        if(isSelected) {
            label.setBackground(list.getSelectionBackground());
            label.setForeground(list.getSelectionForeground());
        } else {
            label.setBackground(list.getBackground());
View Full Code Here

TOP

Related Classes of reportgen.prototype.entity.QEntityProperty

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.