当前位置: 首页>>代码示例>>Java>>正文


Java BeanItemContainer.addAll方法代码示例

本文整理汇总了Java中com.vaadin.data.util.BeanItemContainer.addAll方法的典型用法代码示例。如果您正苦于以下问题:Java BeanItemContainer.addAll方法的具体用法?Java BeanItemContainer.addAll怎么用?Java BeanItemContainer.addAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.data.util.BeanItemContainer的用法示例。


在下文中一共展示了BeanItemContainer.addAll方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateComboBox

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
/**
 * @param liste
 * @param libNull
 * @return une combo grace a la liste
 */
private ComboBox generateComboBox(final List<String> liste, final String libNull) {
	ComboBox sampleIdCB = new ComboBox();
	sampleIdCB.setPageLength(20);
	sampleIdCB.setTextInputAllowed(false);
	BeanItemContainer<String> dataList = new BeanItemContainer<>(String.class);
	dataList.addBean(applicationContext.getMessage("filter.all", null, UI.getCurrent().getLocale()));
	if (libNull != null) {
		dataList.addBean(libNull);
	}
	dataList.addAll(liste);
	sampleIdCB
			.setNullSelectionItemId(applicationContext.getMessage("filter.all", null, UI.getCurrent().getLocale()));
	sampleIdCB.setContainerDataSource(dataList);
	sampleIdCB.setImmediate(true);
	return sampleIdCB;
}
 
开发者ID:EsupPortail,项目名称:esup-ecandidat,代码行数:22,代码来源:CandidatureViewTemplate.java

示例2: getDatasource

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
/**
 * Sets up datasource that needs to be attached the table
 * 
 * @return
 */
private Indexed getDatasource() {

	BeanItemContainer<Customer> container = new BeanItemContainer<Customer>(
			Customer.class);
	container.addAll(DatasourceFactory.getCustomerDatasource(20));
	return container;

}
 
开发者ID:KrishnaPhani,项目名称:KrishnasSpace,代码行数:14,代码来源:BasicGridView.java

示例3: getDatasource

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
/**
 * 
 * Initalizes the datasource
 * 
 * @return
 */
protected Indexed getDatasource() {
	BeanItemContainer<VehicleInfo> container = new BeanItemContainer<VehicleInfo>(
			VehicleInfo.class);
	container.addAll(DatasourceFactory.getVehicleSalesDS());
	container.addNestedContainerBean("sales2012");
	container.addNestedContainerBean("sales2013");
	container.addNestedContainerBean("sales2014");
	return container;
}
 
开发者ID:KrishnaPhani,项目名称:KrishnasSpace,代码行数:16,代码来源:AbstractGridView.java

示例4: showResult

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
private void showResult(Object result) {
	resultLayout.removeAllComponents();
	
	String label;
	if (result == null) {
		resultLayout.addComponent(new Label("No Result"));
		return;
	} 
	
	if (result instanceof String) {
		label = (String)result;
		resultLayout.addComponent(new Label(label));
		return;
	}
	
	if (result instanceof List) {
		List<Element> resultList = (List<Element>)result;
		
		BeanItemContainer<Element> dataSource = new BeanItemContainer<Element>(Element.class);
		dataSource.addAll(resultList);
	    
		Table table = new Table();
		table.setContainerDataSource(dataSource);
		table.setSizeFull();
	    // create generated column and specify our "generator/formatter"
	    // table.addGeneratedColumn("rules", new RuleGenerator());
	    
	
		resultLayout.addComponent(table);
		return;
	}		
}
 
开发者ID:qa82,项目名称:analyzer,代码行数:33,代码来源:AnalyzerUI.java

