微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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,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,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,Unit.PERCENTAGE);

    VerticalLayout content = new VerticalLayout();
    content.setSizefull();
    content.setMargin(new MarginInfo(true,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));
    modulesLayout.setExpandratio(modulesTable,1f);

    modulesTable.addContainerProperty("title",Component.class,"Title",Table.Align.LEFT);
    modulesTable.setColumnExpandratio("title",1f);
    modulesTable.addContainerProperty("updateDate",Date.class,"Update Date",Table.Align.LEFT);
    modulesTable.addContainerProperty("actions",Tablebuttonbar.class,"Actions",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));
    documentsLayout.setExpandratio(documentTable,1f);

    documentTable.addContainerProperty("name",Translate.getMessage("tableDocumentsName"),Table.Align.LEFT);
    documentTable.setColumnExpandratio("name",1f);
    documentTable.addContainerProperty("description",Translate.getMessage("tableDocumentsTitle"),Table.Align.LEFT);
    documentTable.addContainerProperty("creator",Translate.getMessage("tableDocumentsCreator"),Table.Align.LEFT);
    documentTable.addContainerProperty("createDate",Translate.getMessage("tableDocumentsCreateDate"),Table.Align.LEFT);
    documentTable.addContainerProperty("updateDate",Translate.getMessage("tableDocumentsUpdateDate"),Table.Align.LEFT);
    documentTable.addContainerProperty("actions",Translate.getMessage("tableDocumentsActions"),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","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();
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。