Package com.vaadin.ui

Examples of com.vaadin.ui.NativeButton


        button = new Button("Huge");
        button.addStyleName("huge");
        row.addComponent(button);

        NativeButton nbutton = new NativeButton("Native");
        row.addComponent(nbutton);

        h1 = new Label("Links");
        h1.addStyleName("h1");
        addComponent(h1);
View Full Code Here


        });

        for (int i = 0; i < 100; i++) {
            Item item = table.addItem("Row " + i);
            item.getItemProperty(COL1).setValue(
                    new NativeButton("Row " + i + " native", this));
        }

        addComponent(table);
        addComponent(log);
View Full Code Here

                                settingsMenu.addItem("Test de Inversor", perfil);
                                settingsMenu.addSeparator();
                                settingsMenu.addItem("Mi Cuenta", cmd);
                                addComponent(settings);

                                Button exit = new NativeButton("Exit");
                                exit.addStyleName("icon-cancel");
                                exit.setDescription("Sign Out");
                                addComponent(exit);
                                exit.addClickListener(new ClickListener() {
                                    @Override
                                    public void buttonClick(ClickEvent event) {
                                        buildLoginView(true);
                                    }
                                });
                            }
                        });
                    }
                });
                // Content
                addComponent(content);
                content.setSizeFull();
                content.addStyleName("view-content");
                setExpandRatio(content, 1);
            }

        });

        menu.removeAllComponents();

        for (final String view : new String[] { "dashboard", "Cartera",
                "Especies" }) {
            Button b = new NativeButton(view.substring(0, 1).toUpperCase()
                    + view.substring(1).replace('-', ' '));
            if(view.equals("Cartera")){
              b.addStyleName("icon-transactions");
            }else{
              if(view.equals("Especies"))
                b.addStyleName("icon-sales");
              else{
                 b.addStyleName("icon-" + view);
              }
            }
//            b.addStyleName("icon-" + view);
            b.addClickListener(new ClickListener() {
                /**
         *
         */
        private static final long serialVersionUID = -5785295456511540486L;

View Full Code Here

TOP

Related Classes of com.vaadin.ui.NativeButton

Copyright © 2018 www.massapicom. 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.