@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); } }