List of usage examples for com.vaadin.server FontAwesome CARET_RIGHT
FontAwesome CARET_RIGHT
To view the source code for com.vaadin.server FontAwesome CARET_RIGHT.
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 .j a va 2 s . 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; }