Package com.vaadin.ui

Examples of com.vaadin.ui.TextField.addStyleName()


                        Object columnId) {
                    TextField tf = new TextField();
                    tf.setInputPrompt("Type here…");
                    // tf.addStyleName("compact");
                    if ((Integer) itemId % 2 == 0) {
                        tf.addStyleName("borderless");
                    }
                    return tf;
                }
            });
View Full Code Here


            table.addGeneratedColumn("datefield", new ColumnGenerator() {
                @Override
                public Object generateCell(Table source, Object itemId,
                        Object columnId) {
                    DateField tf = new DateField();
                    tf.addStyleName("compact");
                    if ((Integer) itemId % 2 == 0) {
                        tf.addStyleName("borderless");
                    }
                    return tf;
                }
View Full Code Here

                public Object generateCell(Table source, Object itemId,
                        Object columnId) {
                    DateField tf = new DateField();
                    tf.addStyleName("compact");
                    if ((Integer) itemId % 2 == 0) {
                        tf.addStyleName("borderless");
                    }
                    return tf;
                }
            });
View Full Code Here

                @Override
                public Object generateCell(Table source, Object itemId,
                        Object columnId) {
                    ComboBox tf = new ComboBox();
                    tf.setInputPrompt("Select");
                    tf.addStyleName("compact");
                    if ((Integer) itemId % 2 == 0) {
                        tf.addStyleName("borderless");
                    }
                    return tf;
                }
View Full Code Here

                        Object columnId) {
                    ComboBox tf = new ComboBox();
                    tf.setInputPrompt("Select");
                    tf.addStyleName("compact");
                    if ((Integer) itemId % 2 == 0) {
                        tf.addStyleName("borderless");
                    }
                    return tf;
                }
            });
View Full Code Here

        TextField field2 = new TextField("Blue style");
        field2.setStyleName("ticket4997-blue");
        layout.addComponent(field2);

        TextField field3 = new TextField("Red-Blue style");
        field3.addStyleName("ticket4997-red");
        field3.addStyleName("ticket4997-blue");
        layout.addComponent(field3);

        TextField field4 = new TextField("Disabled");
        field4.setEnabled(false);
View Full Code Here

        field2.setStyleName("ticket4997-blue");
        layout.addComponent(field2);

        TextField field3 = new TextField("Red-Blue style");
        field3.addStyleName("ticket4997-red");
        field3.addStyleName("ticket4997-blue");
        layout.addComponent(field3);

        TextField field4 = new TextField("Disabled");
        field4.setEnabled(false);
        field4.addStyleName("foobar"); // no visible change, but points out
View Full Code Here

        field3.addStyleName("ticket4997-blue");
        layout.addComponent(field3);

        TextField field4 = new TextField("Disabled");
        field4.setEnabled(false);
        field4.addStyleName("foobar"); // no visible change, but points out
        // a regression #5377
        layout.addComponent(field4);

        addComponent(layout);
    }
View Full Code Here

        if (caption != null) {
            tf.setCaption(caption);
        }

        if (primaryStyleName != null) {
            tf.addStyleName(primaryStyleName);
        }

        if (inputPrompt != null) {
            tf.setInputPrompt(inputPrompt);
        }
View Full Code Here

            tf = new TextField();
            if (inputPromptChild != null && inputPromptChild.length() > 0) {
                tf.setInputPrompt(inputPromptChild);
            }
            tf.setWidth("100%");
            tf.addStyleName("childtf");
            newItem.getItemProperty("text").setValue(tf);

        }

        public void setButtonCaption(String caption) {
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.