Examples of addComponent()


Examples of com.sun.lwuit.Form.addComponent()

                    (int)(unselectedImages[k].getHeight() *0.8) ));
          rb.setAlignment(Label.LEFT);
            rb.setTextPosition(Label.RIGHT);
          s.setBgTransparency(70);
          status_list.add(rb);
          status_form.addComponent(rb);
          if (Contents.mystring_presence[k].equals(Datas.jid.getPresence())) {
        status_list.setSelected(k);
      }
    }
    status_form.addComponent(new MyLabel("Your mood"));
View Full Code Here

Examples of com.vaadin.ui.AbsoluteLayout.addComponent()

     * Add component w/o giving positions, assert that everything is unset
     */
    public void testNoPosition() {
        AbsoluteLayout layout = new AbsoluteLayout();
        Button b = new Button();
        layout.addComponent(b);

        assertNull(layout.getPosition(b).getTopValue());
        assertNull(layout.getPosition(b).getBottomValue());
        assertNull(layout.getPosition(b).getLeftValue());
        assertNull(layout.getPosition(b).getRightValue());
View Full Code Here

Examples of com.vaadin.ui.AbstractComponentContainer.addComponent()

                c.add(comp);
            }
            container.removeAllComponents();

            for (int j = c.size() - 1; j >= 0; j--) {
                container.addComponent(c.get(j));
            }
        }
    }

}
View Full Code Here

Examples of com.vaadin.ui.AbstractLayout.addComponent()

                TabSheet tab = (TabSheet) comp;
                tab.addTab(new UndefWideLabel("TAB1"), "TAB1",
                        new ThemeResource(GLOBE_16_PNG));
                tab.addTab(new UndefWideLabel("TAB2"), "TAB2", null);
            }
            curLayout.addComponent(comp);
            mainLayout.addComponent(curLayout);
        }
        return mainLayout;
    }
View Full Code Here

Examples of com.vaadin.ui.AbstractOrderedLayout.addComponent()

        Button b;

        b = new Button("Wide button");
        b.setWidth("500px");
        ol.addComponent(b);

        addButtons(ol);
        p.setContent(ol);

        /* VERTICAL */
 
View Full Code Here

Examples of com.vaadin.ui.AbstractSelect.addComponent()

                            .getContainerPropertyIds().iterator().next());

                }
            } else if (c instanceof ComponentContainer) {
                ComponentContainer new_name = (ComponentContainer) c;
                new_name.addComponent(new Label("component 1 in test container"));
                new_name.addComponent(new Button("component 2"));
            } else if (c instanceof Embedded) {
                Embedded em = (Embedded) c;
                em.setSource(new ThemeResource("test.png"));
            } else if (c instanceof Label) {
View Full Code Here

Examples of com.vaadin.ui.AbstractSplitPanel.addComponent()

        if (AbstractSplitPanel.class.isAssignableFrom(c)) {
            AbstractSplitPanel sp = (AbstractSplitPanel) cc;
            sp.setWidth("300px");
            sp.setHeight("300px");
            sp.addComponent(new Label("Label"));
            textArea.setSizeFull();
        }
        if (c == Panel.class) {
            VerticalLayout layout = new VerticalLayout();
            layout.setMargin(true);
View Full Code Here

Examples of com.vaadin.ui.Accordion.addComponent()

public class AccordionPrimaryStylenames extends TestBase {

    @Override
    protected void setup() {
        final Accordion acc = new Accordion();
        acc.addComponent(new NativeButton("First tab"));
        acc.addComponent(new NativeButton("Second tab"));
        acc.setPrimaryStyleName("my-accordion");
        addComponent(acc);

        addComponent(new Button("Set primary stylename",
View Full Code Here

Examples of com.vaadin.ui.ComponentContainer.addComponent()

                            .getContainerPropertyIds().iterator().next());

                }
            } else if (c instanceof ComponentContainer) {
                ComponentContainer new_name = (ComponentContainer) c;
                new_name.addComponent(new Label("component 1 in test container"));
                new_name.addComponent(new Button("component 2"));
            } else if (c instanceof Embedded) {
                Embedded em = (Embedded) c;
                em.setSource(new ThemeResource("test.png"));
            } else if (c instanceof Label) {
View Full Code Here

Examples of com.vaadin.ui.CssLayout.addComponent()

        menu.addStyleName("large-icons");

        Label logo = new Label("Va");
        logo.setSizeUndefined();
        logo.setPrimaryStyleName("valo-menu-logo");
        menu.addComponent(logo);

        Button b = new Button(
                "Reference <span class=\"valo-menu-badge\">3</span>");
        b.setIcon(FontAwesome.TH_LIST);
        b.setPrimaryStyleName("valo-menu-item");
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.