Java 类com.vaadin.server.Responsive 实例源码

项目:material-theme-fw8    文件:DemoUI.java   
@Override
protected void init(VaadinRequest vaadinRequest) {
    root = new CssLayout(appBar, navigationDrawer, content);
    root.setPrimaryStyleName("root");
    root.setSizeFull();
    Responsive.makeResponsive(root);
    setContent(root);

    appBar.getNaviIcon().addClickListener(event -> navigationDrawer.toggle());

    content.setPrimaryStyleName("content");
    content.setSizeFull();

    initNavigationItems();
    initDummyContent();
}
项目:imotSpot    文件:TransactionsView.java   
private Component buildToolbar() {
    HorizontalLayout header = new HorizontalLayout();
    header.addStyleName("viewheader");
    header.setSpacing(true);
    Responsive.makeResponsive(header);

    Label title = new Label("Imot list");
    title.setSizeUndefined();
    title.addStyleName(ValoTheme.LABEL_H1);
    title.addStyleName(ValoTheme.LABEL_NO_MARGIN);
    header.addComponent(title);

    createReport = buildCreateReport();
    HorizontalLayout tools = new HorizontalLayout(buildFilter(),
            createReport);
    tools.setSpacing(true);
    tools.addStyleName("toolbar");
    header.addComponent(tools);

    return header;
}
项目:imotSpot    文件:DashboardUI.java   
@Override
protected void init(final VaadinRequest request) {
    setLocale(Locale.US);

    DashboardEventBus.register(this);
    Responsive.makeResponsive(this);
    addStyleName(ValoTheme.UI_WITH_MENU);

    updateContent();

    // Some views need to be aware of browser resize events so a
    // BrowserResizeEvent gets fired to the event bus on every occasion.
    Page.getCurrent().addBrowserWindowResizeListener(
            new BrowserWindowResizeListener() {
                @Override
                public void browserWindowResized(
                        final BrowserWindowResizeEvent event) {
                    DashboardEventBus.post(new BrowserResizeEvent());
                }
            });
}
项目:imotSpot    文件:MovieDetailsWindow.java   
private MovieDetailsWindow(final Movie movie, final Date startTime,
        final Date endTime) {
    addStyleName("moviedetailswindow");
    Responsive.makeResponsive(this);

    setCaption(movie.getTitle());
    center();
    setCloseShortcut(KeyCode.ESCAPE, null);
    setResizable(false);
    setClosable(false);
    setHeight(90.0f, Unit.PERCENTAGE);

    VerticalLayout content = new VerticalLayout();
    content.setSizeFull();
    setContent(content);

    Panel detailsWrapper = new Panel(buildMovieDetails(movie, startTime,
            endTime));
    detailsWrapper.setSizeFull();
    detailsWrapper.addStyleName(ValoTheme.PANEL_BORDERLESS);
    detailsWrapper.addStyleName("scroll-divider");
    content.addComponent(detailsWrapper);
    content.setExpandRatio(detailsWrapper, 1f);

    content.addComponent(buildFooter());
}
项目:vaadin-vertx-samples    文件:DashboardView.java   
private Component buildSparklines() {
    CssLayout sparks = new CssLayout();
    sparks.addStyleName("sparks");
    sparks.setWidth("100%");
    Responsive.makeResponsive(sparks);

    SparklineChart s = new SparklineChart("Traffic", "K", "",
            DummyDataGenerator.chartColors[0], 22, 20, 80);
    sparks.addComponent(s);

    s = new SparklineChart("Revenue / Day", "M", "$",
            DummyDataGenerator.chartColors[2], 8, 89, 150);
    sparks.addComponent(s);

    s = new SparklineChart("Checkout Time", "s", "",
            DummyDataGenerator.chartColors[3], 10, 30, 120);
    sparks.addComponent(s);

    s = new SparklineChart("Theater Fill Rate", "%", "",
            DummyDataGenerator.chartColors[5], 50, 34, 100);
    sparks.addComponent(s);

    return sparks;
}
项目:vaadin-vertx-samples    文件:TransactionsView.java   
private Component buildToolbar() {
    HorizontalLayout header = new HorizontalLayout();
    header.addStyleName("viewheader");
    header.setSpacing(true);
    Responsive.makeResponsive(header);

    Label title = new Label("Latest Transactions");
    title.setSizeUndefined();
    title.addStyleName(ValoTheme.LABEL_H1);
    title.addStyleName(ValoTheme.LABEL_NO_MARGIN);
    header.addComponent(title);

    createReport = buildCreateReport();
    HorizontalLayout tools = new HorizontalLayout(buildFilter(),
            createReport);
    tools.setSpacing(true);
    tools.addStyleName("toolbar");
    header.addComponent(tools);

    return header;
}
项目:vaadin-vertx-samples    文件:DashboardUI.java   
@Override
protected void init(final VaadinRequest request) {
    setLocale(Locale.US);

    DashboardEventBus.register(this);
    Responsive.makeResponsive(this);
    addStyleName(ValoTheme.UI_WITH_MENU);

    updateContent();

    // Some views need to be aware of browser resize events so a
    // BrowserResizeEvent gets fired to the event bus on every occasion.
    Page.getCurrent().addBrowserWindowResizeListener(
            new BrowserWindowResizeListener() {
                @Override
                public void browserWindowResized(
                        final BrowserWindowResizeEvent event) {
                    DashboardEventBus.post(new BrowserResizeEvent());
                }
            });
}
项目:vaadin-vertx-samples    文件:MovieDetailsWindow.java   
private MovieDetailsWindow(final Movie movie, final Date startTime,
        final Date endTime) {
    addStyleName("moviedetailswindow");
    Responsive.makeResponsive(this);

    setCaption(movie.getTitle());
    center();
    setCloseShortcut(KeyCode.ESCAPE, null);
    setResizable(false);
    setClosable(false);
    setHeight(90.0f, Unit.PERCENTAGE);

    VerticalLayout content = new VerticalLayout();
    content.setSizeFull();
    setContent(content);

    Panel detailsWrapper = new Panel(buildMovieDetails(movie, startTime,
            endTime));
    detailsWrapper.setSizeFull();
    detailsWrapper.addStyleName(ValoTheme.PANEL_BORDERLESS);
    detailsWrapper.addStyleName("scroll-divider");
    content.addComponent(detailsWrapper);
    content.setExpandRatio(detailsWrapper, 1f);

    content.addComponent(buildFooter());
}
项目:dungeonstory-java    文件:DungeonStoryUI.java   
@Override
protected void init(VaadinRequest vaadinRequest) {
    Responsive.makeResponsive(this);
    getPage().setTitle("DungeonStory");

    if (Configuration.getInstance().isMock()) {
        accessControl = new BasicAccessControl();
    } else {
        accessControl = new DsAccessControl();
    }

    setupEventBus();

    if (!accessControl.isUserSignedIn()) {
        setContent(new LoginScreen(accessControl, this::showMainView));
    } else {
        showMainView();
    }

    setLocale(vaadinRequest.getLocale());

    ImageFactory.getInstance();
}
项目:bookery    文件:AppLayout.java   
@PostConstruct
private void postInit() {
    setSpacing(false);
    setMargin(false);
    setSizeFull();

    content = new CssLayout();
    content.setPrimaryStyleName("valo-content");
    content.addStyleName("v-scrollable");
    content.setWidth(100, Unit.PERCENTAGE);

    addComponents(appHeader,content);
    expand(content);
    addAttachListener(new AttachListener() {

        @Override
        public void attach(AttachEvent event) {
            Responsive.makeResponsive(getUI());
        }
    });
}
项目:hybridbpm    文件:DashboardView.java   
public DashboardView(ViewDefinition vd) {
    this.viewDefinition = HybridbpmUI.getDashboardAPI().getViewDefinitionById(vd.getId().toString());
    Design.read(this);
    Responsive.makeResponsive(this);

    btnAdd.addClickListener(this);
    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.setCaption("Add tab");

    btnEdit.addClickListener(this);
    btnEdit.setIcon(FontAwesome.EDIT);
    btnEdit.setCaption("Edit view");

    btnDelete.addClickListener(this);
    btnDelete.setIcon(FontAwesome.TIMES_CIRCLE);
    btnDelete.setCaption("Delete view");

    createTabs();
    checkDeveloperMode();

    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
}
项目:cia    文件:AbstractPageModContentFactoryImpl.java   
protected final void createRowItem(final ResponsiveRow row, final Button button, final String description) {
    final CssLayout layout = new CssLayout();
    layout.addStyleName("v-layout-content-overview-panel-level2");
    Responsive.makeResponsive(layout);
    layout.setSizeUndefined();

    button.addStyleName("itembox");
    button.addStyleName("title");
    Responsive.makeResponsive(button);
    button.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(button);

    final Label descriptionLabel = new Label(description);
    descriptionLabel.addStyleName("itembox");
    Responsive.makeResponsive(descriptionLabel);
    descriptionLabel.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(descriptionLabel);

    row.addColumn().withDisplayRules(DISPLAY_SIZE_XS_DEVICE,DISPLAYS_SIZE_XM_DEVICE,DISPLAY_SIZE_MD_DEVICE,DISPLAY_SIZE_LG_DEVICE).withComponent(layout);
}
项目:cia    文件:AbstractPageModContentFactoryImpl.java   
protected final void createRowComponent(final ResponsiveRow row, final Component component, final String description) {
    final CssLayout layout = new CssLayout();
    layout.addStyleName(".v-layout-content-pagemode-panel-level2");
    Responsive.makeResponsive(layout);
    layout.setSizeUndefined();

    final Label descriptionLabel = new Label(description);
    descriptionLabel.addStyleName("itembox");
    Responsive.makeResponsive(descriptionLabel);
    descriptionLabel.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(descriptionLabel);

    component.addStyleName("itembox");
    component.addStyleName("title");
    Responsive.makeResponsive(component);
    component.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(component); 

    row.addColumn().withDisplayRules(DISPLAY_SIZE_XS_DEVICE,DISPLAYS_SIZE_XM_DEVICE,DISPLAY_SIZE_MD_DEVICE,DISPLAY_SIZE_LG_DEVICE).withComponent(layout);
}
项目:archetype-application-example    文件:MockAppUI.java   
@Override
protected void init(VaadinRequest vaadinRequest) {
    Responsive.makeResponsive(this);
    setLocale(vaadinRequest.getLocale());
    getPage().setTitle("MockApp");
    if (!accessControl.isUserSignedIn()) {
        setContent(new LoginScreen(accessControl, new LoginListener() {
            @Override
            public void loginSuccessful() {
                showMainView();
            }
        }));
    } else {
        showMainView();
    }
}
项目:vaadin-security-template    文件:LoginUI.java   
private Component buildLoginForm() {
    final VerticalLayout loginPanel = new VerticalLayout();
    loginPanel.setSizeUndefined();
    loginPanel.setSpacing(true);
    Responsive.makeResponsive(loginPanel);
    loginPanel.addStyleName("login-panel");

    loginPanel.addComponent(buildLabels());
    loginPanel.addComponent(buildFields());

    CheckBox rememberMe = new CheckBox("Remember me", true);
    rememberMe.setTabIndex(3);

    loginPanel.addComponent(rememberMe);
    return loginPanel;
}
项目:esup-ecandidat    文件:MainUI.java   
/**
 * Initialise le layout principal
 */
