• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ListModelList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.zkoss.zul.ListModelList的典型用法代码示例。如果您正苦于以下问题:Java ListModelList类的具体用法?Java ListModelList怎么用?Java ListModelList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ListModelList类属于org.zkoss.zul包,在下文中一共展示了ListModelList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getProfitAndLossTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getProfitAndLossTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		items.add(new ReportTableItem("Netto omzet", "", "", "", format(overview.getNettoOmzet())));
		items.add(new ReportTableItem("Renteopbrengsten van banktegoeden", "", "", "", "+" + format(overview.getInterestFromBusinessSavings())));
		items.add(new ReportTableItem("Inkooppkosten", "", "", "", "-" + format(overview.getRepurchase())));
		items.add(new ReportTableItem("Afschrijving auto", "", "", "-" + format(overview.getAfschrijvingAuto()), ""));
		items.add(new ReportTableItem("Afschrijvingen apparaten", "", "", "-" + format(overview.getAfschrijvingOverig()), ""));
		items.add(new ReportTableItem("Afschrijving bedrijfsruimte", "", "", "-" + format(overview.getSettlementDepreciation()), ""));
		items.add(new ReportTableItem("Totale afschrijving", "", "", "", "-" + format(overview.getAfschrijvingTotaal())));
		items.add(new ReportTableItem("Bijtelling privégebruik", "+" + format(overview.getBijtellingAuto()), "", "", ""));
		items.add(new ReportTableItem("Autokosten", "-" + format(overview.getKostenAuto()), "", "", ""));
		items.add(new ReportTableItem("Aftrekbare autokosten", "", format(overview.getKostenAutoAftrekbaar()), "", ""));
		items.add(new ReportTableItem("Overige transportkosten", "", "-" + format(overview.getKostenOverigTransport()), "", ""));
		items.add(new ReportTableItem("Auto- en transportkosten", "", "", format(overview.getCarAndTransportCosts()), ""));
		items.add(new ReportTableItem("Andere kosten", "", "", "-" + format(overview.getKostenOverig()), ""));
		items.add(new ReportTableItem("Huisvestingskosten", "", "", "-" + format(overview.getSettlementCosts()), ""));
		items.add(new ReportTableItem("Totaal overige bedrijfskosten", "", "", "", format(overview.getOtherCostsTotal())));
		items.add(new ReportTableItem("Winst", "", "", "", format(overview.getProfit())));
		items.add(new ReportTableItem("Wijzigingen in toelaatbare reserves, toevoeging oudedagsreserve", "", "", "", "(" + format(overview.getOudedagsReserveMaximaal()) + ")"));
		items.add(new ReportTableItem("Kleinschaligheidsinvesteringsaftrek", "", "", "", "(" + format(overview.getInvestmentDeduction()) + ")"));
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:25,代码来源:TaxVM.java


示例2: onEvent

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public void onClick$btnEliminar(Event ev) {		
	
	if (lsxCurso.getSelectedIndex() == -1)
	{
		Messagebox.show("Debe seleccionar un item de la lista", "Informacion", Messagebox.OK, Messagebox.INFORMATION);			
	}
	else
	{
		Messagebox.show("Desea eliminar el curso seleccionado", "Confirmaci�n", Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener() {
		    public void onEvent(Event evt) throws InterruptedException {
		        if (evt.getName().equals("onOK")) {
		        	CursoDTO dto =(CursoDTO) lsxCurso.getModel().getElementAt(lsxCurso.getSelectedIndex());			
		    		cursoOpInt.eliminarCurso(dto);
		    		alert("Curso Eliminado");	
		        } 
		    }
		});
		
		List<CursoDTO> listaCursos = cursoOpInt.getCursoList();
		ListModel model = new ListModelList(listaCursos);
		lsxCurso.setModel(model);
		lsxCurso.setItemRenderer(this);			
	}
	
	
}
 
开发者ID:zerstoren1234567,项目名称:PruebaDesarrollo,代码行数:27,代码来源:AdministrarCursosCtl.java


示例3: searchObject

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
@Listen("onClick = #searchObjectButton")
public void searchObject()
{
    DbSession dbSession = (DbSession)Sessions.getCurrent().getAttribute("dbsession");
    if (dbSession == null) 
    {
            showNotify("NO SESSION");
    }
    else
    {
        try 
        {
            String keyword = searchObjectTextBox.getValue();
            List<DbObject> result = dbSession.searchObjects(selectedObjectType.getTypeName(), keyword);
            selectedObjectTypeItemsListBox.setModel(new ListModelList<>(result));
            selectedObject = null;
        }
        catch(Exception ex) 
        {
            showNotify(ex.getMessage());
        }
    }
}
 
开发者ID:jz2000,项目名称:oracle-db-truancy,代码行数:24,代码来源:DatabaseController.java


