Examples of XMLComboPanel


Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                "Id",
                el.toName(),
                el.isRequired());
        cc.setReadOnly(el.isReadOnly());

        return new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                "Id",
                "SubType",
                el.isRequired());
        cc.setReadOnly(el.isReadOnly());

        return new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

            return new XMLLocationPanel(getPanelContainer(), el, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
        }
        if (!choices.contains(choosen)) {
            choices.add(choosen);
        }
        XMLComboPanel p = new XMLComboPanel(getPanelContainer(),
                el,
                JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                choices,
                false,
                true,
                false,
                true,
                JaWEManager.getInstance().getJaWEController().canModifyElement(el),
                false,
                false);

        p.getComboBox().setRenderer(cbr);
        return p;
    }
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                    "Id",
                    el.toName(),
                    el.isRequired());
            cc.setReadOnly(el.isReadOnly());

            return new XMLComboPanel(getPanelContainer(),
                    cc,
                    null,
                    false,
                    true,
                    false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                "Id",
                el.toName(),
                el.isRequired());
        cc.setReadOnly(el.isReadOnly());

        return new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

    public XMLPanel getPanel(Split el) {
        return generateStandardGroupPanel(el, true, false);
    }

    public XMLPanel getPanel(StartFinishModes el) {
        return new XMLComboPanel(getPanelContainer(),
                el,
                null,
                false,
                true,
                false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                "Id",
                "WorkflowProcess",
                true);
        cc.setReadOnly(el.get("Id").isReadOnly());

        final XMLComboPanel cp = new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
                true,
                JaWEManager.getInstance().getJaWEController().canModifyElement(el.get("Id")));

        if (!hidden.contains(el.get("Id"))) {
            panelElements.add(cp);
        }
        if (!hidden.contains(el.getExecutionAttribute())) {
            panelElements.add(el.getExecutionAttribute());
        }

        if (!hidden.contains(el.getActualParameters())) {
            FormalParameters fps = null;
            if (choosen instanceof WorkflowProcess) {
                fps = ((WorkflowProcess) choosen).getFormalParameters();
            }
            final XMLActualParametersPanel app = new XMLActualParametersPanel(getPanelContainer(),
                    el.getActualParameters(),
                    fps);
            panelElements.add(app);
            cp.getComboBox().addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent ae) {
                    Object sel = cp.getSelectedItem();
                    FormalParameters _fps = null;
                    if (sel instanceof WorkflowProcess) {
                        _fps = ((WorkflowProcess) sel).getFormalParameters();
                    }
                    app.setFormalParameters(_fps);
                    app.validate();
                }
            });
            cp.getComboBox().getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {

                public void keyPressed(KeyEvent e) {
                    Object sel = cp.getSelectedItem();
                    FormalParameters _fps = null;
                    if (sel instanceof WorkflowProcess) {
                        _fps = ((WorkflowProcess) sel).getFormalParameters();
                    }
                    app.setFormalParameters(_fps);
                    app.validate();
                }
            });
            cp.getComboBox().addItemListener(new ItemListener() {

                public void itemStateChanged(ItemEvent e) {
                    Object sel = cp.getSelectedItem();
                    FormalParameters _fps = null;
                    if (sel instanceof WorkflowProcess) {
                        _fps = ((WorkflowProcess) sel).getFormalParameters();
                    }
                    app.setFormalParameters(_fps);
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                "Id",
                "Application",
                el.isRequired());
        cc.setReadOnly(el.get("Id").isReadOnly());

        final XMLComboPanel cp = new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
                false,
                JaWEManager.getInstance().getJaWEController().canModifyElement(el.get("Id")));

        if (!hidden.contains(el.get("Id"))) {
            panelElements.add(cp);
        }
        if (!hidden.contains(el.getTypeAttribute())) {
            panelElements.add(el.getTypeAttribute());
        }
        if (!hidden.contains(el.getActualParameters())) {
            FormalParameters fps = null;
            if (choosen instanceof Application) {
                fps = ((Application) choosen).getApplicationTypes().getFormalParameters();
            }
            final XMLActualParametersPanel app = new XMLActualParametersPanel(getPanelContainer(),
                    el.getActualParameters(),
                    fps);
            panelElements.add(app);
            ActionListener al = new ActionListener() {

                public void actionPerformed(ActionEvent ae) {
                    Object sel = cp.getSelectedItem();
                    FormalParameters _fps = null;
                    if (sel instanceof Application) {
                        _fps = ((Application) sel).getApplicationTypes().getFormalParameters();
                    }
                    app.setFormalParameters(_fps);
                }
            };
            cp.getComboBox().addActionListener(al);
        }
        if (!hidden.contains(el.get("Description"))) {
            panelElements.add(el.get("Description"));
        }
        if (!hidden.contains(el.getExtendedAttributes())) {
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

            if (el.toName().equals("Name")) {
                Set choices = JaWEManager.getInstance().getXPDLUtils().getAllExtendedAttributeNames((XMLComplexElement) el.getParent().getParent().getParent(),
                        JaWEManager.getInstance().getXPDLHandler());
                String choosen = el.toValue();
                choices.add(choosen);
                return new XMLComboPanel(getPanelContainer(),
                        el,
                        new ArrayList(choices),
                        false,
                        true,
                        false,
                        true,
                        JaWEManager.getInstance().getJaWEController().canModifyElement(el));
            }
            XMLElement holder = el.getParent().getParent().getParent();
            if (XMLUtil.getWorkflowProcess(holder) != null && (holder instanceof Activity || holder instanceof Transition || holder instanceof Tool || holder instanceof WorkflowProcess)) {
                return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
            } else if (holder instanceof Application && ((Application) holder).getApplicationTypes().getChoosen() instanceof FormalParameters) {
                return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
            } else {
                return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
            }
        }
        if (el.getParent() instanceof BlockActivity) {
            WorkflowProcess wp = XMLUtil.getWorkflowProcess(el);
            List choices = wp.getActivitySets().toElements();
            XMLElement choosen = wp.getActivitySet(el.toValue());
            SpecialChoiceElement cc = new SpecialChoiceElement(el,
                    "",
                    choices,
                    choosen,
                    true,
                    "Id",
                    "ActivitySet",
                    el.isRequired());
            cc.setReadOnly(el.isReadOnly());

            return new XMLComboPanel(getPanelContainer(),
                    cc,
                    null,
                    false,
                    true,
                    false,
                    false,
                    JaWEManager.getInstance().getJaWEController().canModifyElement(el));

        }
        if (el.toName().equalsIgnoreCase("From")) {
            return getPanelForFROMAttribute((Transition) el.getParent());
        }
        if (el.toName().equalsIgnoreCase("To")) {
            return getPanelForTOAttribute((Transition) el.getParent());
        }
        if (el.toName().equalsIgnoreCase("ObjectClassFilter")) {
            return new XMLComboPanel(getPanelContainer(),
                    el,
                    null,
                    true,
                    true,
                    false,
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLComboPanel

                true,
                "Id",
                "From",
                from.isRequired());
        cc.setReadOnly(from.isReadOnly());
        return new XMLComboPanel(getPanelContainer(),
                cc,
                null,
                false,
                true,
                false,
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.