Examples of Binding


Examples of org.springframework.richclient.form.binding.Binding

                    @Override
                    protected JComponent createFormControl() {
                        SwingBindingFactory factory = (SwingBindingFactory) getBindingFactory();
                        TableFormBuilder formBuilder = getFormBuilder();

                        Binding bind = factory.createBoundList("commonPersons");
                        formBuilder.add(bind);
                        JPanel mainPanel = new JPanel(new BorderLayout());
                        mainPanel.add(getFormBuilder().getForm(), BorderLayout.CENTER);
                        updateControlsForState();
                        return mainPanel;
View Full Code Here

Examples of org.springframework.webflow.engine.builder.BinderConfiguration.Binding

      if (valueType == null || valueType.isArray() || Collection.class.isAssignableFrom(valueType)
          || Map.class.isAssignableFrom(valueType)) {
        return null;
      }
      if (binderConfiguration != null) {
        Binding binding = binderConfiguration.getBinding(fieldExpression.getExpressionString());
        if (binding != null) {
          String converterId = binding.getConverter();
          if (converterId != null) {
            return conversionService.getConversionExecutor(converterId, valueType, String.class);
          }
        }
      }
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.Binding

    DefaultAmqpHeaderMapper mapper = new DefaultAmqpHeaderMapper();
    mapper.setRequestHeaderNames(properties.getRequestHeaderPattens(this.defaultRequestHeaderPatterns));
    mapper.setReplyHeaderNames(properties.getReplyHeaderPattens(this.defaultReplyHeaderPatterns));
    adapter.setHeaderMapper(mapper);
    adapter.afterPropertiesSet();
    Binding consumerBinding = Binding.forConsumer(name, adapter, moduleInputChannel, properties);
    addBinding(consumerBinding);
    ReceivingHandler convertingBridge = new ReceivingHandler();
    convertingBridge.setOutputChannel(moduleInputChannel);
    convertingBridge.setBeanName(name + ".convert.bridge");
    convertingBridge.afterPropertiesSet();
    bridgeToModuleChannel.subscribe(convertingBridge);
    consumerBinding.start();
  }
View Full Code Here

Examples of org.switchyard.admin.Binding

        when(ref.getName()).thenReturn(TEST_COMPOSITE_REFERENCE);
        references.add(ref);
        when(app.getReferences()).thenReturn(references);
       
        // Bindings
        Binding bind = mock(Binding.class);
        List<Binding> bindings = new ArrayList<Binding>();
        bindings.add(bind);
        when(bind.getName()).thenReturn("xyz");
        when(service.getGateways()).thenReturn(bindings);
       
        // Transformers
        List<Transformer> transformers = new ArrayList<Transformer>();
        Transformer t = mock(Transformer.class);
View Full Code Here

Examples of org.switchyard.deploy.Binding

        _serviceDomain.registerService(
                new QName(_serviceName),
                new InOnlyService(),
                mockService,
                ServiceMetadataBuilder.create().security(_serviceDomain.getServiceSecurity(null))
                        .requiredPolicies(policies).registrant(new Binding(new ArrayList<BindingModel>())).build());
        _serviceDomain.registerServiceReference(new QName(_serviceName), new InOnlyService("process"));
        _camelContext.addRoutes(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("netty://foo").to("switchyard://" + _serviceName + "?operationName=process");
View Full Code Here

Examples of org.teiid.translator.ws.WSExecutionFactory.Binding

         
          if (style == null) {
            style = executionFactory.getDefaultBinding().getBindingId();
          } else {
            try {
              Binding type = Binding.valueOf(style.toUpperCase());
              style = type.getBindingId();
            } catch (IllegalArgumentException e) {
              throw new TranslatorException(WSExecutionFactory.UTIL.getString("invalid_invocation", Arrays.toString(Binding.values()))); //$NON-NLS-1$
            }
          }
         
View Full Code Here

Examples of org.terasology.rendering.nui.databinding.Binding

        public Property create(final FieldMetadata<Object, ?> fieldMetadata, String id, OneOf.Enum info) {
            Class cls = fieldMetadata.getType();
            Object[] items = cls.getEnumConstants();
            UIDropdown dropdown = new UIDropdown();
            dropdown.bindOptions(new DefaultBinding(Arrays.asList(items)));
            Binding binding = new Binding() {
                @Override
                public Object get() {
                    return fieldMetadata.getValueChecked(target);
                }
View Full Code Here

Examples of org.x2jb.bind.Binding

     * @param method method
     * @return BindingDefinition binding definition
     */
    public BindingDefinition getBinding( final Method method )
    {
        final Binding methodMetadata = ( Binding ) method.getAnnotation( Binding.class );
        return ( methodMetadata == null ) ? null : new AnnotationBindingImpl( methodMetadata );
    }
View Full Code Here

Examples of org.zkoss.zkplus.databind.Binding

  }
 
  private boolean addModelBindingMappings(DefaultMapper mapper, Collection bindings, RequestContext src, RequestContext target) {
    boolean everMapping = false;
    for(final Iterator it = bindings.iterator(); it.hasNext();) {
      final Binding binding = (Binding)it.next();
      if (binding.isSavable()) {
        final String expr = (String) binding.getExpression();
        addMapping(mapper, expr);
        everMapping = true;
      }
    }
    return everMapping;
View Full Code Here

Examples of xbird.xquery.expr.flwr.Binding

    public XQExpression visit(FLWRExpr expr, XQueryContext ctxt) throws XQueryException {
        // for, let
        List causes = expr.getClauses();
        int prev_type = -1;
        for(int i = 0; i < causes.size(); i++) {
            Binding cause = (Binding) causes.get(i);
            Variable var = cause.getVariable();
            final int type = cause.getExpressionType();
            if(i != 0) {
                if(prev_type == type) {
                    buf.append(", ");
                }
                lineFeed();
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.