本文整理匯總了Java中com.google.gwt.view.client.ListDataProvider.addDataDisplay方法的典型用法代碼示例。如果您正苦於以下問題:Java ListDataProvider.addDataDisplay方法的具體用法?Java ListDataProvider.addDataDisplay怎麽用?Java ListDataProvider.addDataDisplay使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.view.client.ListDataProvider
的用法示例。
在下文中一共展示了ListDataProvider.addDataDisplay方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onUpdate
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void onUpdate(
List<SeriesManager.Row> rows,
SortedSet<Integer> years,
SeriesManager.Ordering ordering) {
super.onUpdate(rows, years, ordering);
table = new Table(rows.size());
container.clear();
container.add(table);
table.addColumn(CountryNameColumn.get(), CountryNameColumn.HEADER);
for (Integer year : years) {
table.addColumn(YearColumn.get(year), year.toString());
}
table.addColumnSortHandler(this);
updateColumnSortList(table.getColumnSortList(), ordering);
ListDataProvider<SeriesManager.Row> provider =
new ListDataProvider<SeriesManager.Row>();
provider.addDataDisplay(table);
provider.setList(rows);
selectionModel = new MultiSelectionModel<SeriesManager.Row>();
table.setSelectionModel(selectionModel, null);
for (SeriesManager.Row row : rows) {
selectionModel.setSelected(row, row.isSelected());
}
}
示例2: setDataProvider
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void setDataProvider(ListDataProvider<ObjectProperty> dataProvider) {
if (!dataProvider.getDataDisplays().contains(propertiesTable)) {
dataProvider.addDataDisplay(propertiesTable);
}
this.dataProvider = dataProvider;
}
示例3: bindMacrosList
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void bindMacrosList(ListDataProvider<Macro> dataProvider) {
dataProvider.addDataDisplay(macrosTable);
}
示例4: QCellTable
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
public QCellTable(DataGridGVO gvo, String uuid, String parent){
setSize(gvo.getWidth(),gvo.getHeight());
String context = gvo.getContext();
String window = gvo.getWindow();
String component =gvo.getId();
Column<DataContainerGVO,String> [] columns = null;
if (gvo!=null){
if (gvo.getColumns()!=null){
int gvoColSize= gvo.getColumns().length;
columns = new Column[gvoColSize];
for (int i=0;i<gvoColSize;i++){
final String columnName= gvo.getColumns()[i].getFieldName();
String contentType = gvo.getColumns()[i].getContent();
if (CONTENT_STRING.equals(contentType)){
if (gvo.getColumns()[i].getComponent()!=null){
ComponentGVO c = gvo.getColumns()[i].getComponent();
if (c instanceof ButtonGVO){
ButtonGVO bc = (ButtonGVO)c;
columns[i] = new QButtonColumn<DataContainerGVO>(uuid,context,window,component,gvo.getColumns()[i].getId(),parent,gvo.getColumns()[i].getTooltip(), gvo.getColumns()[i],bc) {
@Override
public String getValue(DataContainerGVO map) {
return map.getDataMap().get(columnName)!=null ? map.getDataMap().get(columnName).toString(): null;
}
};
}
} else {
columns[i] = new TextColumn<DataContainerGVO>() {
@Override
public String getValue(DataContainerGVO map) {
return map.getDataMap().get(columnName)!=null ? map.getDataMap().get(columnName).toString(): null;
}
};
}
} else if (CONTENT_LINK.equals(contentType)){
columns[i] = new LinkColumn<DataContainerGVO>(uuid,context,window,component,gvo.getColumns()[i].getId(),parent,gvo.getColumns()[i].getTooltip(), gvo.getColumns()[i]) {
@Override
public String getValue(DataContainerGVO map) {
return map.getDataMap().get(columnName)!=null ? map.getDataMap().get(columnName).toString(): null;
}
};
}
if (columns[i]!=null){
if (gvo.getColumns()[i].getSortable()!=null && gvo.getColumns()[i].getSortable().booleanValue()){
//columns[i].
}
addColumn(columns[i],gvo.getColumns()[i].getDisplayname());
}
}
}
ListDataProvider<DataContainerGVO> adapter = new ListDataProvider<DataContainerGVO>();
list = adapter.getList();
if (gvo.getPageSize()!=null){
if (gvo.getPageSize()>0){
setPageSize(gvo.getPageSize());
}
}
SelectionModel<DataContainerGVO> selectionModel = null;
if (gvo.getMultipleSelect()!=null && gvo.getMultipleSelect().booleanValue()){
selectionModel = new MultiSelectionModel<DataContainerGVO>();
} else {
selectionModel = new SingleSelectionModel<DataContainerGVO>();
}
setSelectionModel(selectionModel);
adapter.addDataDisplay(this);
setPageStart(0);
}
}
示例5: setUpDataProvider
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void setUpDataProvider( ListDataProvider<Issue> dataProvider ) {
dataProvider.addDataDisplay( issuesList );
}
示例6: setDataProvider
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void setDataProvider( ListDataProvider<PropertyRow> dataProvider ) {
if ( !dataProvider.getDataDisplays().contains( dataGrid ) ) {
dataProvider.addDataDisplay( dataGrid );
}
}
示例7: bindBrokerList
import com.google.gwt.view.client.ListDataProvider; //導入方法依賴的package包/類
@Override
public void bindBrokerList(final ListDataProvider<NuoDBBroker> dataProvider) {
dataProvider.addDataDisplay(brokerList);
}