示例5: buildPanel

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
protected void buildPanel(String introText) {
    this.setSpacing(true);
    this.setSizeFull();
    this.addComponent(new Label(introText));
    grid.setSizeFull();
    grid.setSelectionMode(SelectionMode.MULTI);
    BeanItemContainer<ReleasePackage> container = new BeanItemContainer<>(ReleasePackage.class);
    container.addAll(configService.findReleasePackages());
    grid.setContainerDataSource(container);
    grid.setColumns("name", "versionLabel", "releaseDate");
    grid.addSelectionListener((e) -> rowSelected());        
    this.addComponent(grid);
    this.setExpandRatio(grid, 1);        
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:15,代码来源:SelectPackagePanel.java

示例6: getAlleKlassen

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
public static BeanItemContainer<KlasseLaso> getAlleKlassen(BeanItemContainer<KlasseLaso> unsortedContainer) {
	
	BeanItemContainer<KlasseLaso> eintraege = new BeanItemContainer<KlasseLaso>(KlasseLaso.class);
	
	for (KlasseLaso klassenItem : unsortedContainer.getItemIds()) {
		eintraege.addBean(klassenItem);
	}
	eintraege.sort(new Object[] {KlassePojo.KLASSENNAME_COLUMN}, new boolean[] {true});
			
	BeanItemContainer<KlasseLaso> resultSchueler = new BeanItemContainer<KlasseLaso>(KlasseLaso.class);
	resultSchueler.addAll(eintraege.getItemIds());
	
	return resultSchueler;
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:15,代码来源:KlasseContainer.java

示例7: letzteKlassenLoeschen

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
private static void letzteKlassenLoeschen() {
	BeanItemContainer<KlasseLaso> klassen = new BeanItemContainer<KlasseLaso>(KlasseLaso.class);
	klassen.addAll(KlasseContainer.getInstance().getItemIds());
	for (KlasseLaso klasse : klassen.getItemIds()) {
		if (klasse.getKlassentyp().isKlassenstufenorientiert() && KlassenstufenUtils.getKlassenstufe(klasse.getKlassenname()) == LebSettingsContainer.getLebSettings().getLetzteKlassenstufe()) {
			for (SchuelerLaso schueler : SchuelerContainer.getAllSchuelerOfKlasse(klasse.getPojo()).getItemIds()) {
				SchuelerContainer.getInstance().deleteSchueler(schueler);
			}
			KlasseContainer.getInstance().deleteKlasse(klasse);
		}
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:13,代码来源:UpgradeUtils.java

示例8: faecherLoeschen

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
private static void faecherLoeschen(AdminDashboard adminDashboard) throws Exception {
	BeanItemContainer<FachLaso> faecher = new BeanItemContainer<FachLaso>(FachLaso.class);
	faecher.addAll(FachContainer.getInstance().getItemIds());
	for (FachLaso fach : faecher.getItemIds()) {
		for (SchuelerPojo schueler: ZuordnungFachSchuelerContainer.getAllSchuelerOfFach(fach.getPojo()).getItemIds()) {
			new ZuordnungFachSchuelerHandler(schueler, fach.getPojo(), true, adminDashboard).setZugeordnet(false);
		}
		FachContainer.getInstance().deleteFach(fach);
	}
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:11,代码来源:UpgradeUtils.java

示例9: updateColumnsContainer

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
protected void updateColumnsContainer(BeanItemContainer<DiagrammePreferenceValue> container, List<DiagrammePreferenceValue> values) {
    container.removeAllItems();
    container.addAll(values);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:5,代码来源:ChartConfigureLayout.java

示例10: EditAgentDeploymentPanel

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
public EditAgentDeploymentPanel(ApplicationContext context, AgentDeploy agentDeployment, IAgentDeploymentChangeListener listener, 
        TabbedPanel tabbedPanel) {
    this.context = context;
    this.agentDeployment = agentDeployment;
    this.listener = listener;
    this.tabbedPanel = tabbedPanel;

    VerticalLayout vlay = new VerticalLayout();
    FormLayout form = new FormLayout();
    form.setSpacing(true);
    form.setMargin(true);
    form.addComponent(getNameComponent());
    form.addComponent(getLogLevelComponent());
    form.addComponent(getStartTypeComponent());

    vlay.addComponent(form);
    cronLayout = new HorizontalLayout();
    cronLayout.setSpacing(true);
    cronLayout.setMargin(true);
    cronLayout.addComponent(getScheduleComponent("Second"));
    cronLayout.addComponent(getScheduleComponent("Minute"));
    cronLayout.addComponent(getScheduleComponent("Hour"));
    cronLayout.addComponent(getScheduleComponent("Day"));
    cronLayout.addComponent(getScheduleComponent("Month"));
    cronLayout.addComponent(getScheduleComponent("Day of Week"));
    cronLayout.addComponent(getScheduleComponent("Year"));
    vlay.addComponent(cronLayout);

    FormLayout cronForm = new FormLayout();
    cronForm.setSpacing(true);
    cronForm.setMargin(true);
    cronForm.addComponent(getCronComponent());
    vlay.addComponent(cronForm);

    table = new Table();
    table.setSizeFull();
    BeanItemContainer<AgentFlowDeployParm> container = new BeanItemContainer<AgentFlowDeployParm>(AgentFlowDeployParm.class);
    table.setContainerDataSource(container);
    table.setEditable(true);
    table.setSelectable(true);
    table.setTableFieldFactory(new EditFieldFactory());
    table.setVisibleColumns("name", "value");
    table.setColumnHeaders("Parameter Name", "Value");

    container.addAll(agentDeployment.getAgentDeploymentParms());

    setSplitPosition(60f);
    setFirstComponent(vlay);
    setSecondComponent(table);
    updateScheduleEnable();
    updateScheduleFields();
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:53,代码来源:EditAgentDeploymentPanel.java

示例11: getSortedFachdefinitionen

import com.vaadin.data.util.BeanItemContainer; //导入方法依赖的package包/类
public static BeanItemContainer<FachdefinitionLaso> getSortedFachdefinitionen() {
	BeanItemContainer<FachdefinitionLaso> fachdefinitionen = new BeanItemContainer<FachdefinitionLaso>(FachdefinitionLaso.class);
	fachdefinitionen.addAll(getInstance().getItemIds());
	fachdefinitionen.sort(new Object[]{FachdefinitionLaso.FACHTYP_COLUMN, FachdefinitionPojo.FACHBEZEICHNUNG_COLUMN}, new boolean[] {false, true});
	return fachdefinitionen;
}
 
开发者ID:fossaag,项目名称:rolp,代码行数:7,代码来源:FachdefinitionContainer.java


注:本文中的com.vaadin.data.util.BeanItemContainer.addAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。