Example usage for com.google.gwt.cell.client ImageResourceCell ImageResourceCell

List of usage examples for com.google.gwt.cell.client ImageResourceCell ImageResourceCell

Introduction

In this page you can find the example usage for com.google.gwt.cell.client ImageResourceCell ImageResourceCell.

Prototype

public ImageResourceCell() 

Source Link

Document

Construct a new ImageResourceCell.

Usage

From source file:br.org.olimpiabarbacena.client.Pesquisar.java

License:Apache License

public void listarAcervo() {
    // remove todas as colunas
    for (int i = cellTable.getColumnCount() - 1; i >= 0; i--) {
        cellTable.removeColumn(i);/*from   www . j a v  a  2 s .co m*/
    }

    // Adiciona coluna imagem para exibir o tipo.
    Column<Object, ImageResource> colunaTipo = new Column<Object, ImageResource>(new ImageResourceCell()) {

        @Override
        public ImageResource getValue(Object object) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Midia")) {
                if (((Midia) object).getTipo() == Tipo.LIVRO) {
                    return Icons.INSTANCE.livro();
                } else if (((Midia) object).getTipo() == Tipo.CD) {
                    return Icons.INSTANCE.cd();
                } else if (((Midia) object).getTipo() == Tipo.DVD) {
                    return Icons.INSTANCE.dvd();
                } else if (((Midia) object).getTipo() == Tipo.REVISTA) {
                    return Icons.INSTANCE.revista();
                } else if (((Midia) object).getTipo() == Tipo.JORNAL) {
                    return Icons.INSTANCE.jornal();
                } else {
                    return Icons.INSTANCE.desconhecido();
                }
            }

            return Icons.INSTANCE.desconhecido();
        }
    };
    cellTable.addColumn(colunaTipo, "Tipo");
    cellTable.setColumnWidth(colunaTipo, "16px");

    // Adiciona coluna texto para exibir o ttulo.
    TextColumn<Object> colunaNome = new TextColumn<Object>() {

        @Override
        public String getValue(Object object) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Midia")) {
                return ((Midia) object).getTitulo();
            }

            return new String();
        }
    };
    colunaNome.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    cellTable.addColumn(colunaNome, "Ttulo");

    // Adiciona coluna com o boto editar.
    ButtonCell buttonCellEditar = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.editar();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Editar\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaEditar = new Column<Object, String>(buttonCellEditar) {

        @Override
        public String getValue(Object object) {
            return "Editar";
        }
    };
    colunaEditar.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Midia")) {
                if (((Midia) object).getTipo() == Tipo.LIVRO) {
                    principal.getControle().setDialogo(new DialogBox(false));

                    principal.getControle().getDialogo().setWidth("464px");
                    principal.getControle().getDialogo().setHeight("417px");

                    principal.getControle().setLivro(new br.org.olimpiabarbacena.client.formulario.midia.Livro(
                            principal, principal.getControle().getDialogo()));

                    principal.getControle().getLivro().get(((Midia) object).getId());

                    principal.getControle().getDialogo().setWidget(principal.getControle().getLivro());
                    principal.getControle().getDialogo().center();
                } else if (((Midia) object).getTipo() == Tipo.CD) {
                    principal.getControle().setDialogo(new DialogBox(false));

                    principal.getControle().getDialogo().setWidth("462px");
                    principal.getControle().getDialogo().setHeight("261px");

                    principal.getControle().setCD(new br.org.olimpiabarbacena.client.formulario.midia.CD(
                            principal, principal.getControle().getDialogo(), Tipo.CD));

                    principal.getControle().getCD().get(((Midia) object).getId());

                    principal.getControle().getDialogo().setWidget(principal.getControle().getCD());
                    principal.getControle().getDialogo().center();
                } else if (((Midia) object).getTipo() == Tipo.DVD) {
                    principal.getControle().setDialogo(new DialogBox(false));

                    principal.getControle().getDialogo().setWidth("462px");
                    principal.getControle().getDialogo().setHeight("261px");

                    principal.getControle().setCD(new br.org.olimpiabarbacena.client.formulario.midia.CD(
                            principal, principal.getControle().getDialogo(), Tipo.DVD));

                    principal.getControle().getCD().get(((Midia) object).getId());

                    principal.getControle().getDialogo().setWidget(principal.getControle().getCD());
                    principal.getControle().getDialogo().center();
                } else if (((Midia) object).getTipo() == Tipo.JORNAL) {
                    principal.getControle().setDialogo(new DialogBox(false));

                    principal.getControle().getDialogo().setWidth("460px");
                    principal.getControle().getDialogo().setHeight("359px");

                    principal.getControle()
                            .setJornal(new br.org.olimpiabarbacena.client.formulario.midia.Jornal(principal,
                                    principal.getControle().getDialogo(), Tipo.JORNAL));

                    principal.getControle().getJornal().get(((Midia) object).getId());

                    principal.getControle().getDialogo().setWidget(principal.getControle().getJornal());
                    principal.getControle().getDialogo().center();
                } else if (((Midia) object).getTipo() == Tipo.REVISTA) {
                    principal.getControle().setDialogo(new DialogBox(false));

                    principal.getControle().getDialogo().setWidth("460px");
                    principal.getControle().getDialogo().setHeight("359px");

                    principal.getControle()
                            .setJornal(new br.org.olimpiabarbacena.client.formulario.midia.Jornal(principal,
                                    principal.getControle().getDialogo(), Tipo.REVISTA));

                    principal.getControle().getJornal().get(((Midia) object).getId());

                    principal.getControle().getDialogo().setWidget(principal.getControle().getJornal());
                    principal.getControle().getDialogo().center();
                }
            }
        }
    });
    colunaEditar.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaEditar, new String());
    cellTable.setColumnWidth(colunaEditar, "16px");

    // Adiciona coluna com o boto remover.
    ButtonCell buttonCellRemover = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.remover();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Remover\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaRemover = new Column<Object, String>(buttonCellRemover) {
        @Override
        public String getValue(Object object) {
            return "Remover";
        }
    };
    colunaRemover.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Midia")) {
                if (Window.confirm(
                        "Deseja remover \"" + ((Midia) object).getTitulo() + "\" e suas dependncias?")) {
                    midiaService.remover(((Midia) object).getId(), new AsyncCallback<Void>() {

                        @Override
                        public void onFailure(Throwable caught) {
                        };

                        @Override
                        public void onSuccess(Void result) {
                            limpar();
                            listarAcervo();
                        };
                    });
                }
            }
        }
    });
    colunaRemover.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaRemover, new String());
    cellTable.setColumnWidth(colunaRemover, "16px");

    dataProvider = new AsyncDataProvider<Object>() {

        @Override
        protected void onRangeChanged(HasData<Object> display) {
            final Range range = display.getVisibleRange();
            final int start = range.getStart();
            final int end = start + range.getLength();

            midiaService.listar(textboxPesquisar.getText(), new AsyncCallback<List<Midia>>() {
                @Override
                public void onFailure(Throwable caught) {
                    Window.alert(caught.getMessage());
                }

                @Override
                public void onSuccess(List<Midia> result) {
                    // convert old list type to new list type
                    List<Object> list = new ArrayList<Object>(result.size());
                    for (Midia midia : result) {
                        list.add(midia);
                    }
                    updateRowData(start, list.subList(start, (result.size() < end) ? result.size() : end));
                    updateRowCount(result.size(), true);
                }
            });
        }
    };
    dataProvider.addDataDisplay(cellTable);
}

