com.github.bordertech.wcomponents.examples.table.TableBeanProviderExample Maven / Gradle / Ivy
package com.github.bordertech.wcomponents.examples.table;
import com.github.bordertech.wcomponents.AbstractBeanBoundTableModel;
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.WDateField;
import com.github.bordertech.wcomponents.WTable;
import com.github.bordertech.wcomponents.WTableColumn;
import com.github.bordertech.wcomponents.WText;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* This example shows the use of a {@link WTable} with a bean provider that provides the list of beans.
*
* It also demonstrates, in a very simplistic way, how to implement caching.
*
*
* @author Jonathan Austin
* @since 1.0.0
*/
public class TableBeanProviderExample extends WContainer {
/**
* A fake "application cache", that holds the data which is displayed by the table.
*/
private static final Map