Package org.aperteworkflow.util.vaadin.ui.table

Examples of org.aperteworkflow.util.vaadin.ui.table.LocalizedPagedTable$PagedTableChangeEvent


    }
    }
   
  private void createTaskTable() {
   
    table = new LocalizedPagedTable();
    table.setSizeFull();
 
    table.setSortAscending(true);
    table.setSortContainerPropertyId("creator");
   
View Full Code Here


        String[] visibleColumns = new String[] {"user", "userSubstitute", "dateFrom", "dateTo", "delete"};
        String[] columnHeaders = new String[] {getMessage("substitutions.user"), getMessage("substitutions.user.substitute"),
                getMessage("substitutions.date.from"), getMessage("substitutions.date.to"),
                getMessage("pagedtable.delete")};

        LocalizedPagedTable table = pagedTable(container, visibleColumns, columnHeaders, customColumns, new ItemClickEvent.ItemClickListener() {
            @Override
            public void itemClick(ItemClickEvent event) {
                showItemDetails(container.getItem(event.getItemId()));
            }
        });
View Full Code Here

        return table;
    }

    public static LocalizedPagedTable pagedTable(final Container container, String[] visibleViewColumns, String[] columnViewHeaders,
                                                 Map<String, ColumnGenerator> customViewColumns, ItemClickListener itemClickListener) {
        LocalizedPagedTable table = new LocalizedPagedTable();
        table.addStyleName("striped strong");
        table.setSizeFull();
        table.setPageLength(10);
        table.setImmediate(true);
        table.setSelectable(true);
        table.setContainerDataSource(container);
        if (itemClickListener != null) {
            table.addListener(itemClickListener);
        }
        if (customViewColumns != null && !customViewColumns.isEmpty()) {
      for (Map.Entry<String, ColumnGenerator> entry : customViewColumns.entrySet()) {
                table.addGeneratedColumn(entry.getKey(), entry.getValue());
            }
        }
        table.setVisibleColumns(visibleViewColumns);
        table.setColumnHeaders(columnViewHeaders);
        table.setSortAscending(true);
        table.setSortContainerPropertyId(visibleViewColumns[0]);
        return table;
    }
View Full Code Here

        getMessage("dict.item.key"), getMessage("dict.item.description"),
        getMessage("dict.item.values"), getMessage("dict.item.extensions"),
        getMessage("pagedtable.delete")
    };

    LocalizedPagedTable table = pagedTable(container, visibleColumns, columnHeaders, customColumns, new ItemClickEvent.ItemClickListener() {
      @Override
      public void itemClick(ItemClickEvent event) {
        showItemDetails(container.getItem(event.getItemId()), new SaveCallback<DictionaryItemWrapperType>() {
          @Override
          public void onSave(BeanItem<DictionaryItemWrapperType> item) {
View Full Code Here

TOP

Related Classes of org.aperteworkflow.util.vaadin.ui.table.LocalizedPagedTable$PagedTableChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.