Examples of bind()


Examples of org.glassfish.hk2.api.DynamicConfiguration.bind()

                }

            }
        });

        config.bind(descriptor, false);
        config.commit();
    }
   
    /**
     * This method will add the ability to use the {@link Immediate} scope to
View Full Code Here

Examples of org.glassfish.hk2.utilities.binding.AbstractBinder.bind()

                protected void configure() {
                    bind(runtimeCfgState).to(Configuration.class);
                }
            };
            final DynamicConfiguration dc = Injections.getConfiguration(locator);
            configBinder.bind(dc);
            dc.commit();

            // Bind providers.
            ProviderBinder.bindProviders(runtimeCfgState.getComponentBag(), RuntimeType.CLIENT, null, locator);
View Full Code Here

Examples of org.graphstream.stream.rmi.RMISource.bind()

      g1.addSink(sink);

      source = new RMISource();
      source.addSink(g2);

      source.bind(name);
      sink.register("//localhost/" + name);
    } catch (RemoteException e) {
      fail();
    }
View Full Code Here

Examples of org.grouplens.lenskit.core.LenskitConfiguration.bind()

        rs.add(Ratings.make(8, 5, 4));

        EventDAO dao = new EventCollectionDAO(rs);

        LenskitConfiguration config = new LenskitConfiguration();
        config.bind(EventDAO.class).to(dao);
        config.bind(ItemScorer.class).to(UserUserItemScorer.class);
        config.bind(NeighborFinder.class).to(LiveNeighborFinder.class);

        engine = LenskitRecommenderEngine.build(config);
    }
View Full Code Here

Examples of org.gwt.mosaic.actions.client.ButtonBindings.bind()

      final ButtonLabelType labelType) {
    final ButtonBindings bindings = new ButtonBindings(getActionMap().get(
        action));
    final Button button = (Button) bindings.getTarget(); // FIXME
    bindings.setLabelType(labelType);
    bindings.bind();
    return button;
  }

  // ---
View Full Code Here

Examples of org.gwt.mosaic.actions.client.CheckBoxMenuItemBindings.bind()

  public static MenuItem newCheckBoxMenuItem(final String action) {
    final CheckBoxMenuItemBindings bindings = new CheckBoxMenuItemBindings(
        getActionMap().get(action));
    final MenuItem menuItem = bindings.getTarget();
    bindings.bind();
    return menuItem;
  }

  public static MenuItem newRadioButtonMenuItem(final String name,
      final String action) {
View Full Code Here

Examples of org.gwt.mosaic.actions.client.ImageButtonBindings.bind()

  // ---
 
  public static ImageButton newImageButton(final String action) {
    final ImageButtonBindings bindings = new ImageButtonBindings(getActionMap().get(action));
    final ImageButton imageButton = (ImageButton) bindings.getTarget();
    bindings.bind();
    return imageButton;
  }

  // ---
View Full Code Here

Examples of org.gwt.mosaic.actions.client.MenuItemBindings.bind()

  public static MenuItem newMenuItem(final String action) {
    final MenuItemBindings bindings = new MenuItemBindings(getActionMap().get(
        action));
    final MenuItem menuItem = bindings.getTarget();
    bindings.bind();
    return menuItem;
  }

  public static MenuItem newCheckBoxMenuItem(final String action) {
    final CheckBoxMenuItemBindings bindings = new CheckBoxMenuItemBindings(
View Full Code Here

Examples of org.gwt.mosaic.actions.client.RadioButtonMenuItemBindings.bind()

  public static MenuItem newRadioButtonMenuItem(final String name,
      final String action) {
    final RadioButtonMenuItemBindings bindings = new RadioButtonMenuItemBindings(
        name, getActionMap().get(action));
    final MenuItem menuItem = bindings.getTarget();
    bindings.bind();
    return menuItem;
  }

}
View Full Code Here

Examples of org.gwt.mosaic.actions.client.ToolButtonBindings.bind()

    final ToolButtonBindings bindings = new ToolButtonBindings(
        getActionMap().get(action));
    final ToolButton toolButton = bindings.getTarget();
    toolButton.setStyle(style);
    bindings.setLabelType(labelType);
    bindings.bind();
    return toolButton;
  }

  // ---
View Full Code Here
TOP
Copyright © 2015 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.