for (int i = 0; i < result.size(); i++) {
if(i % 2 == 0){
layout.getRowFormatter().addStyleName(i+1, "alterna");
}
final Encomenda enc = result.get(i);
layout.setText(i+1, 0, enc.getLocalOrigem());
layout.setText(i+1, 1, enc.getLocalDestino());
layout.setText(i+1, 2, enc.getTipoTransporte().toString());
layout.setText(i+1, 3, enc.getPeso().toString() + " kg");
layout.setText(i+1, 4, enc.getPrazo().toString() + " dias");
layout.setText(i+1, 5, "R$" + enc.getPreco().toString());
if(remover){
layout.setWidget(i+1, 6, new Button("Remover", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
servico.delete(enc.getId(), new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
Alerta.exibeErro("Erro inesperado ao remover a encomenda");
}