19 package org.turro.calendar;
21 import java.util.Collection;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.turro.command.Command;
25 import org.turro.elephant.context.ElephantContext;
26 import org.turro.i18n.I_;
27 import org.turro.zkoss.dialog.SelectionDialog;
28 import org.turro.zul.frame.Framework;
29 import org.zkoss.zk.ui.Component;
30 import org.zkoss.zk.ui.HtmlBasedComponent;
31 import org.zkoss.zk.ui.ext.AfterCompose;
32 import org.zkoss.zul.Vlayout;
40 private Collection solutions;
43 this.solutions = solutions;
47 if(solutions !=
null) {
48 for(Object solution : solutions) {
49 if(solution instanceof HtmlBasedComponent) {
50 appendChild((HtmlBasedComponent) solution);
54 if(!getChildren().isEmpty()) {
56 I_.
get(
"New"),
this,
"300px",
"70%",
null);
58 if(command !=
null)
try {
59 command.execute(
null);
60 }
catch (Exception ex) {
67 for(Component c : getChildren()) {
68 if(c instanceof AfterCompose) {
69 ((AfterCompose) c).afterCompose();
CalendarProcess(Collection solutions)
void process(Command command)
static String logMsg(String msg)
static String get(String msg)
static void showComponent(Page page, String title, Component component, String width, String height, final Command command)
static Framework getCurrent()