Examples of DelegateNode


Examples of clips.doctor.newEMC.init.generic.DelegateNode

            }else{
                EmcTreeNode node = getCurrentSelectedNode();
                if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT) == MessageBox.ANSWER_YES){
                    if (node != null){
                        if (node.getDelegate() instanceof DelegateNode) {
                            DelegateNode child = (DelegateNode) node.getDelegate();
                            if (child instanceof SerRenLocal && ((SerRenLocal)child).getPacketServiceID() != 0) {
                                if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_SERV_FROM_PACK) != MessageBox.ANSWER_YES) {
                                    return;
                                }
                                ((SerRenLocal)child).removeAndBreakPacket();
                            } else if (child instanceof DiseaseLocal && ((DiseaseLocal)child).isMedexam()) {
                                ((DiseaseLocal)child).getMedexamLocal().remove();
                            } else {
                                child.remove();
                            }
                            try{
                                if (isPathContains(lastSelectionPath, node)){
                                    lastSelectionPath = null;
                                }
View Full Code Here

Examples of clips.doctor.newEMC.init.generic.DelegateNode

     * Добавляет делегата в ЭМК
     * @param aClass
     * @throws ClipsException
     */
    private void addDelegateToEMC(Class<? extends DelegateNode> aClass){
        DelegateNode node = null;
        try{
            if (aClass.equals(DiseaseLocal.class)) {
                node = new DiseaseLocal(clientLocal.getEMC());
            } else if (aClass.equals(FollowupLocal.class)) {
                if (selectedServiceNode != null){
View Full Code Here

Examples of clips.doctor.newEMC.init.generic.DelegateNode

     */
    private void addDelegateToService(Class<? extends DelegateNode> aClass) {
        if (selectedServiceNode != null) {
            SerRenLocal selectedService = selectedServiceNode.getDelegate();
            try {
                DelegateNode leaf = null;
                if (aClass.equals(ContraindicationLocal.class)) {
                    leaf = new ContraindicationLocal(selectedService);
                } else if (aClass.equals(CheckupLocal.class)) {
                    leaf = new CheckupLocal(selectedService);
                } else if (aClass.equals(PrescriptionLocal.class)) {
View Full Code Here

Examples of com.adobe.internal.fxg.dom.DelegateNode

       
        // Set node name if it is a delegate node. This allows proper error
        // message to be reported.
        if (node instanceof DelegateNode)
        {
            DelegateNode propertyNode = (DelegateNode)node;
            propertyNode.setName(localName);
        }
       
        // Set attributes on the current node
        for (int i = 0; i < attributes.getLength(); i++)
        {
            String attributeURI = attributes.getURI(i);
            if (attributeURI == null || attributeURI == "" ||
                isFXGNamespace(attributeURI) ||
                isApacheFlexNamespace(attributeURI))
            {
                String attributeName = attributes.getLocalName(i);
                String attributeValue = attributes.getValue(i);
                node.setAttribute(attributeName, attributeValue);
            }
        }

        // Associate child with parent node (and handle any special
        // relationships)
        if (parent != null)
        {
            if (node instanceof DelegateNode)
            {
                DelegateNode propertyNode = (DelegateNode)node;
                propertyNode.setDelegate(parent);
            }
            else
            {
                parent.addChild(node);
            }
View Full Code Here

Examples of com.adobe.internal.fxg.dom.DelegateNode

       
        // Set node name if it is a delegate node. This allows proper error
        // message to be reported.
        if (node instanceof DelegateNode)
        {
            DelegateNode propertyNode = (DelegateNode)node;
            propertyNode.setName(localName);
        }
       
        // Set attributes on the current node
        for (int i = 0; i < attributes.getLength(); i++)
        {
            String attributeURI = attributes.getURI(i);
            if (attributeURI == null || attributeURI == "" || isFXGNamespace(attributeURI))
            {
                String attributeName = attributes.getLocalName(i);
                String attributeValue = attributes.getValue(i);
                node.setAttribute(attributeName, attributeValue);
            }
        }

        // Associate child with parent node (and handle any special
        // relationships)
        if (parent != null)
        {
            if (node instanceof DelegateNode)
            {
                DelegateNode propertyNode = (DelegateNode)node;
                propertyNode.setDelegate(parent);
            }
            else
            {
                parent.addChild(node);
            }
View Full Code Here

Examples of org.apache.flex.compiler.internal.fxg.dom.DelegateNode

            // Set node name if it is a delegate node. This allows proper error
            // message to be reported.
            if (node instanceof DelegateNode)
            {
                DelegateNode propertyNode = (DelegateNode)node;
                propertyNode.setName(localName);
            }

            // Set attributes on the current node
            for (int i = 0; i < attributes.getLength(); i++)
            {
                String attributeURI = attributes.getURI(i);
                if (attributeURI == null || attributeURI == "" || isFXGNamespace(attributeURI))
                {
                    String attributeName = attributes.getLocalName(i);
                    String attributeValue = attributes.getValue(i);
                    node.setAttribute(attributeName, attributeValue, problems);
                }
            }

            // Associate child with parent node (and handle any special
            // relationships)
            if (parent != null)
            {
                if (node instanceof DelegateNode)
                {
                    DelegateNode propertyNode = (DelegateNode)node;
                    propertyNode.setDelegate(parent, problems);
                }
                else
                {
                    parent.addChild(node, problems);
                }
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.