19 package org.turro.financials.product.logic;
21 import org.turro.elephant.context.Application;
22 import org.turro.elephant.util.Messages;
23 import org.turro.fieldit.FieldItUtil;
24 import org.turro.financials.db.FinancialsPU;
25 import org.turro.financials.entity.Product;
26 import org.turro.financials.menu.FinancialsMenu;
27 import org.turro.groupit.GroupItUtil;
28 import org.turro.jpa.composer.EntityComposer;
29 import org.turro.jpa.entity.DaoEntity;
30 import org.turro.zul.fieldit.ValueItGrid;
31 import org.turro.zul.frame.Framework;
32 import org.turro.zul.groupit.GroupedGrid;
33 import org.zkoss.zk.ui.Component;
34 import org.zkoss.zk.ui.select.annotation.Listen;
35 import org.zkoss.zk.ui.select.annotation.Wire;
43 private boolean groupsChanged =
false;
51 @Listen(
"onChange = #groups")
56 @Listen(
"onChange = #values")
105 return !
entity.isEmpty() && (
entity.getId() == 0) || super.shouldBeSaved() || groupsChanged;
boolean isInRole(String role)
static Application getApplication()
static Messages confirmDeletion()
static void saveValues(Collection< ValueIt > values)
Product getEntityInstance(Long id)
DaoEntity getWrapperInstance(Component comp)
String getAttributeName()
static void saveValues(Collection< Grouped > values)
Collection< ValueIt > getValues()
static Framework getCurrent()
void setSelectedLabel(String text)
void setSelectedTooltiptext(String text)