Examples of PropertyBinding


Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

        List<PropertyBinding> bindings = new ArrayList<PropertyBinding>();

        List<ApplicationMetaDataGenerator.PropBindingDeclarations> bindingDeclarations = ApplicationMetaDataGenerator.mapProperties(type);
        for(ApplicationMetaDataGenerator.PropBindingDeclarations decl : bindingDeclarations)
        {
            PropertyBinding propertyBinding = new PropertyBinding(
                    decl.getBindingDeclaration().getJavaName(),
                    decl.getBindingDeclaration().getDetypedName(),
                    decl.getBindingDeclaration().getJavaTypeName(),
                    decl.getBindingDeclaration().key(),
                    decl.getBindingDeclaration().expr()
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    }
   
    private ModelNode createStep(T entity, String name1, Object value1, String name2, Object value2) {
        if ((value1 == null) && (value2 == null)) return null;
       
        PropertyBinding propBinding1 = formMetaData.findAttribute(name1);
        String[] splitDetypedName1 = propBinding1.getDetypedName().split("/");
        value1 = editedOrCurrentValue(entity, name1, value1);
       
        PropertyBinding propBinding2 = formMetaData.findAttribute(name2);
        String[] splitDetypedName2 = propBinding2.getDetypedName().split("/");
        value2 = editedOrCurrentValue(entity, name2, value2);
       
        ModelNode valueNode = new ModelNode();
        setValueOnNode(valueNode.get(splitDetypedName1[1]), value1);
        setValueOnNode(valueNode.get(splitDetypedName2[1]), value2);
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

        if (!prop.isFlattened()) return false;

        String detypedName = prop.getDetypedName();
        String attributePath = detypedName.substring(0, detypedName.lastIndexOf("/"));
        for (String javaName : changedValues.keySet()) {
            PropertyBinding binding = formMetaData.findAttribute(javaName);
            if (binding.getDetypedName().startsWith(attributePath)) return true;
        }

        return false;
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

            changedValues.remove(javaName);
        }
    }

    private boolean isTransportAttribute(String javaName) {
        PropertyBinding binding = formMetaData.findAttribute(javaName);
        String detypedName = binding.getDetypedName();
        return detypedName.startsWith("transport");
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    private void handleWriteTransportAttributes(String cacheContainer, Map<String, Object> changedValues, List<ModelNode> stepsList) {
        for (String javaName : changedValues.keySet()) {
            if (!isTransportAttribute(javaName)) continue;

            PropertyBinding binding = formMetaData.findAttribute(javaName);
            String detypedName = binding.getDetypedName();
            ModelNode writeTransportAttributeStep = makeTransportOperation(WRITE_ATTRIBUTE_OPERATION, cacheContainer);
            writeTransportAttributeStep.get(NAME).set(detypedName.substring(detypedName.lastIndexOf("/") + 1));
            writeTransportAttributeStep.get(VALUE).set(changedValues.get(javaName).toString());
            stepsList.add(writeTransportAttributeStep);
        }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    }

    // If singleton attribute, such as "/transaction/TRANSACTION/foo-attribute",
    // singleton name will be the first name in the path.
    private String singletonName(String javaName) {
        PropertyBinding binding = formMetaData.findAttribute(javaName);
        String[] splitDetypedName = binding.getDetypedName().split("/");
        return splitDetypedName[0];
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    }

    // If singleton attribute, such as "/transaction/TRANSACTION/foo-attribute",
    // singleton name will be the last name in the path.
    private String attributeName(String javaName) {
        PropertyBinding binding = formMetaData.findAttribute(javaName);
        String[] splitDetypedName = binding.getDetypedName().split("/");
        return splitDetypedName[splitDetypedName.length - 1];
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    }
   
    private ModelNode createStep(T entity, String name1, Object value1, String name2, Object value2) {
        if ((value1 == null) && (value2 == null)) return null;
       
        PropertyBinding propBinding1 = formMetaData.findAttribute(name1);
        String[] splitDetypedName1 = propBinding1.getDetypedName().split("/");
        value1 = editedOrCurrentValue(entity, name1, value1);
       
        PropertyBinding propBinding2 = formMetaData.findAttribute(name2);
        String[] splitDetypedName2 = propBinding2.getDetypedName().split("/");
        value2 = editedOrCurrentValue(entity, name2, value2);
       
        ModelNode valueNode = new ModelNode();
        setValueOnNode(valueNode.get(splitDetypedName1[1]), value1);
        setValueOnNode(valueNode.get(splitDetypedName2[1]), value2);
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

            changedValues.remove(javaName);
        }
    }

    private boolean isTransportAttribute(String javaName) {
        PropertyBinding binding = formMetaData.findAttribute(javaName);
        String detypedName = binding.getDetypedName();
        return detypedName.startsWith("transport");
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.PropertyBinding

    private void handleWriteTransportAttributes(String cacheContainer, Map<String, Object> changedValues, List<ModelNode> stepsList) {
        for (String javaName : changedValues.keySet()) {
            if (!isTransportAttribute(javaName)) continue;

            PropertyBinding binding = formMetaData.findAttribute(javaName);
            String detypedName = binding.getDetypedName();
            ModelNode writeTransportAttributeStep = makeTransportOperation(WRITE_ATTRIBUTE_OPERATION, cacheContainer);
            writeTransportAttributeStep.get(NAME).set(detypedName.substring(detypedName.lastIndexOf("/") + 1));
            writeTransportAttributeStep.get(VALUE).set(changedValues.get(javaName).toString());
            stepsList.add(writeTransportAttributeStep);
        }
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.