Package com.vaadin.ui

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


    } else {
      // Just add a button to complete the task
      // TODO: perhaps move to a better place
     
      CssLayout buttonLayout = new CssLayout();
      buttonLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
      buttonLayout.setWidth(100, UNITS_PERCENTAGE);
      centralLayout.addComponent(buttonLayout);
     
      completeButton = new Button(i18nManager.getMessage(Messages.TASK_COMPLETE));
     
View Full Code Here


    setSizeFull();
    addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
    setMargin(true);
   
    CssLayout cssLayout = new CssLayout(); // Needed for rounded corners
    cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
    cssLayout.setSizeFull();
    super.addComponent(cssLayout);
   
    mainPanel = new Panel();
    mainPanel.addStyleName(Reindeer.PANEL_LIGHT);
View Full Code Here

        }
       
      }
    });;
        CssLayout panel = createPanel(notes);
        panel.addStyleName("notes");
        row.addComponent(panel);

        row = new HorizontalLayout();
        row.setMargin(true);
        row.setSizeFull();
View Full Code Here

    }

    private CssLayout createPanel(Component content) {
        CssLayout panel = new CssLayout();
        panel.addStyleName("layout-panel");
        panel.setSizeFull();

        Button configure = new Button();
        configure.addStyleName("configure");
        configure.addStyleName("icon-cog");
View Full Code Here

        loginLayout.setSizeFull();
        loginLayout.addStyleName("login-layout");
        root.addComponent(loginLayout);

        final CssLayout loginPanel = new CssLayout();
        loginPanel.addStyleName("login-panel");

        HorizontalLayout labels = new HorizontalLayout();
        labels.setWidth("100%");
        labels.setMargin(true);
        labels.addStyleName("labels");
View Full Code Here

        HorizontalLayout drafts = new HorizontalLayout();
        drafts.setSpacing(true);
        titleAndDrafts.addComponent(drafts);

        CssLayout draftThumb = new CssLayout();
        draftThumb.addStyleName("draft-thumb");
        Image draft = new Image(null, new ThemeResource(
                "img/draft-report-thumb.png"));
        draftThumb.addComponent(draft);
        Label draftTitle = new Label(
                "Monthly revenue<br><span>Last modified 1 day ago</span>",
View Full Code Here

        return editor;
    }

    private CssLayout createTransactionLabel(final Item item) {
        CssLayout root = new CssLayout();
        root.addStyleName("transaction");

        SimpleDateFormat df = new SimpleDateFormat();
        df.applyPattern("MM/dd/yyyy hh:mm:ss a");

        Label l = new Label(df.format(((Date) item.getItemProperty("timestamp")
View Full Code Here

            String data) {

        if (caption != null) {
            if (caption.equals("text")) {
                final CssLayout l = new CssLayout();
                l.addStyleName("text-editor");
                l.addStyleName("edit");
                l.setWidth("100%");
                final RichTextArea rta = new RichTextArea();
                rta.setWidth("100%");
                if (data == null)
View Full Code Here

        if (caption != null) {
            if (caption.equals("text")) {
                final CssLayout l = new CssLayout();
                l.addStyleName("text-editor");
                l.addStyleName("edit");
                l.setWidth("100%");
                final RichTextArea rta = new RichTextArea();
                rta.setWidth("100%");
                if (data == null)
                    rta.setValue("claudio");
View Full Code Here

                            save.setCaption("");
                            save.removeStyleName("default");
                            save.addStyleName("icon-edit");
                            save.setDescription("Edit");
                        } else {
                            l.addStyleName("edit");
                            l.removeComponent(text);
                            l.addComponent(rta, 0);
                            rta.focus();
                            rta.selectAll();
                            save.setCaption("Save");
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.