From source file:br.org.olimpiabarbacena.client.Pesquisar.java

License:Apache License

public void listarEmprestimo() {
    // remove todas as colunas
    for (int i = cellTable.getColumnCount() - 1; i >= 0; i--) {
        cellTable.removeColumn(i);/*w ww .  j  ava 2s  . c  o m*/
    }

    // Adiciona coluna imagem para exibir a situao.
    Column<Object, ImageResource> colunaSituacao = new Column<Object, ImageResource>(new ImageResourceCell()) {

        @Override
        public ImageResource getValue(Object object) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {
                if (((Emprestimo) object).getEntrega() == null) {
                    return Icons.INSTANCE.emprestado();
                } else {
                    return Icons.INSTANCE.baixado();
                }
            } else {
                return Icons.INSTANCE.desconhecido();
            }
        }
    };
    cellTable.addColumn(colunaSituacao, new String());
    cellTable.setColumnWidth(colunaSituacao, "16px");

    // Adiciona coluna texto para exibir o ttulo.
    TextColumn<Object> colunaNome = new TextColumn<Object>() {

        @Override
        public String getValue(Object object) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {
                return ((Emprestimo) object).getMidiaObject().getTitulo();
            }

            return new String();
        }
    };
    colunaNome.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    cellTable.addColumn(colunaNome, "Ttulo");

    // Adiciona coluna com o boto reservar.
    ButtonCell buttonCellReservar = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.reservar();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Reservar\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaReservar = new Column<Object, String>(buttonCellReservar) {
        @Override
        public String getValue(Object object) {
            return "Reservar";
        }
    };
    colunaReservar.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {
                principal.getControle().setDialogo(new DialogBox(false));

                principal.getControle().getDialogo().setWidth("450px");
                principal.getControle().getDialogo().setHeight("91px");

                Reserva reserva = new Reserva(((Emprestimo) object), principal.getControle().getDialogo());

                principal.getControle().getDialogo().setWidget(reserva);
                principal.getControle().getDialogo().center();
            }
        }
    });
    colunaReservar.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaReservar, new String());
    cellTable.setColumnWidth(colunaReservar, "16px");

    // Adiciona coluna com o boto reservar.
    ButtonCell buttonCellBaixar = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.baixar();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Baixar\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaBaixar = new Column<Object, String>(buttonCellBaixar) {
        @Override
        public String getValue(Object object) {
            return "Baixar";
        }
    };
    colunaBaixar.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {
                if (((Emprestimo) object).getEntrega() == null) {
                    if (Window.confirm("Deseja baixar \"" + ((Emprestimo) object).getMidiaObject().getTitulo()
                            + "\" emprestado para \"" + ((Emprestimo) object).getMembroObject().getNome()
                            + "\"?")) {
                        emprestimoService.baixar(((Emprestimo) object).getId(), new AsyncCallback<Void>() {

                            @Override
                            public void onFailure(Throwable caught) {
                            };

                            @Override
                            public void onSuccess(Void result) {
                                limpar();
                                listarEmprestimo();
                            };
                        });
                    }
                } else {
                    Window.alert("Esta mdia j foi devolvida.");
                }

            }
        }
    });
    colunaBaixar.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaBaixar, new String());
    cellTable.setColumnWidth(colunaBaixar, "16px");

    // Adiciona coluna com o boto visualizar.
    ButtonCell buttonCellVisualizar = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.visualizar();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Visualizar\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaVisualizar = new Column<Object, String>(buttonCellVisualizar) {

        @Override
        public String getValue(Object object) {
            return "Visualizar";
        }
    };
    colunaVisualizar.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {

                principal.getControle().setDialogo(new DialogBox(false));

                principal.getControle().getDialogo().setWidth("451px");
                principal.getControle().getDialogo().setHeight("124px");

                principal.getControle().getDialogo().setWidget(
                        new br.org.olimpiabarbacena.client.formulario.midia.Emprestimo(((Emprestimo) object),
                                principal.getControle().getDialogo()));
                principal.getControle().getDialogo().center();
            }
        }
    });
    colunaVisualizar.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaVisualizar, new String());
    cellTable.setColumnWidth(colunaVisualizar, "16px");

    // Adiciona coluna com o boto remover.
    ButtonCell buttonCellRemover = new ButtonCell() {

        @Override
        public void render(Context context, SafeHtml data, SafeHtmlBuilder sb) {
            if (data != null) {
                ImageResource icon = Icons.INSTANCE.remover();
                String iconDisplay = AbstractImagePrototype.create(icon).getHTML();
                iconDisplay = iconDisplay.replaceFirst(">", " title=\"Remover\">");
                SafeHtml html = SafeHtmlUtils.fromTrustedString(iconDisplay);
                sb.append(html);
            }
        }
    };
    Column<Object, String> colunaRemover = new Column<Object, String>(buttonCellRemover) {
        @Override
        public String getValue(Object object) {
            return "Remover";
        }
    };
    colunaRemover.setFieldUpdater(new FieldUpdater<Object, String>() {
        @Override
        public void update(int index, Object object, String value) {
            if (object.getClass().getName().equals("br.org.olimpiabarbacena.shared.dados.Emprestimo")) {
                if (Window.confirm("Deseja remover \"" + ((Emprestimo) object).getMidiaObject().getTitulo()
                        + "\" emprestado para \"" + ((Emprestimo) object).getMembroObject().getNome()
                        + "\"?")) {
                    emprestimoService.remover(((Emprestimo) object).getId(), new AsyncCallback<Void>() {

                        @Override
                        public void onFailure(Throwable caught) {
                        };

                        @Override
                        public void onSuccess(Void result) {
                            limpar();
                            listarEmprestimo();
                        };
                    });
                }
            }
        }
    });
    colunaRemover.setCellStyleNames("gwt-cell-pointer");
    cellTable.addColumn(colunaRemover, new String());
    cellTable.setColumnWidth(colunaRemover, "16px");

    dataProvider = new AsyncDataProvider<Object>() {

        @Override
        protected void onRangeChanged(HasData<Object> display) {
            final Range range = display.getVisibleRange();
            final int start = range.getStart();
            final int end = start + range.getLength();

            emprestimoService.listar(textboxPesquisar.getText(), new AsyncCallback<List<Emprestimo>>() {
                @Override
                public void onFailure(Throwable caught) {
                    Window.alert(caught.getMessage());
                }

                @Override
                public void onSuccess(List<Emprestimo> result) {
                    // convert old list type to new list type
                    List<Object> list = new ArrayList<Object>(result.size());
                    for (Emprestimo emprestimo : result) {
                        list.add(emprestimo);
                    }
                    updateRowData(start, list.subList(start, (result.size() < end) ? result.size() : end));
                    updateRowCount(result.size(), true);
                }
            });
        }
    };
    dataProvider.addDataDisplay(cellTable);
}

