List of usage examples for com.vaadin.server FontAwesome CARET_SQUARE_O_LEFT
FontAwesome CARET_SQUARE_O_LEFT
To view the source code for com.vaadin.server FontAwesome CARET_SQUARE_O_LEFT.
Click Source Link
From source file:com.mycollab.module.project.view.ProjectVerticalTabsheet.java
License:Open Source License
@Override public void setNavigatorVisibility(boolean visibility) { if (!visibility) { navigatorWrapper.setWidth("70px"); navigatorContainer.setWidth("70px"); this.hideTabsCaption(); toggleBtn.setIcon(FontAwesome.CARET_SQUARE_O_RIGHT); toggleBtn.setDescription(UserUIContext.getMessage(ProjectI18nEnum.ACTION_EXPAND_MENU)); toggleBtn.setCaption(""); } else {/*from www.ja v a 2s . c o m*/ navigatorWrapper.setWidth("200px"); navigatorContainer.setWidth("200px"); this.showTabsCaption(); toggleBtn.setIcon(FontAwesome.CARET_SQUARE_O_LEFT); toggleBtn.setDescription(""); toggleBtn.setCaption(UserUIContext.getMessage(ProjectI18nEnum.ACTION_COLLAPSE_MENU)); } CurrentProjectVariables.setProjectToggleMenu(visibility); }
From source file:com.mycollab.module.project.view.ProjectVerticalTabsheet.java
License:Open Source License
public void addToggleNavigatorControl() { Button btn = this.addButtonOnNavigatorContainer("button", UserUIContext.getMessage(ProjectI18nEnum.ACTION_COLLAPSE_MENU), FontAwesome.CARET_SQUARE_O_LEFT); if (btn != null) { toggleBtn = btn;/*from www. j a v a 2 s. co m*/ toggleBtn.addClickListener(clickEvent -> { boolean visibility = CurrentProjectVariables.getProjectToggleMenu(); setNavigatorVisibility(!visibility); }); } boolean visibility = CurrentProjectVariables.getProjectToggleMenu(); setNavigatorVisibility(visibility); }