Examples of PropertyBinding


Examples of org.eclipse.sapphire.PropertyBinding

    }
   
    @Override
    protected PropertyBinding createBinding( final Property property )
    {
        PropertyBinding binding = null;
       
        if( property instanceof Value )
        {
            final CustomXmlValueBinding customBindingAnnotation = property.definition().getAnnotation( CustomXmlValueBinding.class );
           
View Full Code Here

Examples of org.eclipse.sapphire.PropertyBinding

        @Override
        protected PropertyBinding createBinding( final Property property )
        {
            final PropertyDef pdef = property.definition();
           
            PropertyBinding binding = null;
           
            if( pdef == Manufacturer.PROP_NAME )
            {
                binding = new ValuePropertyBinding()
                {
View Full Code Here

Examples of org.eclipse.sapphire.PropertyBinding

        @Override
        protected PropertyBinding createBinding( final Property property )
        {
            final PropertyDef pdef = property.definition();
           
            PropertyBinding binding = null;
           
            if( pdef == Category.PROP_NAME )
            {
                binding = new ValuePropertyBinding()
                {
View Full Code Here

Examples of org.eclipse.sapphire.PropertyBinding

    }
   
    @Override
    protected PropertyBinding createBinding( final Property property )
    {
        PropertyBinding binding = null;
       
        if( property instanceof Value )
        {
            binding = new ValuePropertyBinding()
            {
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

    }

    // 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

        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
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.