From source file:com.codenvy.ide.ext.github.client.importer.page.GithubImporterPageViewImpl.java

License:Open Source License

/**
 * Creates table what contains list of available repositories.
 *
 * @param ideResources//from   w w  w .  ja  v  a 2  s.  c om
 */
private void createRepositoriesTable(@Nonnull Resources ideResources) {
    repositories = new CellTable<ProjectData>(15, ideResources);

    Column<ProjectData, ImageResource> iconColumn = new Column<ProjectData, ImageResource>(
            new ImageResourceCell()) {
        @Override
        public ImageResource getValue(ProjectData item) {
            return resources.project();
        }
    };

    Column<ProjectData, SafeHtml> repositoryColumn = new Column<ProjectData, SafeHtml>(new SafeHtmlCell()) {
        @Override
        public SafeHtml getValue(final ProjectData item) {
            return SafeHtmlUtils.fromString(item.getName());
        }
    };

    Column<ProjectData, SafeHtml> descriptionColumn = new Column<ProjectData, SafeHtml>(new SafeHtmlCell()) {
        @Override
        public SafeHtml getValue(final ProjectData item) {
            return new SafeHtmlBuilder().appendHtmlConstant("<span>").appendEscaped(item.getDescription())
                    .appendHtmlConstant("</span>").toSafeHtml();
        }
    };

    repositories.addColumn(iconColumn, SafeHtmlUtils.fromSafeConstant("<br/>"));
    repositories.setColumnWidth(iconColumn, 28, Style.Unit.PX);

    repositories.addColumn(repositoryColumn, locale.samplesListRepositoryColumn());
    repositories.addColumn(descriptionColumn, locale.samplesListDescriptionColumn());

    // don't show loading indicator
    repositories.setLoadingIndicator(null);

    final SingleSelectionModel<ProjectData> selectionModel = new SingleSelectionModel<ProjectData>();
    selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
        @Override
        public void onSelectionChange(SelectionChangeEvent event) {
            ProjectData selectedObject = selectionModel.getSelectedObject();
            delegate.onRepositorySelected(selectedObject);
        }
    });
    repositories.setSelectionModel(selectionModel);
}