示例4: doAfterCompose

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
@Override
  public final void doAfterCompose(final Component compTramite) {
      
  	super.doAfterCompose(compTramite);
      
      usuarioLogado = ConsolaUtil.recuperarUsuarioLogado();
      modo = TypeModoAcceso.EDICION;
      
      try {
       Long codigoTramite = (Long) session.getAttribute(ConstantesWEB.TRAMITE);
       tramite = DelegateUtil.getTramiteDelegate().obtenerTramite(codigoTramite);
       versiones = new ArrayList<TramiteVersion> (DelegateUtil.getTramiteVersionDelegate().listarTramiteVersiones(codigoTramite));
      } catch (DelegateException e) {
	ConsolaUtil.generaDelegateException(e);
}
      
      listVersiones.setItemRenderer(new VersionTramiteListitemRenderer(usuarioLogado));
      
      listVersiones.setModel(new ListModelList(versiones));
      
      if (tramite != null) {
          id.setValue(tramite.getIdentificador());
          descripcion.setValue( ((TraTramite) tramite.getTraduccion(usuarioLogado.getIdioma())).getDescripcion() );    
          procedimiento.setValue(tramite.getProcedimiento());
      }

      visualizaComponentes();

     // TODO eVENT LISTENER GUARDAR??
      /*
      tramWindow.addEventListener(ConstantesWEB.ACCION_GUARDAR_TRAMITE,
              new TramiteEventListener(mapEvento,
                      ConstantesWEB.ACCION_GUARDAR_TRAMITE));
      */
      
      
  }
 
开发者ID:GovernIB,项目名称:sistra,代码行数:38,代码来源:TramiteController.java


