public CubaTwinColSelectWidget() { addItemsLeftToRightButton.setText(">"); addItemsLeftToRightButton.addStyleName("add"); removeItemsRightToLeftButton.setText("<"); removeItemsRightToLeftButton.addStyleName("remove"); }
private void applystyle(VButton button) { button.setStyleName(VButton.CLASSNAME); button.addStyleName(getStyle("borderless")); button.addStyleName(getStyle("small")); button.addStyleName(getStyle("on-focus-no-border")); button.addStyleName(getStyle("link")); }
private void applystyle(VButton button) { button.setStyleName(VButton.CLASSNAME); button.addStyleName(getStyle("borderless")); button.addStyleName(getStyle("small")); button.addStyleName(getStyle("on-focus-no-border")); button.addStyleName(getStyle("link")); }
@Override public void render(RendererCellReference cell, RolloutRendererData text, VButton button) { final String creating = "CREATING"; button.setText(text.getName()); applystyle(button); // this is to allow the button to disappear, if the text is null button.setVisible(text.getName() != null); button.getElement().setId(new StringBuilder("link").append(".").append(text.getName()).toString()); /* * checking Rollout Status for applying button style. If Rollout status * is not "CREATING", then the Rollout button is applying hyperlink * style */ final boolean isStatusCreate = text.getStatus() != null && creating.equalsIgnoreCase(text.getStatus()); if (isStatusCreate) { button.addStyleName(getStyle("boldhide")); button.setEnabled(false); } else { button.setEnabled(true); } }
@Override public void render(RendererCellReference cell, RolloutRendererData text, VButton button) { final String creating = "CREATING"; button.setText(text.getName()); applystyle(button); // this is to allow the button to disappear, if the text is null button.setVisible(text.getName() != null); button.getElement().setId(new StringBuilder("link").append(".").append(text.getName()).toString()); /* * checking Rollout Status for applying button style. If Rollout status * is not "CREATING", then the Rollout button is applying hyperlink * style */ final boolean isStatusCreate = text.getStatus() != null && creating.equalsIgnoreCase(text.getStatus()); if (isStatusCreate) { button.addStyleName(getStyle("boldhide")); button.setEnabled(false); } else { button.setEnabled(true); } }
protected void enableAddAllBtn() { HTML br1 = new HTML("<span/>"); br1.setStyleName(CLASSNAME + "-deco"); buttons.add(br1); buttons.insert(br1, buttons.getWidgetIndex(addItemsLeftToRightButton) + 1); addAll = new VButton(); addAll.setText(">>"); addAll.addStyleName("addAll"); addAllHandlerRegistration = addAll.addClickHandler(this); buttons.insert(addAll, buttons.getWidgetIndex(br1) + 1); HTML br2 = new HTML("<span/>"); br2.setStyleName(CLASSNAME + "-deco"); buttons.add(br2); removeAll = new VButton(); removeAll.setText("<<"); removeAll.addStyleName("removeAll"); removeAllHandlerRegistration = removeAll.addClickHandler(this); buttons.add(removeAll); }
button.addStyleName(SELECTED_ITEM_STYLE); button.setFocus(true); break;
cancelButton.addStyleName("upload-cancel-button"); cancelButton.addClickHandler(new ClickHandler() { @Override