From source file:com.codenvy.ide.ext.github.client.projectimporter.importerpage.GithubImporterPageViewImpl.java

License:Open Source License

/** Creates table what contains list of available repositories.
 * @param ideResources*//*from   w  ww.  j a v a  2 s  .c o  m*/
private void createRepositoriesTable(Resources ideResources) {
    repositories = new CellTable<ProjectData>(15, ideResources);

    Column<ProjectData, ImageResource> iconColumn = new Column<ProjectData, ImageResource>(
            new ImageResourceCell()) {
        @Override
        public ImageResource getValue(ProjectData item) {
            return resources.project();
        }
    };

    Column<ProjectData, SafeHtml> repositoryColumn = new Column<ProjectData, SafeHtml>(new SafeHtmlCell()) {
        @Override
        public SafeHtml getValue(final ProjectData item) {
            return new SafeHtml() {
                public String asString() {
                    return item.getName();
                }
            };
        }
    };

    Column<ProjectData, SafeHtml> descriptionColumn = new Column<ProjectData, SafeHtml>(new SafeHtmlCell()) {
        @Override
        public SafeHtml getValue(final ProjectData item) {
            return new SafeHtml() {
                public String asString() {
                    return "<span>" + item.getDescription() + "</span>";
                }
            };
        }
    };

    repositories.addColumn(iconColumn, SafeHtmlUtils.fromSafeConstant("<br/>"));
    repositories.setColumnWidth(iconColumn, 28, Style.Unit.PX);

    repositories.addColumn(repositoryColumn, locale.samplesListRepositoryColumn());
    repositories.addColumn(descriptionColumn, locale.samplesListDescriptionColumn());

    // don't show loading indicator
    repositories.setLoadingIndicator(null);

    final SingleSelectionModel<ProjectData> selectionModel = new SingleSelectionModel<ProjectData>();
    selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
        @Override
        public void onSelectionChange(SelectionChangeEvent event) {
            ProjectData selectedObject = selectionModel.getSelectedObject();
            delegate.onRepositorySelected(selectedObject);
        }
    });
    repositories.setSelectionModel(selectionModel);
}