private void initLayout() {
    layout.setSizeFull();
    setContent(layout);

    menuLayout.setPrimaryStyleName(ValoTheme.MENU_ROOT);

    layoutWithSheet.setPrimaryStyleName(StyleConstants.VALO_CONTENT);
    layoutWithSheet.addStyleName(StyleConstants.SCROLLABLE);        
    layoutWithSheet.setSizeFull();

    VerticalLayout vlAll = new VerticalLayout();
    vlAll.addStyleName(StyleConstants.SCROLLABLE);
    vlAll.setSizeFull();

    subBarMenu.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
    subBarMenu.setVisible(false);
    vlAll.addComponent(subBarMenu);

    contentLayout.addStyleName(StyleConstants.SCROLLABLE);
    contentLayout.setSizeFull();
    vlAll.addComponent(contentLayout);
    vlAll.setExpandRatio(contentLayout, 1);

    layoutWithSheet.addComponent(vlAll);

    menuButtonLayout.addStyleName(StyleConstants.VALO_MY_MENU_MAX_WIDTH);   
    layout.setExpandRatio(layoutWithSheet, 1);

    Responsive.makeResponsive(this);
    addStyleName(ValoTheme.UI_WITH_MENU);
}
项目:imotSpot    文件:DashboardView.java   
public DashboardView() {
    addStyleName(ValoTheme.PANEL_BORDERLESS);
    setSizeFull();
    DashboardEventBus.register(this);

    root = new VerticalLayout();
    root.setSizeFull();
    root.setMargin(true);
    root.addStyleName("dashboard-view");
    setContent(root);
    Responsive.makeResponsive(root);

    root.addComponent(buildHeader());

    root.addComponent(buildSparklines());

    Component content = buildContent();
    root.addComponent(content);
    root.setExpandRatio(content, 1);

    // All the open sub-windows should be closed whenever the root layout
    // gets clicked.
    root.addLayoutClickListener(new LayoutClickListener() {
        @Override
        public void layoutClick(final LayoutClickEvent event) {
            DashboardEventBus.post(new CloseOpenWindowsEvent());
        }
    });
}
项目:imotSpot    文件:DashboardView.java   
private Component buildSparklines() {
    CssLayout sparks = new CssLayout();
    sparks.addStyleName("sparks");
    sparks.setWidth("100%");
    Responsive.makeResponsive(sparks);

    return sparks;
}
项目:imotSpot    文件:DashboardView.java   
private Component buildContent() {
        dashboardPanels = new CssLayout();
        dashboardPanels.addStyleName("dashboard-panels");
        Responsive.makeResponsive(dashboardPanels);

        googleMap = new GoogleMap(null, null, null);
        googleMap.setCenter(centerSofia);
        googleMap.setSizeFull();
        googleMap.setImmediate(true);
        googleMap.setZoom(13);

        dashboardPanels.addComponent(googleMap);
        // zopim chat
        String script = "window.$zopim||(function(d,s){var z=$zopim=function(c){\n" +
                "z._.push(c)},$=z.s=\n" +
                "d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.\n" +
                "_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');\n" +
                "$.src='//v2.zopim.com/?3pEeNjxc1QHeNdL8pg6BPqFOTO6wReIb';z.t=+new Date;$.\n" +
                "type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');\n";
        JavaScript.getCurrent().execute(script);

//        dashboardPanels.addComponent(buildTopGrossingMovies());
//        dashboardPanels.addComponent(buildNotes());
//        dashboardPanels.addComponent(buildTop10TitlesByRevenue());
//        dashboardPanels.addComponent(buildPopularMovies());

        return dashboardPanels;
    }
