com.github.bordertech.wcomponents.examples.datatable.DataTableBeanProviderExample Maven / Gradle / Ivy
package com.github.bordertech.wcomponents.examples.datatable;
import com.github.bordertech.wcomponents.AbstractBeanTableDataModel;
import com.github.bordertech.wcomponents.BeanProvider;
import com.github.bordertech.wcomponents.BeanProviderBound;
import com.github.bordertech.wcomponents.WContainer;
import com.github.bordertech.wcomponents.WButton;
import com.github.bordertech.wcomponents.WDataTable;
import com.github.bordertech.wcomponents.WTableColumn;
import com.github.bordertech.wcomponents.WText;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.LogFactory;
/**
* This example shows the use of a {@link WDataTable} with a list of beans.
*
* @author Yiannis Paschalidis
* @since 1.0.0
*/
public class DataTableBeanProviderExample extends WContainer {
/**
* A fake "application cache", that holds the data which is displayed by the table.
*/
private static final Map