From source file:com.ephesoft.gxt.core.client.ui.service.columnConfig.impl.FolderManagerColumnConfigService.java

License:Open Source License

public FolderManagerColumnConfigService() {
    columnConfigList = new ArrayList<ColumnConfig<FolderManagerDTO, ?>>();
    editorsMap = new HashMap<ColumnConfig, IsField>();
    ColumnConfig<FolderManagerDTO, Boolean> modelSelector = new ColumnConfig<FolderManagerDTO, Boolean>(
            FolderManagerProperties.property.selected());

    CheckBoxCell modelSelectionCell = new CheckBoxCell();
    modelSelector.setCell(modelSelectionCell);

    modelSelector.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_SELECT_COLUMN_HEADER));
    modelSelector.setWidth(30);/*  ww  w . java2 s.c o  m*/
    modelSelector.setFixed(true);
    modelSelector.setSortable(false);
    modelSelector.setHideable(false);

    ColumnConfig<FolderManagerDTO, String> fileName = new ColumnConfig<FolderManagerDTO, String>(
            FolderManagerProperties.property.fileName());
    fileName.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_NAME_COLUMN_HEADER));
    fileName.setHideable(false);

    ColumnConfig<FolderManagerDTO, Float> fileSize = new ColumnConfig<FolderManagerDTO, Float>(
            FolderManagerProperties.property.size());
    fileSize.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_SIZE_COLUMN_HEADER));

    ColumnConfig<FolderManagerDTO, FileType> fileType = new ColumnConfig<FolderManagerDTO, FileType>(
            FolderManagerProperties.property.kind());

    fileType.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_FILE_TYPE_COLUMN_HEADER));
    ColumnConfig<FolderManagerDTO, Date> modifiedAt = new ColumnConfig<FolderManagerDTO, Date>(
            FolderManagerProperties.property.modifiedAt());
    modifiedAt.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_MODIFIED_COLUMN_HEADER));
    modifiedAt.setCell(new DateCell(DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_MEDIUM)));

    @SuppressWarnings("unchecked")
    ColumnConfig<FolderManagerDTO, ImageResource> fileIcon = new ColumnConfig<FolderManagerDTO, ImageResource>(
            new ValueProvider() {

                @Override
                public ImageResource getValue(Object object) {
                    ImageResource image = null;
                    FolderManagerDTO dto = (FolderManagerDTO) object;
                    if (dto.getKind() == FileType.DIR) {
                        image = imageResources.icon_folder();
                    } else if (dto.getKind() == FileType.DOC) {
                        image = imageResources.icon_doc();
                    } else if (dto.getKind() == FileType.MM) {
                        image = imageResources.icon_mm();
                    } else if (dto.getKind() == FileType.IMG) {
                        image = imageResources.icon_img();
                    } else if (dto.getKind() == FileType.OTHER) {
                        image = imageResources.icon_other();
                    }
                    return image;
                }

                @Override
                public void setValue(Object object, Object value) {

                }

                @Override
                public String getPath() {
                    return null;
                }

            });
    fileIcon.setSortable(false);
    fileIcon.setHeader(LocaleDictionary.getConstantValue(CoreCommonConstants.FM_ICON_COLUMN_HEADER));
    ImageResourceCell imageCell = new ImageResourceCell() {

        @Override
        public void render(com.google.gwt.cell.client.Cell.Context context, ImageResource value,
                SafeHtmlBuilder sb) {
            super.render(context, value, sb);

        }
    };
    fileIcon.setCell(imageCell);
    columnConfigList.add(modelSelector);
    columnConfigList.add(fileIcon);
    columnConfigList.add(fileName);
    columnConfigList.add(modifiedAt);
    columnConfigList.add(fileType);
    columnConfigList.add(fileSize);
    editorsMap.put(fileName, new TextField());
}

From source file:com.google.gwt.sample.showcase.client.content.cell.CompositeContactCell.java

private static HasCell<ContactInfo, ImageResource> createContactIcon(final CwCellList.Images images) {
    return HasCells.forCellWithConstantValue(new ImageResourceCell(), images.contact());
}

From source file:n3phele.client.view.ProcessView.java

License:Open Source License

