List of usage examples for com.vaadin.server FontAwesome CARET_LEFT
FontAwesome CARET_LEFT
To view the source code for com.vaadin.server FontAwesome CARET_LEFT.
Click Source Link
From source file:de.metas.ui.web.vaadin.window.view.WindowViewImpl.java
License:Open Source License
@Override protected Component createUI() { final VerticalLayout content = new VerticalLayout(); content.addStyleName(STYLE);/*from w w w . jav a 2s. c o m*/ // // Lane: Rating & actions { actionsPanel = new HorizontalLayout(); actionsPanel.addStyleName(STYLE + "-actions-lane"); content.addComponent(actionsPanel); } // // Lane: document summary { final HorizontalLayout panelSummary = new HorizontalLayout(); panelSummary.addStyleName(STYLE + "-summary-lane"); content.addComponent(panelSummary); // Component: navigation buttons and document summary text { this.recordSummaryEditor = new LabelEditor(WindowConstants.PROPERTYNAME_RecordSummary); recordSummaryEditor.addStyleName(STYLE + "-record-summary-label"); recordSummaryEditor.setContentMode(ContentMode.PREFORMATTED); btnPreviousRecord = new Button(); btnPreviousRecord.setPrimaryStyleName(STYLE + "-record-nav-btn"); btnPreviousRecord.setIcon(FontAwesome.CARET_LEFT); btnPreviousRecord.addClickListener( event -> commitChangesAndFireAction(WindowConstants.ACTION_PreviousRecord)); btnNextRecord = new Button(); btnNextRecord.setPrimaryStyleName(STYLE + "-record-nav-btn"); btnNextRecord.setIcon(FontAwesome.CARET_RIGHT); btnNextRecord .addClickListener(event -> commitChangesAndFireAction(WindowConstants.ACTION_NextRecord)); final HorizontalLayout recordNavigationComp = new HorizontalLayout(btnPreviousRecord, recordSummaryEditor, btnNextRecord); recordNavigationComp.addStyleName(STYLE + "-record-nav"); panelSummary.addComponent(recordNavigationComp); } // Component: current record indicators { recordIndicators = new WindowRecordIndicators(); panelSummary.addComponent(recordIndicators); } // Component: document additional summary text { this.recordAdditionalSummaryEditor = new LabelEditor( WindowConstants.PROPERTYNAME_RecordAditionalSummary); recordAdditionalSummaryEditor.addStyleName(STYLE + "-record-addsummary-label"); recordAdditionalSummaryEditor.setContentMode(ContentMode.PREFORMATTED); panelSummary.addComponent(recordAdditionalSummaryEditor); } } // // Lane: window panels bar { panelsBar = new WindowPanelsBar(); panelsBar.addStyleName(STYLE + "-tabbar-lane"); content.addComponent(panelsBar); } // // Panels container { rootEditorContainer = new HorizontalLayout(); rootEditorContainer.addStyleName(STYLE + "-content-lane"); rootEditorContainer.setSizeFull(); content.addComponent(rootEditorContainer); } // // Register editors { // registerEditor(titleEditor); registerEditor(recordSummaryEditor); registerEditor(recordAdditionalSummaryEditor); } // return content; }