Changed plus to pin icon in WebFilter #PL-3816

This commit is contained in:
Aleksey Kozyaikin 2014-04-21 07:36:52 +00:00
parent 587fc369c7
commit f1c5d514e1
4 changed files with 6 additions and 2 deletions

View File

@ -57,6 +57,7 @@ import com.vaadin.data.Property;
import com.vaadin.data.Validator;
import com.vaadin.data.validator.IntegerRangeValidator;
import com.vaadin.server.Sizeable;
import com.vaadin.server.ThemeResource;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.ui.*;
import com.vaadin.ui.Button;
@ -194,7 +195,8 @@ public class WebFilter extends WebAbstractComponent<CubaVerticalActionsLayout> i
if (globalConfig.getAllowQueryFromSelected()) {
pinAppliedFilterBtn = WebComponentsHelper.createButton();
pinAppliedFilterBtn.setCaption(messages.getMessage(MESSAGES_PACK, "pinAppliedFilterBtn.caption"));
pinAppliedFilterBtn.setCaption("");
pinAppliedFilterBtn.setIcon(new ThemeResource("icons/pin.png"));
pinAppliedFilterBtn.setDescription(messages.getMessage(MESSAGES_PACK, "pinAppliedFilterBtn.description"));
pinAppliedFilterBtn.setEnabled(false);
pinAppliedFilterBtn.addClickListener(new Button.ClickListener() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

View File

@ -55,6 +55,7 @@ import com.vaadin.data.Validator;
import com.vaadin.data.validator.IntegerValidator;
import com.vaadin.event.ShortcutAction;
import com.vaadin.terminal.Sizeable;
import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.*;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
@ -213,7 +214,8 @@ public class WebFilter extends WebAbstractComponent<VerticalActionsLayout> imple
if (globalConfig.getAllowQueryFromSelected()) {
pinAppliedFilterBtn = WebComponentsHelper.createButton();
pinAppliedFilterBtn.setCaption(messages.getMessage(MESSAGES_PACK, "pinAppliedFilterBtn.caption"));
pinAppliedFilterBtn.setCaption("");
pinAppliedFilterBtn.setIcon(new ThemeResource("icons/pin.png"));
pinAppliedFilterBtn.setDescription(messages.getMessage(MESSAGES_PACK, "pinAppliedFilterBtn.description"));
pinAppliedFilterBtn.setEnabled(false);
pinAppliedFilterBtn.addListener(new Button.ClickListener() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B