public ProcessView() {
    super(new MenuItem(N3phele.n3pheleResource.activityIcon(), "Activity", null));
    table = new FlexTable();
    table.setCellPadding(2);//from   w  ww  .  j  a v  a2s. c om

    this.add(table);
    table.setWidth("100%");

    Label lblNewLabel_4 = new Label("name");
    table.setWidget(0, 0, lblNewLabel_4);

    name = new Label("");
    table.setWidget(0, 1, name);

    iconStatus = new CellWidget<IconText>(new IconTextCell<IconText>(32, 32, 15));
    table.setWidget(0, 2, iconStatus);
    table.getColumnFormatter().setWidth(0, "60px");
    table.getColumnFormatter().setWidth(2, "170px");

    Label lblNewLabel = new Label("running");
    table.setWidget(1, 0, lblNewLabel);

    command = new Hyperlink("", "");
    table.setWidget(1, 1, command);
    table.getFlexCellFormatter().setColSpan(1, 1, 2);

    //      description = new Label("-description-");
    //      table.setWidget(1, 2, description);

    Label lblNewLabel_3 = new Label("started");
    table.setWidget(2, 0, lblNewLabel_3);

    startdate = new CellWidget<Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT)));

    table.setWidget(2, 1, startdate);
    //table.getFlexCellFormatter().setColSpan(2, 1, 2);

    Label lblNewLabel_6 = new Label("completed");
    table.setWidget(3, 0, lblNewLabel_6);

    completedate = new CellWidget<Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT)));
    table.setWidget(3, 1, completedate);
    //table.getFlexCellFormatter().setColSpan(3, 1, 2);

    duration = new Label(".duration");
    table.setWidget(3, 2, duration);

    if (resource == null)
        resource = GWT.create(NarrativeListCellTableResource.class);
    narrativeTable = new CellTable<Narrative>(15, resource);
    this.add(narrativeTable);
    narrativeTable.setWidth("100%", true);

    final Map<String, ImageResource> mapper = new HashMap<String, ImageResource>();
    mapper.put("info", N3phele.n3pheleResource.narrativeInfo());
    mapper.put("warning", N3phele.n3pheleResource.narrativeWarning());
    mapper.put("error", N3phele.n3pheleResource.narrativeError());
    state = new Column<Narrative, ImageResource>(new ImageResourceCell()) {
        @Override
        public ImageResource getValue(Narrative object) {
            return mapper.get(object.getState());
        }
    };
    state.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    state.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    narrativeTable.addColumn(state);
    narrativeTable.setColumnWidth(state, "8%");

    Column<Narrative, Date> date = new Column<Narrative, Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT))) {
        @Override
        public Date getValue(Narrative object) {
            return object.getStamp();
        }
    };
    narrativeTable.addColumn(date);
    narrativeTable.setColumnWidth(date, "15%");

    Column<Narrative, Hyperlink> id = new Column<Narrative, Hyperlink>(new HyperlinkCell()) {

        @Override
        public Hyperlink getValue(Narrative object) {
            if (object == null)
                return null;
            String name = object.getTag();
            String historyToken = presenter.getToken(object.getProcessUri());
            return new Hyperlink(name, historyToken);
        }

    };
    id.setFieldUpdater(new FieldUpdater<Narrative, Hyperlink>() {
        @Override
        public void update(int index, Narrative object, Hyperlink value) {
            ProcessView.this.narrativeTable.setFocus(false);
        }
    });
    id.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    id.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    narrativeTable.addColumn(id);
    narrativeTable.setColumnWidth(id, "20%");

    TextColumn<Narrative> msg = new TextColumn<Narrative>() {
        @Override
        public String getValue(Narrative object) {
            return object.getText();
        }
    };
    msg.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    msg.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    narrativeTable.addColumn(msg);
    narrativeTable.setColumnWidth(msg, "60%");
}

From source file:n3phele.client.view.ProgressView.java

License:Open Source License

