public class EntitySequenceGroupRenderer implements RowRenderer {
@Override
public void render(Row row, Object data) {
EntitySequence entitySequence = (EntitySequence) data;
final EntityNameEnum entityName = entitySequence.getEntityName();
row.setValue(entityName);
row.appendChild(new Label(_("{0} sequences",
entityName.getDescription())));
row.setValue(entitySequence);
appendActiveRadiobox(row, entitySequence);
appendPrefixTextbox(row, entitySequence);
appendNumberOfDigitsInbox(row, entitySequence);
appendLastValueInbox(row, entitySequence);
appendOperations(row, entitySequence);
if (entitySequence.isAlreadyInUse()) {
row.setTooltiptext(_("Code sequence is already in use and cannot be updated"));
}
if ((row.getPreviousSibling() != null)
&& !((EntitySequence) ((Row) row.getPreviousSibling())