List of usage examples for com.vaadin.server FontAwesome ARROW_CIRCLE_RIGHT
FontAwesome ARROW_CIRCLE_RIGHT
To view the source code for com.vaadin.server FontAwesome ARROW_CIRCLE_RIGHT.
Click Source Link
From source file:com.hybridbpm.ui.component.bpm.designer.ProcessModelLayout.java
License:Apache License
private void prepareButtonsBars() { // element button bar btnEdit.addStyleName(ValoTheme.BUTTON_LINK); btnEdit.addStyleName(ValoTheme.BUTTON_SMALL); btnEdit.addStyleName("edit-button"); btnEdit.setIcon(FontAwesome.PENCIL_SQUARE); btnDelete.addStyleName(ValoTheme.BUTTON_LINK); btnDelete.addStyleName(ValoTheme.BUTTON_SMALL); btnDelete.addStyleName("edit-button"); btnDelete.setIcon(FontAwesome.TIMES); elementButtonBar.addComponent(btnEdit); elementButtonBar.addComponent(btnDelete); elementButtonBar.setId("button-bar"); // width button bar btnRight.setIcon(FontAwesome.ARROW_CIRCLE_RIGHT); btnRight.addStyleName(ValoTheme.BUTTON_LINK); btnLeft.setIcon(FontAwesome.ARROW_CIRCLE_LEFT); btnLeft.addStyleName(ValoTheme.BUTTON_LINK); widthButtonBar.addComponent(btnRight); widthButtonBar.addComponent(btnLeft); widthButtonBar.addStyleName("width-button-bar"); widthButtonBar.setWidthUndefined();/*from w w w .ja va2 s. c o m*/ addComponent(widthButtonBar); // height button bar btnUp.setIcon(FontAwesome.ARROW_CIRCLE_UP); btnUp.addStyleName(ValoTheme.BUTTON_LINK); btnDown.setIcon(FontAwesome.ARROW_CIRCLE_DOWN); btnDown.addStyleName(ValoTheme.BUTTON_LINK); heightButtonBar.addComponent(btnUp); heightButtonBar.addComponent(btnDown); heightButtonBar.addStyleName("height-button-bar"); addComponent(heightButtonBar); }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.SampleView.java
License:Open Source License
/** * initializes the description layout/*from w ww . ja v a2s .co m*/ * * @return */ VerticalLayout initDescription() { VerticalLayout sampleDescription = new VerticalLayout(); VerticalLayout sampleDescriptionContent = new VerticalLayout(); // sampleDescriptionContent.setMargin(true); sampleDescription.setCaption(""); // sampleDescriptionContent.setIcon(FontAwesome.FILE_TEXT_O); sampleTypeLabel = new Label(""); sampleParentLabel = new Label("", ContentMode.HTML); parentButton = new Button(""); parentButton.setStyleName(ValoTheme.BUTTON_LINK); parentButton.setIcon(FontAwesome.ARROW_CIRCLE_RIGHT); // Navigate to parent sample given by caption of button parentButton.addClickListener(new ClickListener() { @Override public void buttonClick(ClickEvent event) { State state = (State) UI.getCurrent().getSession().getAttribute("state"); ArrayList<String> message = new ArrayList<String>(); message.add("clicked"); message.add(currentBean.getParents().get(0).getIdentifier()); message.add("sample"); state.notifyObservers(message); } }); numberOfDatasetsLabel = new Label(""); lastChangedDatasetLabel = new Label(""); propertiesLabel = new Label("", ContentMode.HTML); propertiesLabel.setCaption("Properties"); experimentalFactorLabel = new Label("", ContentMode.HTML); sampleDescriptionContent.addComponent(sampleTypeLabel); sampleDescriptionContent.addComponent(sampleParentLabel); sampleDescriptionContent.addComponent(parentButton); // sampleDescriptionContent.addComponent(numberOfDatasetsLabel); // sampleDescriptionContent.addComponent(lastChangedDatasetLabel); sampleDescriptionContent.addComponent(propertiesLabel); sampleDescriptionContent.addComponent(experimentalFactorLabel); sampleDescriptionContent.setSpacing(true); sampleDescriptionContent.setMargin(new MarginInfo(true, false, true, true)); sampleDescription.addComponent(sampleDescriptionContent); sampleDescription.setMargin(new MarginInfo(true, false, true, true)); return sampleDescription; }