favouritesBtn.setIcon(GsfLayout.iconBookmark); favouritesBtn.setShowDisabledIcon(false); favouritesBtn.setWidth(favouritesBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); favouritesBtn.addClickHandler(new ClickHandler() { searchBtn.setWidth(searchBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); searchBtn.setIcon(GsfLayout.iconFind); searchBtn.setShowDisabledIcon(false); resetBtn.setWidth(resetBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); resetBtn.setIcon(WidgetLayout.iconReset); resetBtn.setShowDisabledIcon(false); saveBtn.setWidth(saveBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); saveBtn.setIcon(WidgetLayout.iconSave); saveBtn.setShowDisabledIcon(false); saveBtn.setVisible(false); IButton cancelBtn = new IButton(MESSAGES.searchWidgetCancel()); cancelBtn.setWidth(cancelBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); cancelBtn.setIcon(WidgetLayout.iconCancel); cancelBtn.setShowDisabledIcon(false); .setWidth(filterLayerBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); filterLayerBtn.setIcon(GsfLayout.iconFilter); filterLayerBtn.setShowDisabledIcon(false); setWidth(removeFilterBtn.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); removeFilterBtn.setIcon(GsfLayout.iconRemoveFilter);
userButtonNew.setWidth(userButtonNew.getTitle().length() * GdmLayout.buttonFontWidth + GdmLayout.buttonOffset); userButtonNew.setIcon(WidgetLayout.iconAdd); userButtonNew.addClickHandler(new ClickHandler() { groupButtonNew.setWidth(userButtonNew.getTitle().length() * GdmLayout.buttonFontWidth + GdmLayout.buttonOffset); groupButtonNew.setIcon(WidgetLayout.iconAdd); groupButtonNew.addClickHandler(new ClickHandler() {
btnPoint.setWidth(btnPoint.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); btnPoint.setActionType(SelectionType.RADIO); btnPoint.setRadioGroup("drawType"); btnLine.setWidth(btnLine.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); btnLine.setActionType(SelectionType.RADIO); btnLine.setRadioGroup("drawType"); btnPolygon.setWidth(btnPolygon.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); btnPolygon.setActionType(SelectionType.RADIO); btnPolygon.setRadioGroup("drawType"); btnUndo.setWidth(btnUndo.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); btnUndo.setDisabled(true); btnUndo.setShowDisabledIcon(false); btnRedo.setWidth(btnRedo.getTitle().length() * GsfLayout.buttonFontWidth + GsfLayout.buttonOffset); btnRedo.setDisabled(true); btnRedo.setShowDisabledIcon(false);
buttonNew.setWidth(buttonNew.getTitle().length() * GdmLayout.buttonFontWidth + GdmLayout.buttonOffset); buttonNew.setIcon(WidgetLayout.iconAdd); buttonNew.addClickHandler(new ClickHandler() {
buttonNew.setWidth(buttonNew.getTitle().length() * GdmLayout.buttonFontWidth + GdmLayout.buttonOffset); buttonNew.setIcon(WidgetLayout.iconAdd); buttonNew.addClickHandler(new ClickHandler() {