List of usage examples for com.vaadin.server Responsive makeResponsive
public static void makeResponsive(Component... components)
From source file:com.hybridbpm.ui.view.DashboardView.java
License:Apache License
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);//from w ww. ja va 2 s. c o m btnEdit.setCaption("Edit view"); btnDelete.addClickListener(this); btnDelete.setIcon(FontAwesome.TIMES_CIRCLE); btnDelete.setCaption("Delete view"); createTabs(); checkDeveloperMode(); tabSheet.addSelectedTabChangeListener(this); tabSheet.setCloseHandler(this); }
From source file:com.hybridbpm.ui.view.DevelopmentView.java
License:Apache License
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"); }
From source file:com.hybridbpm.ui.view.DocumentView.java
License:Apache License
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);/*from w ww. j a v a 2 s . c o m*/ 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); }
From source file:com.hybridbpm.ui.view.LoginView.java
License:Apache License
private void buildLoginForm() { Responsive.makeResponsive(loginPanel); loginPanel.setSizeUndefined();//from ww w .j a v a 2s. c o m 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()); }); }
From source file:com.hybridbpm.ui.view.TaskListView.java
License:Apache License
public TaskListView() { Design.read(this); Responsive.makeResponsive(panelLayout); tabSheet.setSizeFull();//from ww w . ja v a 2s . c om 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); }
From source file:com.mcparland.john.vaadin_mvn_arch.MyUI.java
License:Apache License
@SuppressWarnings("serial") @Override/*from ww w. j av a 2 s .c o m*/ protected void init(VaadinRequest vaadinRequest) { Responsive.makeResponsive(this); setLocale(vaadinRequest.getLocale()); getPage().setTitle("My"); if (!accessControl.isUserSignedIn()) { setContent(new LoginScreen(accessControl, new LoginListener() { @Override public void loginSuccessful() { showMainView(); } })); } else { showMainView(); } }
From source file:com.naoset.framework.frontend.component.profile.CustomerEditWindowView.java
private void openWindow() { Window myWindow = new Window("Cliente"); myWindow.addStyleName("profile-window"); myWindow.setId(ID);// w ww. j a va 2 s . c om Responsive.makeResponsive(this); myWindow.setModal(true); myWindow.setCloseShortcut(ShortcutAction.KeyCode.ESCAPE, null); myWindow.setResizable(false); myWindow.setClosable(false); myWindow.setHeight(90.0f, Unit.PERCENTAGE); VerticalLayout layout = new VerticalLayout(); CustomerPanelView customerPanelView = new CustomerPanelView(); layout.addComponent(customerPanelView.buildCustomerPanel(null)); layout.addComponent(builtButton()); myWindow.setContent(layout); myWindow.setVisible(true); UI.getCurrent().addWindow(myWindow); myWindow.focus(); }
From source file:com.naoset.framework.frontend.view.window.DialogWindow.java
public DialogWindow(String title) { super(title); this.setModal(true); //addStyleName("moviedetailswindow"); Responsive.makeResponsive(this); setCloseShortcut(ShortcutAction.KeyCode.ESCAPE, null); setResizable(false);//from ww w. j a v a 2 s .com setClosable(false); //setHeight(90.0f, Unit.PERCENTAGE); layout = new VerticalLayout(); layout.setSizeFull(); bodyWrapper = buildBodyWrapper(); footer = buildFooter(); layout.addComponent(bodyWrapper); layout.addComponent(footer); layout.setExpandRatio(bodyWrapper, 1f); setContent(layout); center(); setHeight(layout.getHeight(), layout.getHeightUnits()); setWidth(layout.getWidth(), layout.getWidthUnits()); }
From source file:com.naoset.framework.frontend.view.window.Window.java
public Window(Component component) { mySelf = this; this.body = component; //addStyleName("moviedetailswindow"); Responsive.makeResponsive(this); setCaption(body.getCaption());/* ww w . java 2s. co m*/ center(); setCloseShortcut(ShortcutAction.KeyCode.ESCAPE, null); setResizable(false); setClosable(false); setHeight(90.0f, Unit.PERCENTAGE); VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); setContent(layout); Panel bodyWrapper = new Panel(body); bodyWrapper.setSizeFull(); bodyWrapper.addStyleName(ValoTheme.PANEL_BORDERLESS); bodyWrapper.addStyleName("scroll-divider"); layout.addComponent(bodyWrapper); layout.setExpandRatio(bodyWrapper, 1f); footer = buildFooter(); layout.addComponent(footer); }
From source file:com.selzlein.lojavirtual.vaadin.core.LspsUI.java
License:Open Source License
@Override public void init(VaadinRequest request) { Responsive.makeResponsive(this); getUI().addStyleName(ValoTheme.UI_WITH_MENU); //register self for error handling setErrorHandler(this); connector = new LspsAppConnectorImpl(this); connector.getInjector().inject(this); initLayout();//from w ww .ja va 2 s . com }