protected void updateInputTitle(ArrayList<String> grayOutReasons, Element input) { StringBuilder title = new StringBuilder(constants.empty()); for (String reason : grayOutReasons) { title.append(reason).append(constants.space()); } ElementTooltipUtils.setTooltipOnElement( input, SafeHtmlUtils.fromString(title.toString()), Placement.LEFT); }
protected void grayOutItem( ArrayList<String> grayOutReasons, LunModel model, EntityModelCellTable<ListModel<LunModel>> table) { for (int row = 0; row < table.getRowCount(); row++) { TableRowElement tableRowElement = table.getRowElement(row); if (table.getVisibleItem(row).equals(model)) { tableRowElement.setPropertyBoolean("disabled", true); // $NON-NLS-1$ updateInputTitle(grayOutReasons, tableRowElement); } else { ElementTooltipUtils.destroyTooltip(tableRowElement); } } }