package com.itmill.toolkit.demo.sampler.features.table;
import com.itmill.toolkit.demo.sampler.APIResource;
import com.itmill.toolkit.demo.sampler.Feature;
import com.itmill.toolkit.demo.sampler.FeatureSet;
import com.itmill.toolkit.demo.sampler.NamedExternalResource;
import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Table;
public class TableLazyLoading extends Feature {
@Override
public String getName() {
return "Table, lazy loading";
}
@Override
public Component getExample() {
return new TableMainFeaturesExample();
}
@Override
public String getDescription() {
return "Table supports lazy-loading, which means that the content is"
+ " loaded from the server only when needed. This allows the "
+ " table to stay efficient even when scrolling hundreds of"
+ " thousands of rows.<br/>Try scrolling a fair amount quickly!";
}
@Override
public APIResource[] getRelatedAPI() {
return new APIResource[] { new APIResource(Table.class) };
}
@Override
public Class[] getRelatedFeatures() {
return new Class[] { FeatureSet.Tables.class };
}
@Override
public NamedExternalResource[] getRelatedResources() {
return null;
}
}
|