List of usage examples for com.vaadin.ui Label addStyleName
@Override public void addStyleName(String style)
From source file:org.activiti.explorer.ui.mainlayout.MainMenuBar.java
License:Apache License
protected void initTitle() { Label title = new Label(); title.addStyleName(Reindeer.LABEL_H1); if (ExplorerApp.get().getEnvironment().equals(Environments.ALFRESCO)) { title.addStyleName(ExplorerLayout.STYLE_WORKFLOW_CONSOLE_LOGO); } else {//from www .j a v a 2 s. co m title.addStyleName(ExplorerLayout.STYLE_APPLICATION_LOGO); } addComponent(title); setExpandRatio(title, 1.0f); }
From source file:org.activiti.explorer.ui.MainMenuBar.java
License:Apache License
protected void initTitle() { Label title = new Label(); title.addStyleName(Reindeer.LABEL_H1); title.addStyleName(ExplorerLayout.STYLE_APPLICATION_LOGO); addComponent(title);/* w ww .j av a 2 s . com*/ setExpandRatio(title, 1.0f); }
From source file:org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel.java
License:Apache License
protected void initPageTitle() { HorizontalLayout layout = new HorizontalLayout(); layout.setWidth(100, UNITS_PERCENTAGE); layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK); layout.setSpacing(true);// w w w. j a v a 2s .c o m layout.setMargin(false, false, true, false); addDetailComponent(layout); Embedded groupImage = new Embedded(null, Images.PROCESS_50); layout.addComponent(groupImage); Label groupName = new Label(i18nManager.getMessage(Messages.ADMIN_COMPLETED_TITLE)); groupName.setSizeUndefined(); groupName.addStyleName(Reindeer.LABEL_H2); layout.addComponent(groupName); layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT); layout.setExpandRatio(groupName, 1.0f); }
From source file:org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel.java
License:Apache License
protected void initDefinitionTitle(HorizontalLayout membersHeader) { Label usersHeader = new Label(i18nManager.getMessage(Messages.ADMIN_DEFINITIONS)); usersHeader.addStyleName(ExplorerLayout.STYLE_H3); membersHeader.addComponent(usersHeader); }
From source file:org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel.java
License:Apache License
protected void initInstancesTitle(HorizontalLayout instancesHeader) { Label instancesLabel = new Label(i18nManager.getMessage(Messages.PROCESS_INSTANCES)); instancesLabel.addStyleName(ExplorerLayout.STYLE_H3); instancesHeader.addComponent(instancesLabel); }
From source file:org.activiti.explorer.ui.management.admin.AdminDatabaseSettingsPanel.java
License:Apache License
protected void initPageTitle() { HorizontalLayout layout = new HorizontalLayout(); layout.setWidth(100, UNITS_PERCENTAGE); layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK); layout.setSpacing(true);/*from ww w.j a v a2s.c o m*/ layout.setMargin(false, false, true, false); addDetailComponent(layout); Embedded databaseImage = new Embedded(null, Images.DATABASE_50); layout.addComponent(databaseImage); Label groupName = new Label(i18nManager.getMessage(Messages.DATABASE_TITLE)); groupName.setSizeUndefined(); groupName.addStyleName(Reindeer.LABEL_H2); layout.addComponent(groupName); layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT); layout.setExpandRatio(groupName, 1.0f); }
From source file:org.activiti.explorer.ui.management.admin.AdminDatabaseSettingsPanel.java
License:Apache License
protected void initDatabaseSettingsDetails() { Label settingsHeader = new Label(i18nManager.getMessage(Messages.MGMT_MENU_DATABASE)); settingsHeader.addStyleName(ExplorerLayout.STYLE_H3); settingsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK); addDetailComponent(settingsHeader);/*from www .j av a 2s . com*/ detailLayout = new HorizontalLayout(); detailLayout.setSpacing(true); detailLayout.setMargin(true, false, true, false); addDetailComponent(detailLayout); initSettingsProperties(); }
From source file:org.activiti.explorer.ui.management.admin.AdminDatabaseSettingsPanel.java
License:Apache License
protected void initSettingsProperties() { detailsGrid = new GridLayout(2, 3); detailsGrid.setSpacing(true);/*w ww. j a v a 2 s. c o m*/ detailLayout.setMargin(true, true, true, false); detailLayout.addComponent(detailsGrid); // Database type Label typeLabel = new Label(i18nManager.getMessage(Messages.DATABASE_TYPE) + ": "); typeLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(typeLabel); Label typeValueLabel = new Label(engineConfiguration.getDatabaseType()); detailsGrid.addComponent(typeValueLabel); // Database schema update Label schemaUpdateLabel = new Label(i18nManager.getMessage(Messages.DATABASE_UPDATE) + ": "); schemaUpdateLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(schemaUpdateLabel); Label schemaUpdateValueLabel = new Label(engineConfiguration.getDatabaseSchemaUpdate()); detailsGrid.addComponent(schemaUpdateValueLabel); // Config type Label configTypeLabel = new Label(i18nManager.getMessage(Messages.DATABASE_CONFIG_TYPE) + ": "); configTypeLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(configTypeLabel); String databaseConfigType = getDatabaseType(); Label configTypeValueLabel = new Label(databaseConfigType); detailsGrid.addComponent(configTypeValueLabel); if ("JNDI".equals(databaseConfigType)) { // JNDI Label jndiLabel = new Label(i18nManager.getMessage(Messages.DATABASE_JNDI) + ": "); jndiLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(jndiLabel); Label jndiValueLabel = new Label(engineConfiguration.getDataSourceJndiName()); detailsGrid.addComponent(jndiValueLabel); } else if ("Datasource".equals(databaseConfigType)) { // Datasource class Label datasourceLabel = new Label(i18nManager.getMessage(Messages.DATABASE_DATASOURCE_CLASS) + ": "); datasourceLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(datasourceLabel); Label datasourceValueLabel = new Label(engineConfiguration.getDataSource().getClass().getName()); detailsGrid.addComponent(datasourceValueLabel); } else { // JDBC URL Label jdbcURLLabel = new Label(i18nManager.getMessage(Messages.DATABASE_JDBC_URL) + ": "); jdbcURLLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD); detailsGrid.addComponent(jdbcURLLabel); Label jdbcURLValueLabel = new Label(engineConfiguration.getJdbcUrl()); detailsGrid.addComponent(jdbcURLValueLabel); } }
From source file:org.activiti.explorer.ui.management.admin.AdminRunningInstancesPanel.java
License:Apache License
protected void initPageTitle() { HorizontalLayout layout = new HorizontalLayout(); layout.setWidth(100, UNITS_PERCENTAGE); layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK); layout.setSpacing(true);/*www . ja v a 2s .com*/ layout.setMargin(false, false, true, false); addDetailComponent(layout); Embedded groupImage = new Embedded(null, Images.PROCESS_50); layout.addComponent(groupImage); Label groupName = new Label(i18nManager.getMessage(Messages.ADMIN_RUNNING_TITLE)); groupName.setSizeUndefined(); groupName.addStyleName(Reindeer.LABEL_H2); layout.addComponent(groupName); layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT); layout.setExpandRatio(groupName, 1.0f); }
From source file:org.activiti.explorer.ui.management.crystalball.EventOverviewPanel.java
License:Apache License
protected void initProcessInstanceTitle(HorizontalLayout instancesHeader) { Label titleHeader = new Label(i18nManager.getMessage(Messages.PROCESS_INSTANCES)); titleHeader.addStyleName(ExplorerLayout.STYLE_H3); instancesHeader.addComponent(titleHeader); }