public void setCancelButtonCaption(String cancelButtonCaption) { cancelButton.setText(cancelButtonCaption); }
@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); }