List of usage examples for com.vaadin.server FontAwesome MINUS_SQUARE_O
FontAwesome MINUS_SQUARE_O
To view the source code for com.vaadin.server FontAwesome MINUS_SQUARE_O.
Click Source Link
From source file:annis.gui.admin.ImportPanel.java
License:Apache License
private void setLogVisible(boolean visible) { txtMessages.setVisible(visible);//from w w w.java 2s .c o m if (visible) { btDetailedLog.setCaption("Hide log"); btDetailedLog.setIcon(FontAwesome.MINUS_SQUARE_O, "minus sign"); layout.setExpandRatio(btDetailedLog, 0.0f); } else { btDetailedLog.setCaption("Show log"); btDetailedLog.setIcon(FontAwesome.PLUS_SQUARE_O, "plus sign"); layout.setExpandRatio(btDetailedLog, 1.0f); } }
From source file:com.hybridbpm.ui.component.development.FieldForm.java
License:Apache License
@Override public void buttonClick(Button.ClickEvent event) { if (event.getButton().equals(btnShowMore)) { if (secondLayout.isVisible()) { btnShowMore.setIcon(FontAwesome.PLUS_SQUARE_O); btnShowMore.setDescription("Show details"); secondLayout.setVisible(false); } else {/* www . j ava2 s . com*/ btnShowMore.setIcon(FontAwesome.MINUS_SQUARE_O); btnShowMore.setDescription("Hide details"); secondLayout.setVisible(true); } } else if (event.getButton().equals(btnRemove)) { ((VerticalLayout) getParent()).removeComponent(this); } else if (event.getButton().equals(btnUp)) { int index = ((VerticalLayout) getParent()).getComponentIndex(this); if (index != 0) { Component upComponent = ((VerticalLayout) getParent()).getComponent(index - 1); ((VerticalLayout) getParent()).replaceComponent(upComponent, this); } } if (event.getButton().equals(btnDown)) { int index = ((VerticalLayout) getParent()).getComponentIndex(this); if (((VerticalLayout) getParent()).getComponentCount() > 2 && index < ((VerticalLayout) getParent()).getComponentCount() - 1) { Component downComponent = ((VerticalLayout) getParent()).getComponent(index + 1); if (downComponent instanceof FieldForm) { ((VerticalLayout) getParent()).replaceComponent(downComponent, this); } } } }
From source file:org.opencms.ui.dialogs.permissions.CmsPermissionView.java
License:Open Source License
/** * Toggles the details display.<p> *//*from ww w . j av a 2 s . c o m*/ void toggleDetails() { if (m_permissions.isVisible()) { m_permissions.setVisible(false); m_details.setIcon(FontAwesome.PLUS_SQUARE_O); } else { m_permissions.setVisible(true); m_details.setIcon(FontAwesome.MINUS_SQUARE_O); } m_changeHandler.onViewChange(); }