◆ addChoice()
void org.turro.crm.zul.sector.TechnologyBox.addChoice |
( |
final String |
choice, |
|
|
final Command |
command |
|
) |
| |
|
protected |
Reimplemented from org.turro.zkoss.input.MultiLabelBox< E >.
Definition at line 88 of file TechnologyBox.java.
90 if(asl.getName().equalsIgnoreCase(choice)) {
94 Technology as = (Technology)
new CrmPU().getSingleResultOrNull(
95 "select a from Technology a where a.name = ?",
96 new Object[] { choice });
98 Messages.confirmAcceptation().add(choice).show(() -> {
99 Technology nas =
new Technology();
101 nas =
new CrmPU().saveObject(nas);
103 if(command !=
null) command.execute(
null);
107 if(command !=
null)
try {
108 command.execute(
null);
109 }
catch (Exception ex) {
110 Logger.getLogger(TechnologyBox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Set< Technology > getTechnologies()
◆ changeChoice()
void org.turro.crm.zul.sector.TechnologyBox.changeChoice |
( |
final String |
oldChoice, |
|
|
String |
choice, |
|
|
final Command |
command |
|
) |
| |
|
protected |
Reimplemented from org.turro.zkoss.input.MultiLabelBox< E >.
Definition at line 116 of file TechnologyBox.java.
119 public Object execute(Context context) {
121 if(command !=
null) command.execute(
null);
void deleteChoice(String oldChoice, Command command)
void addChoice(final String choice, final Command command)
◆ checkDelete()
boolean org.turro.crm.zul.sector.TechnologyBox.checkDelete |
( |
| ) |
|
|
protected |
◆ checkEditable()
boolean org.turro.crm.zul.sector.TechnologyBox.checkEditable |
( |
| ) |
|
|
protected |
◆ checkNew()
boolean org.turro.crm.zul.sector.TechnologyBox.checkNew |
( |
| ) |
|
|
protected |
◆ checkVisible()
boolean org.turro.crm.zul.sector.TechnologyBox.checkVisible |
( |
| ) |
|
|
protected |
◆ convertToString()
String org.turro.crm.zul.sector.TechnologyBox.convertToString |
( |
Technology |
label | ) |
|
|
protected |
◆ deleteChoice()
void org.turro.crm.zul.sector.TechnologyBox.deleteChoice |
( |
String |
oldChoice, |
|
|
Command |
command |
|
) |
| |
|
protected |
Reimplemented from org.turro.zkoss.input.MultiLabelBox< E >.
Definition at line 128 of file TechnologyBox.java.
130 while(it.hasNext()) {
131 if(it.next().getName().equals(oldChoice)) {
133 if(command !=
null)
try {
134 command.execute(
null);
135 }
catch (Exception ex) {
136 Logger.getLogger(TechnologyBox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getCollection()
Collection<Technology> org.turro.crm.zul.sector.TechnologyBox.getCollection |
( |
| ) |
|
|
protected |
◆ getLabelChoices()
Collection<String> org.turro.crm.zul.sector.TechnologyBox.getLabelChoices |
( |
| ) |
|
|
protected |
◆ getNewImage()
String org.turro.crm.zul.sector.TechnologyBox.getNewImage |
( |
| ) |
|
|
protected |
◆ setCustomer()
void org.turro.crm.zul.sector.TechnologyBox.setCustomer |
( |
Customer |
customer | ) |
|
The documentation for this class was generated from the following file: