Examples of createComponent()


Examples of org.apache.tuscany.sca.assembly.AssemblyFactory.createComponent()

    private <B> ServiceReference<B> createServiceReference(Class<B> businessInterface, String targetURI) {
        try {
            AssemblyFactory assemblyFactory = runtime.getAssemblyFactory();
            Composite composite = assemblyFactory.createComposite();
            composite.setName(new QName(Constants.SCA10_TUSCANY_NS, "default"));
            RuntimeComponent component = (RuntimeComponent)assemblyFactory.createComponent();
            component.setName("default");
            component.setURI("default");
            runtime.getCompositeActivator().configureComponentContext(component);
            composite.getComponents().add(component);
            RuntimeComponentReference reference = (RuntimeComponentReference)assemblyFactory.createComponentReference();
View Full Code Here

Examples of org.exoplatform.container.ExoContainer.createComponent()

               params = component.getInitParams();
               debug = component.getShowDeployInfo();
            }
            // Please note that we cannot fully initialize the Object "instance_" before releasing other
            // threads because it could cause StackOverflowError due to recursive calls
            Object instance = exocontainer.createComponent(getComponentImplementation(), params);
            if (instance_ != null)
            {
               // Avoid instantiating twice the same component in case of a cyclic reference due
               // to component plugins
               return instance_;
View Full Code Here

Examples of org.gradle.gradleplugin.userinterface.swing.generic.tabs.GradleTab.createComponent()

    private void addTabs() {
        Iterator<GradleTab> iterator = gradleTabs.iterator();
        while (iterator.hasNext()) {
            GradleTab gradleTab = iterator.next();
            tabbedPane.add(gradleTab.getName(), gradleTab.createComponent());
        }
    }

   /**
    This adds the specified component to the setup panel. It is added below the last
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

                chart.setSampleSize(200);
                chart.setMaxValue(desiredFrameRate);
                chart.setPreferredSize(new Dimension(200, 34));

                // create HUD control panel
                fpsComponent = mainHUD.createComponent(chart);
                fpsComponent.setDecoratable(false);
                fpsComponent.setPreferredLocation(Layout.SOUTHEAST);

                // add HUD control panel to HUD
                mainHUD.addComponent(fpsComponent);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

        // create affordances Swing control
        affordanceHUDPanel = new AffordanceHUDPanel();

        // create HUD control
        affordanceHUD = mainHUD.createComponent(affordanceHUDPanel);
        affordanceHUDPanel.setHUDComponent(affordanceHUD);
        affordanceHUD.setName(BUNDLE.getString("Edit_Object_None_Selected"));
        affordanceHUD.setPreferredLocation(Layout.SOUTH);
        affordanceHUD.addEventListener(new HUDEventListener() {
            public void HUDObjectChanged(HUDEvent event) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

        sizeSlider.setLabelTable(labels);

        // Create the Details frame for later use.
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        positionHUDPanel = new PositionHUDPanel();
        positionHUD = mainHUD.createComponent(positionHUDPanel);
        positionHUD.setName("Details");
        positionHUD.setPreferredLocation(Layout.SOUTHEAST);

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(positionHUD);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

                        new AssetMeterJPanel(AssetMeterClientPlugin.this);

                // Now create the HUD component
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
                assetMeterHUDComponent =
                        mainHUD.createComponent(assetMeterJPanel);
                assetMeterHUDComponent.setPreferredTransparency(0.0f);
                assetMeterHUDComponent.setPreferredLocation(Layout.SOUTHEAST);
                assetMeterHUDComponent.setName(
                        BUNDLE.getString("Downloading"));
                mainHUD.addComponent(assetMeterHUDComponent);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

        // create affordances Swing control
        hudCellPalette = new HUDCellPalette();

        // create HUD control
        paletteHUD = mainHUD.createComponent(hudCellPalette);
        paletteHUD.setName(BUNDLE.getString("Shortcuts"));
        paletteHUD.setPreferredLocation(Layout.NORTHEAST);

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(paletteHUD);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

     */
    private HUDComponent createTextChatHUD() {

        // Create a new HUD Panel. It still isn't visible.
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        HUDComponent hudComponent = mainHUD.createComponent(chatContainerPane);
        hudComponent.setIcon(new ImageIcon(getClass().getResource(
                "/org/jdesktop/wonderland/modules/textchat/client/resources/" +
                "UserListChatText32x32.png")));
        hudComponent.setPreferredLocation(Layout.SOUTHWEST);
        mainHUD.addComponent(hudComponent);
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()

                myPresenceInfo, myPresenceInfo, group, Mode.ADD);

  addHUDPanel.setPrivacy(addUserPanel.getPrivacy());

        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        addModeAddHUDComponent = mainHUD.createComponent(addHUDPanel);
        addHUDPanel.setHUDComponent(addModeAddHUDComponent);

        addModeAddHUDComponent.setName("Add to Voice Chat");

        addHUDPanel.setPreferredLocation(Layout.EAST);
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.