public ProgressView() {
    super(new MenuItem(N3phele.n3pheleResource.activityIcon(), "Activity", null));
    table = new FlexTable();
    table.setCellPadding(2);/*from   w w  w .  j  av  a 2  s .  co  m*/

    this.add(table);
    //table.setSize("478px", "260px");

    Label lblNewLabel_4 = new Label("name");
    table.setWidget(0, 0, lblNewLabel_4);

    name = new Label("");
    table.setWidget(0, 1, name);

    iconStatus = new CellWidget<IconText>(new IconTextCell<IconText>(32, 32, 15));
    //      {
    //         @Override
    //         public IconText getValue(Progress progress) {
    //            String status = progress.getStatus();
    //            ImageResource icon = statusVizualization.get(status);
    //            if(icon != null) return new IconText(icon, progress.getName());
    //            return new IconText(getTemplate().statusBar(getPercentComplete(progress), barUrl ), progress.getName()); // make progress bar
    //         }
    //      };

    table.setWidget(0, 2, iconStatus);

    Label lblNewLabel = new Label("running");
    table.setWidget(1, 0, lblNewLabel);

    command = new Hyperlink("", "");
    table.setWidget(1, 1, command);

    description = new Label("-description-");
    table.setWidget(1, 2, description);

    Label lblNewLabel_3 = new Label("started");
    table.setWidget(2, 0, lblNewLabel_3);

    startdate = new CellWidget<Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT)));

    table.setWidget(2, 1, startdate);
    table.getFlexCellFormatter().setColSpan(2, 1, 2);

    Label lblNewLabel_6 = new Label("completed");
    table.setWidget(3, 0, lblNewLabel_6);

    completedate = new CellWidget<Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT)));
    table.setWidget(3, 1, completedate);
    table.getFlexCellFormatter().setColSpan(3, 1, 2);

    Label lblNewLabel_7 = new Label("estimated duration", true);
    table.setWidget(4, 0, lblNewLabel_7);

    duration = new Label(".duration");
    table.setWidget(4, 1, duration);
    table.getFlexCellFormatter().setColSpan(4, 1, 2);
    if (resource == null)
        resource = GWT.create(NarrativeListCellTableResource.class);
    narrativeTable = new CellTable<Narrative>(15, resource);
    this.add(narrativeTable);
    narrativeTable.setWidth("100%", true);

    final Map<String, ImageResource> mapper = new HashMap<String, ImageResource>();
    mapper.put("info", N3phele.n3pheleResource.narrativeInfo());
    mapper.put("warning", N3phele.n3pheleResource.narrativeWarning());
    mapper.put("error", N3phele.n3pheleResource.narrativeError());
    state = new Column<Narrative, ImageResource>(new ImageResourceCell()) {
        @Override
        public ImageResource getValue(Narrative object) {
            return mapper.get(object.getState());
        }
    };
    state.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    state.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    narrativeTable.addColumn(state);
    narrativeTable.setColumnWidth(state, "8%");

    Column<Narrative, Date> date = new Column<Narrative, Date>(
            new DateCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT))) {
        @Override
        public Date getValue(Narrative object) {
            return object.getStamp();
        }
    };
    narrativeTable.addColumn(date);
    narrativeTable.setColumnWidth(date, "15%");

    TextColumn<Narrative> id = new TextColumn<Narrative>() {
        @Override
        public String getValue(Narrative object) {
            return object.getId();
        }
    };
    id.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    id.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    narrativeTable.addColumn(id);
    narrativeTable.setColumnWidth(id, "20%");

    TextColumn<Narrative> msg = new TextColumn<Narrative>() {
        @Override
        public String getValue(Narrative object) {
            return object.getText();
        }
    };
    msg.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    msg.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    narrativeTable.addColumn(msg);
    narrativeTable.setColumnWidth(msg, "60%");
}

From source file:org.apache.hupa.client.ui.MessagesCellTable.java

License:Apache License