示例5: refrescarComboIdiomas

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
/** Refresca combo idiomas. */
private void refrescarComboIdiomas() {		
	try {
		List idiomas = DelegateUtil.getIdiomaDelegate().listarLenguajes();
		idioma.setSelectedItem(null);
		idioma.setModel(new ListModelList(idiomas, true));			
	} catch (DelegateException e) {					
		ConsolaUtil.generaDelegateException(e);
	}
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:11,代码来源:PlantillaIdiomaWModal.java


示例6: refrescarComboFormateadores

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
/** Refresca combo formateadoers. */
private void refrescarComboFormateadores() {		
	try {
		formateadores = DelegateUtil.getFormateadorDelegate().listar();
		formateador.setModel(new ListModelList(formateadores, true));			
	} catch (DelegateException e) {					
		ConsolaUtil.generaDelegateException(e);
	}
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:10,代码来源:PlantillaVersionWModal.java


示例7: upload

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
@Listen("onUpload=#uploadBtn")
public void upload(UploadEvent event) throws WrongValueException, AuthenticationException, NoSuchAlgorithmException, IOException {
	auditLogger.log(UPLOAD_TRANSACTIONS, user);
	try {
		media = event.getMedia();
		List<Cost> result = readTransactions();
		ListModelList<Cost> costModel = new ListModelList<>(result);
		costGrid.setModel(costModel);
		matchTab.setSelected(true);
		reloadBtn.setDisabled(false);
	} catch (Exception e) {
		e.printStackTrace();

	}
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:16,代码来源:VatViewCtrl.java


示例8: reload

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
@Listen("onClick=#reloadBtn")
public void reload(Event event) {
	try {
		List<Cost> result = readTransactions();
		ListModelList<Cost> costModel = new ListModelList<>(result);
		costGrid.setModel(costModel);
		matchTab.setSelected(true);
	} catch (Exception e) {
		e.printStackTrace();

	}
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:13,代码来源:VatViewCtrl.java


示例9: getCostTypes

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<CostType> getCostTypes() throws Exception {
	if (cost != null && costTypes == null) {
		CostTypeCache costTypeCache = (CostTypeCache) SpringUtil.getBean("costTypeCache");
		Collection<CostType> vatCostTypes = costTypeCache.getCostTypes();
		costTypes = new ListModelList<>(vatCostTypes);
		for (CostType costType : costTypes) {
			if (costType.equals(cost.getCostType())) {
				selectedCostType = costType;
			}
		}
	}
	return costTypes;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:14,代码来源:ModelWindowVM.java


示例10: getBalanceTypes

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<BalanceType> getBalanceTypes() throws Exception {
	if (balanceTypes == null) {
		BalanceType[] balanceTypeArray = BalanceType.values();
		return new ListModelList<>(balanceTypeArray);
	}
	return null;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:8,代码来源:ModelWindowVM.java


示例11: getActivaTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getActivaTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		BalanceReport report = overview.getActivaReport();
		List<ReportBalance> balanceList = report.getBalanceList();
		for (ReportBalance balance : balanceList) {
			items.add(new ReportTableItem(balance.getDescription(), formatDecimal(balance.getAanschafKosten()), format(balance.getBookValueBegin()), format(balance.getBookValueEnd()),
					format(balance.getRestwaarde())));
		}
		items.add(new ReportTableItem("Totaal", "", format(report.getTotalBeginValue()), format(report.getTotalEndValue()), ""));
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:14,代码来源:TaxVM.java


示例12: getPassivaTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getPassivaTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		BalanceReport report = overview.getPassivaReport();
		List<ReportBalance> balanceList = report.getBalanceList();
		if (balanceList != null) {
			for (ReportBalance balance : balanceList) {
				items.add(new ReportTableItem(balance.getDescription(), "", format(balance.getBookValueBegin()), format(balance.getBookValueEnd()), ""));
			}
			items.add(new ReportTableItem("Totaal", "", format(report.getTotalBeginValue()), format(report.getTotalEndValue()), ""));
			items.add(new ReportTableItem("Ondernemingsvermogen", "", format(overview.getEnterpriseCapitalPreviousYear()), format(overview.getEnterpriseCapital()), ""));
		}
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:16,代码来源:TaxVM.java


示例13: getPrivatWithDrawalTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getPrivatWithDrawalTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		items.add(new ReportTableItem("Onttrekking in contanten", format(overview.getOnttrekking().getWithdrawalCash())));
		items.add(new ReportTableItem("Onttrekking voor privégebruik zakelijke auto", format(overview.getOnttrekking().getWithdrawalPrivateUsageBusinessCar())));
		items.add(new ReportTableItem("Totale onttrekking", format(overview.getOnttrekking().getTotaleOnttrekking())));
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:10,代码来源:TaxVM.java


示例14: getPrivatDepositTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getPrivatDepositTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		items.add(new ReportTableItem("Privéstortingen", format(overview.getPrivateDeposit())));
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:8,代码来源:TaxVM.java


示例15: getPrepaidTaxTableItems

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<ReportTableItem> getPrepaidTaxTableItems() {
	List<ReportTableItem> items = new ArrayList<>();
	if (overview != null) {
		items.add(new ReportTableItem("Voorlopige aanslag inkomstenbelasting en premie volksverzekeringen", format(overview.getPrepaidTax().getPrepaidIncome())));
		items.add(new ReportTableItem("Inkomensafhankelijke bijdrage Zorgverzekeringswet", format(overview.getPrepaidTax().getPrepaidHealth())));
	}
	return new ListModelList<>(items);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:9,代码来源:TaxVM.java


示例16: getCosts

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<Cost> getCosts() throws Exception {
	User user = UserCredentialManager.getUser();
	if (user == null) {
		Executions.sendRedirect("login.zul");
	} else if (costs == null) {
		FiscalPeriod vatPeriod = DateHelper.getLatestVatPeriod(user.getVatPeriodType());
		List<Cost> vatCosts = costDao.getCostsWithPrivateMoneyExceptForTravelCosts(vatPeriod);
		costs = new ListModelList<>(vatCosts);
	}
	return costs;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:12,代码来源:CostVM.java


示例17: getCostTypes

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<CostType> getCostTypes() throws Exception {
	if (costTypes == null) {
		List<CostType> vatCostTypes = costTypeDao.getCostTypesForVatCostsWithPrivateMoney();
		costTypes = new ListModelList<>(vatCostTypes);
		selectedCostType = costTypes.get(0);
	}
	return costTypes;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:9,代码来源:CostVM.java


示例18: getCosts

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<Cost> getCosts() throws Exception {
	if (UserCredentialManager.getUser() != null) {
		costCache = (CostCache) SpringUtil.getBean("costCache");
		costCache.setBeginDate(periode.getBeginDate());
		costCache.setEndDate(periode.getEndDate());
		List<Cost> allCosts = costCache.getCosts();
		unhandledCosts = new ArrayList<>();
		filteredCosts = new ArrayList<>();
		for (Cost cost : allCosts) {
			if (filterCosts && StringUtils.isNotEmpty(searchString)) {
				if (cost.getDescription().toLowerCase().contains(searchString.toLowerCase())) {
					filteredCosts.add(cost);
				}
			} else {
				filterUnhandledCosts(cost);
			}
		}
		if (!showUnhandledInvestments && !filterCosts) {
			costs = new ListModelList<>(allCosts);
		} else if (showUnhandledInvestments) {
			costs = new ListModelList<>(unhandledCosts);
			showUnhandledInvestments = false;
		} else if (filterCosts) {
			costs = new ListModelList<>(filteredCosts);
			filterCosts = false;
		}
	} else {
		Executions.sendRedirect("login.zul");
	}
	return costs;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:32,代码来源:AllCostsVM.java


示例19: getBusinessCosts

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<Cost> getBusinessCosts() throws Exception {
	if (UserCredentialManager.getUser() != null && costs == null) {
		List<Cost> vatCosts = costDao.getCostsOnBusinessAccountInPeriod(periode);
		costs = new ListModelList<>(vatCosts);
	}
	return costs;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:8,代码来源:AllCostsVM.java


示例20: getCostTypes

import org.zkoss.zul.ListModelList; //导入依赖的package包/类
public ListModelList<CostType> getCostTypes() throws Exception {
	if (costTypes == null) {
		Collection<CostType> vatCostTypes = costTypeCache.getCostTypes();
		costTypes = new ListModelList<>(vatCostTypes);
		selectedCostType = costTypes.get(0);
	}
	return costTypes;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:9,代码来源:AllCostsVM.java



注:本文中的org.zkoss.zul.ListModelList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Hashids类代码示例发布时间:2022-05-22
下一篇:
Java CacheFile类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap