Examples of bind()


Examples of de.fips.util.tinybinding.DataBindingContext.bind()

        if (formElement instanceof Container) {
          try {
            Object modelValue = modelField.get(modelObject);
            if (String.class == modelFieldInternalType) {
              IObservableValue<String> value = uncheckedCast(modelValue);
              context.bind(value, observe((Container) formElement).text());
            } else if (Boolean.class == modelFieldInternalType) {
              IObservableValue<Boolean> value = uncheckedCast(modelValue);
              context.bind(value, observe((Container) formElement).selected());
            } else {
              IObservableValue<?> value = (IObservableValue<?>) modelValue;
View Full Code Here

Examples of de.fu_berlin.inf.dpp.concurrent.management.DocumentChecksum.bind()

                try {
                    provider.connect(input);
                    doc = provider.getDocument(input);

                    final DocumentChecksum checksum = new DocumentChecksum(path);
                    checksum.bind(doc);
                    checksum.update();
                    Utils.runSafeSWTSync(log, new Runnable() {
                        public void run() {
                            sarosSession.activityCreated(new ChecksumActivity(
                                user, path, checksum.getHash(), checksum
View Full Code Here

Examples of de.innovationgate.eclipse.utils.ui.GenesisBoundObject.bind()

        for (Composite control : _subforms.values()) {
            if (control == composite) {               
                control.setVisible(true);
                GenesisBoundObject model = _subformModels.get(subformKey);
                model.setBean(bean);
                model.bind(control, this, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
                _detailSection.setVisible(true);
                _detailSection.setClient(control);
                _detailSection.layout();
               
                if (bean instanceof WGSchemaDocumentDefinition) {
View Full Code Here

Examples of de.odysseus.el.tree.Tree.bind()

    super();

    Tree tree = store.get(expr);

    this.builder = store.getBuilder();
    this.bindings = tree.bind(functions, variables);
    this.expr = expr;
    this.type = type;
    this.node = tree.getRoot();
    this.deferred = tree.isDeferred();
   
View Full Code Here

Examples of eu.mosaic_cloud.components.core.ChannelController.bind()

    final DefaultChannelMessageCoder coder = DefaultChannelMessageCoder.defaultInstance;
    final BasicChannel channel = BasicChannel.create (pipe.source (), pipe.sink (), coder, reactor, threading, exceptions);
    Assert.assertTrue (channel.initialize (BasicChannelTest.defaultPollTimeout));
    final ChannelController channelController = channel.getController ();
    final ChannelCallbacks channelCallbacksProxy = reactor.createProxy (ChannelCallbacks.class);
    Assert.assertTrue (channelController.bind (channelCallbacksProxy).await (BasicChannelTest.defaultPollTimeout));
    final QueueingChannelCallbacks channelCallbacks = QueueingChannelCallbacks.create (channelController, exceptions);
    final CallbackIsolate channelCallbacksIsolate = reactor.createIsolate ();
    Assert.assertTrue (reactor.assignHandler (channelCallbacksProxy, channelCallbacks, channelCallbacksIsolate).await (BasicChannelTest.defaultPollTimeout));
    for (int index = 0; index < BasicChannelTest.defaultTries; index++) {
      final ChannelMessage outboundMessage = RandomMessageGenerator.defaultInstance.generateChannelMessage ();
View Full Code Here

Examples of eu.mosaic_cloud.components.core.ComponentController.bind()

    final BasicComponent component = BasicComponent.create (reactor, exceptions);
    Assert.assertTrue (channel.initialize (BasicComponentTest.defaultPollTimeout));
    Assert.assertTrue (component.initialize (BasicComponentTest.defaultPollTimeout));
    final ComponentController componentController = component.getController ();
    final ComponentCallbacks componentCallbacksProxy = reactor.createProxy (ComponentCallbacks.class);
    Assert.assertTrue (componentController.bind (componentCallbacksProxy, channel.getController ()).await (BasicComponentTest.defaultPollTimeout));
    final QueueingComponentCallbacks componentCallbacks = QueueingComponentCallbacks.create (componentController, exceptions);
    final CallbackIsolate componentCallbacksIsolate = reactor.createIsolate ();
    Assert.assertTrue (reactor.assignHandler (componentCallbacksProxy, componentCallbacks, componentCallbacksIsolate).await (BasicComponentTest.defaultPollTimeout));
    final ComponentIdentifier peer = ComponentIdentifier.resolve (Strings.repeat ("00", 20));
    for (int index = 0; index < BasicComponentTest.defaultTries; index++) {
View Full Code Here

Examples of findstruct.StructModel.Match.bind()

                    //System.out.println("Matched "+m.start()+"-"+m.end());
                    Match mtch = new Match(m.start(), m.end(), this);
                    if (bindings!=null) {
                        int gc = Math.min(m.groupCount(), bindings.length);
                        for (int i=1; i<=gc; i++) {
                            mtch.bind(bindings[i-1], m.group(i));
                        }
                    } else if (m.groupCount()>0) { // no explicit bindings; save group 1
                        mtch.bind(null,m.group(1));
                    }
                    alm.add(mtch);
View Full Code Here

Examples of grails.databinding.DataBinder.bind()

            grailsApplication = Holders.findApplication();
        }
        try {
            final DataBindingSource bindingSource = createDataBindingSource(grailsApplication, object.getClass(), source);
            final DataBinder grailsWebDataBinder = getGrailsWebDataBinder(grailsApplication);
            grailsWebDataBinder.bind(object, bindingSource, filter, include, exclude);
        } catch (InvalidRequestBodyException e) {
            String messageCode = "invalidRequestBody";
            Class objectType = object.getClass();
            String defaultMessage = "An error occurred parsing the body of the request";
            String[] codes = getMessageCodes(messageCode, objectType);
View Full Code Here

Examples of groovy.xml.StreamingMarkupBuilder.bind()

     */
    public HttpEntity encodeXML( Object xml, Object contentType )
            throws UnsupportedEncodingException {
        if ( xml instanceof Closure ) {
            StreamingMarkupBuilder smb = new StreamingMarkupBuilder();
            xml = smb.bind( xml );
        }
        if ( contentType == null ) contentType = ContentType.XML;
        return createEntity( contentType, xml.toString() );
    }

View Full Code Here

Examples of groovyx.gpars.dataflow.DataflowVariable.bind()

            public void run() {
                Dataflow.activeParallelGroup.set(PGroup.this);
                try {
                    //noinspection OverlyBroadCatchBlock
                    try {
                        result.bind(callable.call());
                    } catch (Throwable e) {
                        result.bind(e);
                    }
                } finally {
                    Dataflow.activeParallelGroup.remove();
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.