@Inject
public MessagesCellTable(final HupaImageBundle imageBundle, final HupaConstants constants,
        final PlaceController pc, final HupaRequestFactory rf) {
    super(PAGE_SIZE, Resources.INSTANCE);
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b0x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b0x10x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b0x10x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ef1b869b");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f556f9b9af30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f556f9b9af3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f556f9b9af30x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x21_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x210x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x20_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x200x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1d0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1d");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c0x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c0x10x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1c0x10x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1f_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1f0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1e_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1e0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1b0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1b0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1b_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1b0x00x00x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x180x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x18_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x180x00x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1a_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1a0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x190x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x19");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xa0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xa0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xa");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x90x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x90x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x9");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xc_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xc0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xc0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xb_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xb0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xb0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xd0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xd0x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xd0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xd");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xf0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xf_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xf0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xe0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50xe");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x11_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x110x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x110x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x10_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x100x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x130x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x13");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x120x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x12");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x150x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x150x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x15");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x14_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x140x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x17_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x170x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x160x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x16");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x7_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x8_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x00x0");
    InstrumentationLoggerProvider.get()//  w w  w  . j  a v a2 s  .  c  om
            .instrument("org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x30x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x4_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x40x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x40x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x5");
    InstrumentationLoggerProvider.get()
            .instrument("org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x3");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x10x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x6_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x5_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x50x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x50x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x50x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x50x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x40x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x40x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x40x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x4_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x40x10x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x20x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f21710fc6f0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d1350x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f290c5d135");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f20x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f20x20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55109e14f20x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e6859b18907_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e6859b189070x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e6859b189070x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e6859b189070x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e6859b189070x00x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x30x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x20x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x30x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55fde2e56a0x30x00x00x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55793d6d7c0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55793d6d7c0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55793d6d7c");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5522ee00970x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5522ee00970x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5522ee0097");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f558e584a87_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f558e584a870x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f558e584a870x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f558e584a870x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e680x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e680x10x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e68_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e680x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e680x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5550524e680x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x30x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x30x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x20x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x30x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f419_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f553e18f4190x30x00x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f557d6008c30x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f557d6008c30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f557d6008c3");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60dee2987922_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60dee29879220x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60dee29879220x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60dee29879220x10x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60de0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60de_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5587df60de0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b9509be80x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b9509be8_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b9509be80x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b9509be80x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b178ba090x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b178ba09_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b178ba090x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b178ba090x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55b178ba090x10x00x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba0x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55a44439ba0x00x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f770x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f77_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f770x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f770x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f770x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55db0b8f770x00x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de2f63b00x00x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a0x00x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a0x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a0x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55594cfb9a0x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55978c9f3f_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55978c9f3f0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55978c9f3f0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55978c9f3f0x2");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d86e873f0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d86e873f0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d86e873f0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d86e873f");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f550x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f550x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f550x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f550x10x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f551632733a_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f551632733a0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f551632733a0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f551632733a0x1");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d1eb2f3e0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d1eb2f3e0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d1eb2f3e0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55d1eb2f3e");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5599b14ede0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5599b14ede_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f5599b14ede0x0");
    this.pc = pc;
    this.rf = rf;
    this.imageBundle = imageBundle;

    CheckboxCell headerCheckbox = new CheckboxCell();
    ImageResourceCell headerAttached = new ImageResourceCell();
    Header<Boolean> header = new Header<Boolean>(headerCheckbox) {
        @Override
        public Boolean getValue() {
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x12ee20406");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x12ee204060x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x12ee204060x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x12ee204060x2");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x60x10x00x12ee204060x20x0");
            return false;
        }
    };
    Header<ImageResource> attachedPin = new Header<ImageResource>(headerAttached) {
        @Override
        public ImageResource getValue() {
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee20406");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee204060x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee204060x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee204060x0");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee204060x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x70x10x00x12ee204060x20x00x0");
            return imageBundle.attachmentIcon();
        }
    };
    header.setUpdater(new ValueUpdater<Boolean>() {
        @Override
        public void update(Boolean value) {
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x20x0");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x00x1");
            List<Message> displayedItems = MessagesCellTable.this.getVisibleItems();
            for (Message msg : displayedItems) {
                InstrumentationLoggerProvider.get().instrument(
                        "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x1");
                InstrumentationLoggerProvider.get().instrument(
                        "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x10x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55ff18ffcf0x50x80x00x00x1da616ffb0x30x10x10x00x00x0");
                checkboxCol.getFieldUpdater().update(0, msg, value);
            }
        }
    });

    fromCol = getFromColumn();
    subjectCol = getSubjectColumn();
    attachedCol = getAttachmentColumn();
    dateCol = getDateColumn();

    addColumn(checkboxCol, new CheckboxHeader(selectionModel, dataProvider));
    setColumnWidth(checkboxCol, 3, Unit.EM);
    addColumn(fromCol, constants.mailTableFrom());
    setColumnWidth(fromCol, 40, Unit.PCT);
    addColumn(subjectCol, constants.mailTableSubject());
    setColumnWidth(subjectCol, 60, Unit.PCT);
    addColumn(attachedCol, attachedPin);
    setColumnWidth(attachedCol, 33, Unit.PX);
    addColumn(dateCol, constants.mailTableDate());
    setColumnWidth(dateCol, 10, Unit.EM);
    setRowCount(PAGE_SIZE, false);
    this.setStyleBaseOnTag();
    // redraw();
    setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
    setAutoHeaderRefreshDisabled(true);

    setSelectionModel(selectionModel, DefaultSelectionEventManager.<Message>createBlacklistManager(0));

    // make table sortable
    AsyncHandler columnSortHandler = new AsyncHandler(this);
    addColumnSortHandler(columnSortHandler);
    fromCol.setSortable(true);
    subjectCol.setSortable(true);
    attachedCol.setSortable(true);
    dateCol.setSortable(true);
}

From source file:org.apache.hupa.client.ui.MessagesCellTable.java

License:Apache License

protected Column<Message, ImageResource> getAttachmentColumn() {
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x10x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x10x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb938_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x10x0");
    InstrumentationLoggerProvider.get().instrument(
            "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x10x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x00x2_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x00x0");
    return new Column<Message, ImageResource>(new ImageResourceCell()) {
        public ImageResource getValue(Message object) {
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x20x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x3_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x2");
            InstrumentationLoggerProvider.get().instrument(
                    "org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x30x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x30x00x00x1_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x30x00x00x0_____org_apache_hupa_client_ui_MessagesCellTable_java0x0f2ab3f55de3eb9380x20x00x00x2c87156fe0x30x00x0");
            return object.hasAttachment() ? imageBundle.attachmentIcon() : null;
        }//from  w w  w . j av a 2s  .c o  m
    };
}