19 package org.turro.zul.groupit;
21 import java.util.logging.Level;
22 import java.util.logging.Logger;
23 import org.turro.command.Command;
24 import org.turro.command.Context;
25 import org.turro.contacts.GroupIt;
26 import org.turro.contacts.db.ContactsPU;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.util.Images;
29 import org.turro.i18n.I_;
30 import org.turro.zkoss.dialog.SelectionDialog;
31 import org.turro.zkoss.layout.GridLayout;
32 import org.turro.zul.frame.Framework;
33 import org.zkoss.zk.ui.ext.AfterCompose;
34 import org.zkoss.zul.Checkbox;
35 import org.zkoss.zul.Image;
36 import org.zkoss.zul.Space;
37 import org.zkoss.zul.Textbox;
47 public static void newGroup(String category,
GroupIt parent,
final Command command) {
56 gf,
"500px",
"300px",
new Command() {
58 public Object execute(Context context) {
65 if(command !=
null) command.execute(context);
66 }
catch (Exception ex) {
81 gf,
"500px",
"300px",
new Command() {
83 public Object execute(Context context) {
91 if(command !=
null) command.execute(context);
92 }
catch (Exception ex) {
118 getChildren().clear();
124 private Textbox name;
125 private Checkbox publishable;
127 private void addFields() {
130 name =
new Textbox(group.
getName());
131 name.setHflex(
"true");
137 publishable =
new Checkbox();
143 private void addRequired(
boolean required) {
151 private void assignFields() {
152 group.
setName(name.getValue());
static String logMsg(String msg)
static String get(String msg)
void setColumns(int columns)
GridLayout addComponent(HtmlBasedComponent comp)
GridLayout addCaption(String label)
static Framework getCurrent()