List of usage examples for com.vaadin.server FontAwesome LIST_ALT
FontAwesome LIST_ALT
To view the source code for com.vaadin.server FontAwesome LIST_ALT.
Click Source Link
From source file:annis.gui.AdminUI.java
License:Apache License
@Override protected void init(VaadinRequest request) { super.init(request); getPage().setTitle("ANNIS Adminstration"); WebResource rootResource = Helper.getAnnisWebResource(); UserManagement userManagement = new UserManagement(); userManagement.setRootResource(rootResource); GroupManagement groupManagement = new GroupManagement(); groupManagement.setRootResource(rootResource); CorpusManagement corpusManagement = new CorpusManagement(); corpusManagement.setRootResource(rootResource); boolean isLoggedIn = Helper.getUser() != null; corpusAdminPanel = new CorpusAdminPanel(); corpusController = new CorpusController(corpusManagement, corpusAdminPanel, this, isLoggedIn); userManagementPanel = new UserManagementPanel(); userController = new UserController(userManagement, userManagementPanel, this, isLoggedIn); groupManagementPanel = new GroupManagementPanel(); groupManagementController = new GroupController(groupManagement, corpusManagement, groupManagementPanel, this, userManagementPanel, isLoggedIn); boolean kickstarter = Boolean.parseBoolean( getSession().getConfiguration().getInitParameters().getProperty("kickstarterEnvironment", "false")); importPanel = new ImportPanel(!kickstarter, Helper.getUser() != null); tabSheet = new TabSheet(); tabSheet.addTab(importPanel, "Import Corpus", FontAwesome.UPLOAD); tabSheet.addTab(corpusAdminPanel, "Corpus management", FontAwesome.LIST_ALT); if (!kickstarter) { tabSheet.addTab(userManagementPanel, "User management", FontAwesome.USER); tabSheet.addTab(groupManagementPanel, "Group management", FontAwesome.USERS); }/* ww w . j a v a 2s . com*/ tabSheet.setSizeFull(); tabSheet.addSelectedTabChangeListener(this); MainToolbar toolbar = new MainToolbar(null); addExtension(toolbar.getScreenshotExtension()); toolbar.addLoginListener(AdminUI.this); layout = new VerticalLayout(toolbar, tabSheet); layout.setSizeFull(); layout.setExpandRatio(toolbar, 0.0f); layout.setExpandRatio(tabSheet, 1.0f); tabSheet.addStyleName(ValoTheme.TABSHEET_FRAMED); setContent(layout); getPage().addUriFragmentChangedListener(this); selectTabFromFragment(getPage().getUriFragment()); }
From source file:annis.gui.AdminView.java
License:Apache License
public AdminView(AnnisUI ui) { Page.getCurrent().setTitle("ANNIS Adminstration"); UserManagement userManagement = new UserManagement(); userManagement.setWebResourceProvider(AdminView.this); GroupManagement groupManagement = new GroupManagement(); groupManagement.setWebResourceProvider(AdminView.this); CorpusManagement corpusManagement = new CorpusManagement(); corpusManagement.setWebResourceProvider(AdminView.this); boolean isLoggedIn = Helper.getUser() != null; corpusAdminPanel = new CorpusAdminPanel(); corpusController = new CorpusController(corpusManagement, corpusAdminPanel, this, isLoggedIn); userManagementPanel = new UserManagementPanel(); userController = new UserController(userManagement, userManagementPanel, this, isLoggedIn); groupManagementPanel = new GroupManagementPanel(); groupManagementController = new GroupController(groupManagement, corpusManagement, groupManagementPanel, this, userManagementPanel, isLoggedIn); importPanel = new ImportPanel(); tabSheet = new TabSheet(); tabSheet.addTab(importPanel, "Import Corpus", FontAwesome.UPLOAD); tabSheet.addTab(corpusAdminPanel, "Corpus management", FontAwesome.LIST_ALT); tabSheet.addTab(userManagementPanel, "User management", FontAwesome.USER); tabSheet.addTab(groupManagementPanel, "Group management", FontAwesome.USERS); tabSheet.setSizeFull();/*ww w .jav a2s . c om*/ tabSheet.addSelectedTabChangeListener(AdminView.this); addComponents(tabSheet); setSizeFull(); setExpandRatio(tabSheet, 1.0f); tabSheet.addStyleName(ValoTheme.TABSHEET_FRAMED); }
From source file:annis.gui.HelpPanel.java
License:Apache License
public HelpPanel(AnnisUI ui) { setSizeFull();/* w w w. j a v a2s .com*/ tutorial = new TutorialPanel(); tutorial.setHeight("99%"); examples = new ExampleQueriesPanel(ui, this); examples.setHeight("99%"); addTab(tutorial, "Tutorial", FontAwesome.BOOK); addTab(examples, "Example Queries", FontAwesome.LIST_ALT); setSelectedTab(examples); addStyleName("help-tab"); }
From source file:com.hybridbpm.ui.component.bpm.TaskLayout.java
License:Apache License
private void createTaskTab() { taskForm = HybridbpmUiUtil.generateTaskFormObject(taskModel.getForm()); taskForm.setStyleName(HybridbpmStyle.LAYOUT_PADDING16); taskForm.setProcessData(hCase != null ? hCase.getId().toString() : null, processModel); tabSheet.addTab(taskForm, taskModel.getTitle(), FontAwesome.LIST_ALT); }
From source file:com.yoncabt.ebr.ui.ReportWindow.java
@Override protected void init(VaadinRequest request) { reportType.setNullSelectionAllowed(false); reportLocale.setNullSelectionAllowed(false); reportLocale.addItem("tr_TR"); reportLocale.setItemCaption("tr_TR", "Trke"); reportLocale.addItem("en_US"); reportLocale.setItemCaption("en_US", "English"); email.setEnabled(mailSender.isConfigured()); grid = new Grid(); try {/*from ww w .j av a 2s. c o m*/ MenuBar mb = createMenuBar(); HorizontalLayout hl = new HorizontalLayout(mb); setContent(hl); } catch (IOException | JRException ex) { Notification.show("Hata", Notification.Type.ERROR_MESSAGE); Logger.getLogger(ReportWindow.class.getName()).log(Level.SEVERE, null, ex); } Button btnReload = new Button(FontAwesome.LIST_ALT); btnReload.setDisableOnClick(true); btnReload.addClickListener((Button.ClickEvent event) -> { try { fillTheGrid(); } catch (Exception ex) { Notification.show("Hata", Notification.Type.ERROR_MESSAGE); Logger.getLogger(ReportWindow.class.getName()).log(Level.SEVERE, null, ex); } event.getButton().setEnabled(true); }); gridLayout = new HorizontalLayout(); if (report instanceof SQLReport) { createGrid(); } btnExport = YoncaGridXLSExporter.createDownloadButton(grid, "raporlar.xls"); gridLayout.setSizeFull(); window.setSizeUndefined(); window.setContent(new VerticalLayout(formLayout, new HorizontalLayout(btnExport, btnReload), gridLayout)); window.setClosable(false); addWindow(window); window.center(); getPage().addUriFragmentChangedListener((Page.UriFragmentChangedEvent event) -> { String frag = event.getUriFragment(); ReportWindow.this.uriFragmentChanged(frag); }); if (StringUtils.isNotEmpty(getPage().getUriFragment())) { ReportWindow.this.uriFragmentChanged(getPage().getUriFragment()); } }
From source file:org.eclipse.hawkbit.ui.common.detailslayout.AbstractTableDetailsLayout.java
License:Open Source License
protected void createComponents() { caption = createHeaderCaption();// w ww .j av a 2 s . c o m caption.setImmediate(true); caption.setContentMode(ContentMode.HTML); caption.setId(getDetailsHeaderCaptionId()); editButton = SPUIComponentProvider.getButton("", "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_UPDATE), null, false, FontAwesome.PENCIL_SQUARE_O, SPUIButtonStyleNoBorder.class); editButton.setId(getEditButtonId()); editButton.addClickListener(this::onEdit); editButton.setEnabled(false); manageMetadataBtn = SPUIComponentProvider.getButton("", "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_METADATA_ICON), null, false, FontAwesome.LIST_ALT, SPUIButtonStyleNoBorder.class); manageMetadataBtn.setId(getMetadataButtonId()); manageMetadataBtn.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_METADATA_ICON)); manageMetadataBtn.addClickListener(this::showMetadata); manageMetadataBtn.setEnabled(false); detailsTab = SPUIComponentProvider.getDetailsTabSheet(); detailsTab.setImmediate(true); detailsTab.setWidth(98, Unit.PERCENTAGE); detailsTab.setHeight(90, Unit.PERCENTAGE); detailsTab.addStyleName(SPUIStyleDefinitions.DETAILS_LAYOUT_STYLE); detailsTab.setId(getTabSheetId()); }