项目:vaadin-vertx-samples    文件:SalesView.java   
private Component buildHeader() {
    HorizontalLayout header = new HorizontalLayout();
    header.addStyleName("viewheader");
    header.setSpacing(true);
    Responsive.makeResponsive(header);

    Label titleLabel = new Label("Revenue by Movie");
    titleLabel.setSizeUndefined();
    titleLabel.addStyleName(ValoTheme.LABEL_H1);
    titleLabel.addStyleName(ValoTheme.LABEL_NO_MARGIN);
    header.addComponents(titleLabel, buildToolbar());

    return header;
}
项目:vaadin-vertx-samples    文件:DashboardView.java   
public DashboardView() {
    addStyleName(ValoTheme.PANEL_BORDERLESS);
    setSizeFull();
    DashboardEventBus.register(this);

    root = new VerticalLayout();
    root.setSizeFull();
    root.setMargin(true);
    root.addStyleName("dashboard-view");
    setContent(root);
    Responsive.makeResponsive(root);

    root.addComponent(buildHeader());

    root.addComponent(buildSparklines());

    Component content = buildContent();
    root.addComponent(content);
    root.setExpandRatio(content, 1);

    // All the open sub-windows should be closed whenever the root layout
    // gets clicked.
    root.addLayoutClickListener(new LayoutClickListener() {
        @Override
        public void layoutClick(final LayoutClickEvent event) {
            DashboardEventBus.post(new CloseOpenWindowsEvent());
        }
    });
}
项目:vaadin-vertx-samples    文件:DashboardView.java   
private Component buildContent() {
    dashboardPanels = new CssLayout();
    dashboardPanels.addStyleName("dashboard-panels");
    Responsive.makeResponsive(dashboardPanels);

    dashboardPanels.addComponent(buildTopGrossingMovies());
    dashboardPanels.addComponent(buildNotes());
    dashboardPanels.addComponent(buildTop10TitlesByRevenue());
    dashboardPanels.addComponent(buildPopularMovies());

    return dashboardPanels;
}
项目:vaadin-vertx-samples    文件:LoginView.java   
private Component buildLoginForm() {
    final VerticalLayout loginPanel = new VerticalLayout();
    loginPanel.setSizeUndefined();
    loginPanel.setSpacing(true);
    Responsive.makeResponsive(loginPanel);
    loginPanel.addStyleName("login-panel");

    loginPanel.addComponent(buildLabels());
    loginPanel.addComponent(buildFields());
    loginPanel.addComponent(new CheckBox("Remember me", true));
    return loginPanel;
}
项目:vaadin-vertx-samples    文件:ProfilePreferencesWindow.java   
private ProfilePreferencesWindow(final User user,
        final boolean preferencesTabOpen) {
    addStyleName("profile-window");
    setId(ID);
    Responsive.makeResponsive(this);

    setModal(true);
    setCloseShortcut(KeyCode.ESCAPE, null);
    setResizable(false);
    setClosable(false);
    setHeight(90.0f, Unit.PERCENTAGE);

    VerticalLayout content = new VerticalLayout();
    content.setSizeFull();
    content.setMargin(new MarginInfo(true, false, false, false));
    setContent(content);

    TabSheet detailsWrapper = new TabSheet();
    detailsWrapper.setSizeFull();
    detailsWrapper.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
    detailsWrapper.addStyleName(ValoTheme.TABSHEET_ICONS_ON_TOP);
    detailsWrapper.addStyleName(ValoTheme.TABSHEET_CENTERED_TABS);
    content.addComponent(detailsWrapper);
    content.setExpandRatio(detailsWrapper, 1f);

    detailsWrapper.addComponent(buildProfileTab());
    detailsWrapper.addComponent(buildPreferencesTab());

    if (preferencesTabOpen) {
        detailsWrapper.setSelectedTab(1);
    }

    content.addComponent(buildFooter());

    fieldGroup = new BeanFieldGroup<User>(User.class);
    fieldGroup.bindMemberFields(this);
    fieldGroup.setItemDataSource(user);
}
项目:VaadinSpringShiroMongoDB    文件:MyUI.java   
@Override
protected void init(VaadinRequest vaadinRequest) {
    Responsive.makeResponsive(this);
    setLocale(vaadinRequest.getLocale());
    getPage().setTitle("My");
    if (!accessControl.isUserSignedIn()) {
        setContent(new LoginScreen(accessControl, this::showMainView));
    } else {
        showMainView();
    }
}
项目:hybridbpm    文件:AccessView.java   
public AccessView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.addTab(usersLayout, "Users", FontAwesome.USER);
    tabSheet.addTab(userGroupsLayout, "User Group", FontAwesome.SITEMAP);
    tabSheet.addTab(groupsLayout, "Group", FontAwesome.USERS);
    tabSheet.addTab(roleGroupsLayout, "Group Role", FontAwesome.SITEMAP);
    tabSheet.addTab(rolesLayout, "Roles", FontAwesome.USERS);

    tabSheet.addSelectedTabChangeListener(this);
    usersLayout.refreshTable();
}
项目:hybridbpm    文件:TaskListView.java   
public TaskListView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(todoListLayout, Translate.getMessage("todo"), FontAwesome.ENVELOPE);
    tabSheet.addTab(doneListLayout, Translate.getMessage("done"), FontAwesome.ARCHIVE);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    todoListLayout.refreshTable();
    todoListLayout.setTabSheet(tabSheet);
    doneListLayout.setTabSheet(tabSheet);
}
项目:hybridbpm    文件:LoginView.java   
private void buildLoginForm() {
    Responsive.makeResponsive(loginPanel);
    loginPanel.setSizeUndefined();
    loginPanel.setSpacing(true);
    loginPanel.addStyleName("login-panel");

    labels.addStyleName("labels");
    welcome.setSizeUndefined();
    welcome.addStyleName(ValoTheme.LABEL_H4);
    welcome.addStyleName(ValoTheme.LABEL_LIGHT);
    title.setSizeUndefined();
    title.addStyleName(ValoTheme.LABEL_H3);
    title.addStyleName(ValoTheme.LABEL_COLORED);

    fields.setSpacing(true);
    fields.addStyleName("fields");

    username.setIcon(FontAwesome.USER);
    username.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);
    username.setNullRepresentation("");

    password.setIcon(FontAwesome.LOCK);
    password.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);

    signin.addStyleName(ValoTheme.BUTTON_PRIMARY);
    signin.setClickShortcut(ShortcutAction.KeyCode.ENTER);
    signin.focus();

    fields.setComponentAlignment(signin, Alignment.BOTTOM_LEFT);

    signin.addClickListener((Button.ClickEvent event) -> {
        HybridbpmUI.getCurrent().login(username.getValue(), password.getValue(), rememberMe.getValue());
    });
}
项目:hybridbpm    文件:CalendarView.java   
public CalendarView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(calendarLayout, "Calendar", FontAwesome.CALENDAR);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    calendarLayout.refreshData();
    calendarLayout.setTabSheet(tabSheet);
}
项目:hybridbpm    文件:DevelopmentView.java   
public DevelopmentView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);

    moduleType.addContainerProperty("NAME", String.class, null);
    moduleType.addItem(Boolean.FALSE).getItemProperty("NAME").setValue("Module");
    moduleType.addItem(Boolean.TRUE).getItemProperty("NAME").setValue("Template");
    moduleType.setItemCaptionMode(AbstractSelect.ItemCaptionMode.PROPERTY);
    moduleType.setItemCaptionPropertyId("NAME");
    moduleType.setValue(Boolean.FALSE);
    moduleType.addValueChangeListener(this);

    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    btnExport.setIcon(FontAwesome.CLOUD_UPLOAD);
    btnExport.addClickListener(this);

    btnImport.setIcon(FontAwesome.CLOUD_DOWNLOAD);
    btnImport.addClickListener(this);

    btnRegenerate.setIcon(FontAwesome.WRENCH);
    btnRegenerate.addClickListener(this);

    modulesLayout.setMargin(new MarginInfo(true, false, false, false));
    modulesLayout.setExpandRatio(modulesTable, 1f);

    modulesTable.addContainerProperty("title", Component.class, null, "Title", null, Table.Align.LEFT);
    modulesTable.setColumnExpandRatio("title", 1f);
    modulesTable.addContainerProperty("updateDate", Date.class, null, "Update Date", null, Table.Align.LEFT);
    modulesTable.addContainerProperty("actions", TableButtonBar.class, null, "Actions", null, Table.Align.LEFT);
    modulesTable.setColumnWidth("updateDate", 150);
    modulesTable.setColumnWidth("actions", 80);
    modulesTable.addGeneratedColumn("updateDate", new DateColumnGenerator());
    modulesTable.setVisibleColumns("title", "updateDate", "actions");
}
项目:hybridbpm    文件:DocumentView.java   
public DocumentView() {
    Design.read(this);
    tabSheet.getTab(documentsLayout).setCaption(Translate.getMessage("Documents"));
    btnSearch.setCaption(Translate.getMessage("btnSearch"));
    btnRefresh.setCaption(Translate.getMessage("btnRefresh"));
    btnAddFile.setCaption(Translate.getMessage("btnAddFile"));
    btnAddFolder.setCaption(Translate.getMessage("btnAddFolder"));
    textFieldSearch.setCaption(Translate.getMessage("textFieldSearch"));

    Responsive.makeResponsive(panelLayout);
    btnAddFolder.setIcon(FontAwesome.FOLDER_O);
    btnAddFolder.addClickListener(this);
    btnAddFile.setIcon(FontAwesome.FILE_O);
    btnAddFile.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    textFieldSearch.setIcon(FontAwesome.SEARCH);

    documentsLayout.setMargin(new MarginInfo(true, false, false, false));
    documentsLayout.setExpandRatio(documentTable, 1f);

    documentTable.addContainerProperty("name", String.class, null, Translate.getMessage("tableDocumentsName"), null, Table.Align.LEFT);
    documentTable.setColumnExpandRatio("name", 1f);
    documentTable.addContainerProperty("description", String.class, null, Translate.getMessage("tableDocumentsTitle"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("creator", String.class, null, Translate.getMessage("tableDocumentsCreator"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("createDate", Date.class, null, Translate.getMessage("tableDocumentsCreateDate"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("updateDate", Date.class, null, Translate.getMessage("tableDocumentsUpdateDate"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("actions", TableButtonBar.class, null, Translate.getMessage("tableDocumentsActions"), null, Table.Align.LEFT);
    documentTable.setColumnWidth("createDate", 150);
    documentTable.setColumnWidth("updateDate", 150);
    documentTable.setColumnWidth("actions", 55);
    documentTable.addGeneratedColumn("name", new DocumentColumnGenerator(this));
    documentTable.addGeneratedColumn("createDate", new DateColumnGenerator());
    documentTable.addGeneratedColumn("updateDate", new DateColumnGenerator());
    documentTable.setVisibleColumns("name", "description", "creator", "createDate", "updateDate", "actions");
    tabSheet.addSelectedTabChangeListener(this);
}
项目:hybridbpm    文件:AdministrationView.java   
public AdministrationView() {
        Design.read(this);
        Responsive.makeResponsive(panelLayout);
        tabSheet.addTab(systemParametersLayout, "Parameters", FontAwesome.WRENCH);
        tabSheet.addTab(allProgressLayout, "Processes", FontAwesome.COGS);
//        tabSheet.addTab(viewsLayout, "Views", FontAwesome.LIST);
        tabSheet.addSelectedTabChangeListener(this);
        systemParametersLayout.refreshTable();
        allProgressLayout.setTabSheet(tabSheet);
    }
项目:hybridbpm    文件:CaseView.java   
public CaseView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(startProcessLayout, "Start case", FontAwesome.MAGIC);
    tabSheet.addTab(myCaseInProgressLayout, "In progress", FontAwesome.BRIEFCASE);
    tabSheet.addTab(myCaseDoneLayout, "Done", FontAwesome.ARCHIVE);
    tabSheet.setSelectedTab(myCaseInProgressLayout);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    startProcessLayout.refreshTable();
    startProcessLayout.setTabSheet(tabSheet);
    myCaseInProgressLayout.setTabSheet(tabSheet);
    myCaseDoneLayout.setTabSheet(tabSheet);
}
项目:hybridbpm    文件:HybridbpmUI.java   
@Override
protected void init(VaadinRequest request) {
    Responsive.makeResponsive(this);
    setLocale(request.getLocale());
    dashboardListenerId = HazelcastServer.getDashboardEventTopic().addMessageListener(new DashBoardMessageListener(this));
    addStyleName(ValoTheme.UI_WITH_MENU);

    mainLayout.setExpandRatio(viewContent, 1f);
    mainLayout.setSizeFull();
    mainLayout.addStyleName("mainview");
    viewContent.setSizeFull();
    viewContent.addStyleName("view-content");
    rootLayout.setSizeFull();
    updateContent();
}
项目:hybridbpm    文件:AbstractTabLayout.java   
public AbstractTabLayout() {
    Design.read(this);
    Responsive.makeResponsive(this);

    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    prepareUI();
}
项目:hybridbpm    文件:CaseLayout.java   
public CaseLayout(String caseId) {
    this.caseId = caseId;

    Responsive.makeResponsive(this);
    btnDelete.setIcon(FontAwesome.TIMES);
    btnTerminate.setIcon(FontAwesome.STOP);
    btnTerminate.setStyleName(ValoTheme.BUTTON_PRIMARY);

    buttonBar.setWidth(100, Unit.PERCENTAGE);
    buttonBar.setSpacing(true);
    buttonBar.addStyleName("toolbar");
    buttonBar.setExpandRatio(btnDelete, 1f);
    buttonBar.setComponentAlignment(btnDelete, Alignment.MIDDLE_RIGHT);
    buttonBar.setComponentAlignment(btnTerminate, Alignment.MIDDLE_RIGHT);

    tabSheet.setStyleName(ValoTheme.TABSHEET_FRAMED);
    tabSheet.setSizeFull();

    setSizeFull();
    setSpacing(true);
    addComponent(caseFormHeader);
    addComponent(tabSheet);
    addComponent(buttonBar);
    setExpandRatio(tabSheet, 1f);

    loadForm();
}
项目:hybridbpm    文件:TaskOptionLayout.java   
public TaskOptionLayout(Task task) {
    Design.read(this);
    Responsive.makeResponsive(this);
    scheduleStartDate.setResolution(Resolution.MINUTE);
    scheduleEndDate.setResolution(Resolution.MINUTE);
    setDefaultScheduler(task);
    binder.setItemDataSource(task);
    binder.bind(scheduleStartDate, "scheduleStartDate");
    binder.bind(scheduleEndDate, "scheduleEndDate");
    binder.setBuffered(true);
}
项目:hybridbpm    文件:AbstractTableLayout.java   
public AbstractTableLayout() {
    Design.read(this);
    Responsive.makeResponsive(this);

    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    setExpandRatio(iTable, 1f);
    prepareTable();
}
项目:hybridbpm    文件:DashboardTab.java   
public DashboardTab(TabDefinition tab, ViewDefinition viewDefinition) {
    this.tabDefinition = tab;
    this.viewDefinition = viewDefinition;
    Design.read(this);
    Responsive.makeResponsive(this);
    btnEdit.setIcon(FontAwesome.EDIT);
    btnEdit.setDescription("Edit view");
    btnEdit.addClickListener(this);
    refresh();
    checkDeveloperMode();
}
项目:hybridbpm    文件:AbstractTreeTableLayout.java   
public AbstractTreeTableLayout() {
    Design.read(this);
    Responsive.makeResponsive(this);

    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    setExpandRatio(iTable, 1f);
    prepareTable();
}