Package reportgen.prototype.context.group

Examples of reportgen.prototype.context.group.ContextGroup


    }//GEN-LAST:event_downBtnActionPerformed

    private void autoFillBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_autoFillBtnActionPerformed
        Context context = core.getResultContext();
        ItemSelectorEditable<QueryResultColumn> cols = core.getColumns();
        ContextGroup groupContext = MathExpressionEntityMethodRef
                .getContextGroup(core.getContextGroup());
        List<QEntity> options = context.getEntities(groupContext);
        for (QEntity entity : options) {
            for(QEntityProperty prop: context.getProperties(MathExpressionEntityMethodRef.GROUP, entity)) {
                boolean alreadyContains = false;
View Full Code Here


    protected abstract Set<QEntityProperty> getLoadable();
   
    @Override
    public ContextGroup getContextGroup() {
        if(group == null) {
            group = new ContextGroup(ContextGroup.ENTITY) {
                @Override
                public String getTitle() {
                    return title;
                }
                @Override
View Full Code Here

        mainPanel.setLayout(new java.awt.BorderLayout());
        add(mainPanel, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void selectComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selectComboActionPerformed
        ContextGroup item = (ContextGroup) selectCombo.getSelectedItem();
        if(item == null) {
            return;
        }
        if(panel != null) {
            mainPanel.remove(panel);
        }

        try {
            if (operand != null && operand.getContextGroup().isTheSameType(item)) {
                panel = operand.getPanel(parent);
            } else {
                panel = item.getCreatePanel(parent, cf.getChildContext(item));
            }

            mainPanel.add(panel, BorderLayout.CENTER);
            panel.setVisible(true);
            mainPanel.validate();
View Full Code Here

    private final ContextGroup objFieldGroup;

    public ContextCoreSQL(AbstractCore core, Context context) {
        super(context);
        this.core = core;
        ContextGroup coreGroup = core.getContextGroup();
        this.entityGroup = MathExpressionEntityRef.getContextGroup(coreGroup);
        this.fieldGroup = MathExpressionEntityFieldRef.getContextGroup(coreGroup);
        this.objFieldGroup = MathExpressionEntityObjectFieldRef.getContextGroup(coreGroup);
    }
View Full Code Here

    private final ContextGroup fieldGroup;

    public ContextCoreResult(AbstractCore core, Context parentContext) {
        super(parentContext);
        this.core = core;
        ContextGroup coreGroup = core.getContextGroup();
        this.methodGroup = MathExpressionEntityMethodRef.getContextGroup(coreGroup);
        this.fieldGroup = MathExpressionEntityFieldRef.getContextGroup(coreGroup);
    }
View Full Code Here

            handle(group);
        }
    }

    private void handle(ContextGroup group) {
        ContextGroup parent = group.getParent();
        ArrayList<ContextGroup> childrenList = children.get(parent);
        if(childrenList == null) {
            childrenList = new ArrayList<ContextGroup>();
            children.put(parent, childrenList);
        }
View Full Code Here

        int aliaspos = fullname.indexOf('.');
        Atom atom = new Atom(fullname.substring(0, aliaspos));
        QEntity entity = context.getEntity(atom);
       
        String propertyName = fullname.substring(aliaspos+1);
        ContextGroup contextGroup = getContextGroup(entity.getContextGroup());
        property = context.getProperty(contextGroup, entity, propertyName);
    }
View Full Code Here

        int aliaspos = fullname.indexOf('.');
        Atom atom = new Atom(fullname.substring(0, aliaspos));
        QEntity entity =  context.getEntity(atom);

        String propertyName = fullname.substring(aliaspos+1);
        ContextGroup contextGroup = getContextGroup(entity.getContextGroup());
        property = context.getProperty(contextGroup, entity, propertyName);
    }
View Full Code Here

        int aliaspos = fullname.indexOf('.');
        Atom atom = new Atom(fullname.substring(0, aliaspos));
        QEntity entity =  context.getEntity(atom);

        String propertyName = fullname.substring(aliaspos+1);
        ContextGroup contextGroup = getContextGroup(entity.getContextGroup());
        property = context.getProperty(contextGroup, entity, propertyName);
    }
View Full Code Here

TOP

Related Classes of reportgen.prototype.context.group.ContextGroup

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.