本文整理汇总了Java中org.zkoss.zul.ListModelList类的典型用法代码示例。如果您正苦于以下问题:Java ListModelList类的具体用法?Java ListModelList怎么用?Java ListModelList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListModelList类属于org.zkoss.zul包,在下文中一共展示了ListModelList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
}
示例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());
}
}
}
示例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));
*/
}
示例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);
}
}
示例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);
}
}
示例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();
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}