BrightSide Workbench Full Report + Source Code
org.turro.zul.groupit.GroupItForm Class Reference
Inheritance diagram for org.turro.zul.groupit.GroupItForm:
Collaboration diagram for org.turro.zul.groupit.GroupItForm:

Public Member Functions

void setGroup (GroupIt group)
 
GroupIt getGroup ()
 
void afterCompose ()
 
- Public Member Functions inherited from org.turro.zkoss.layout.GridLayout
 GridLayout ()
 
 GridLayout (int columns)
 
 GridLayout (String hflexs)
 
void setColumns (int columns)
 
void setColumns (String hflexs)
 
void setColCaptions (String captions)
 
void setColCaptions (String[] captions)
 
void clearRows ()
 
GridLayout addGroup (String title, boolean open)
 
GridLayout addRow ()
 
GridLayout insertBeforeRow (Row row)
 
GridLayout addCaption (String label)
 
GridLayout addValue (String value)
 
GridLayout addBoldValue (String value)
 
GridLayout addComponent (HtmlBasedComponent comp)
 
GridLayout addSpannedComponent (HtmlBasedComponent comp, int cols)
 
GridLayout addRowSpannedComponent (HtmlBasedComponent comp, int rows)
 
GridLayout addSpace ()
 
Row getCurrentRow ()
 
Rows getRows (boolean create)
 
Object getData ()
 
void setData (Object data)
 

Static Public Member Functions

static void newGroup (String category, GroupIt parent, final Command command)
 
static void editGroup (GroupIt group, final Command command)
 
static boolean deleteGroup (GroupIt group)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.zkoss.layout.GridLayout
Row currentRow
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 43 of file GroupItForm.java.

Member Function Documentation

◆ afterCompose()

void org.turro.zul.groupit.GroupItForm.afterCompose ( )

Definition at line 117 of file GroupItForm.java.

117  {
118  getChildren().clear();
119  setHflex("true");
120  setColumns("min,1,min");
121  addFields();
122  }
Here is the call graph for this function:

◆ deleteGroup()

static boolean org.turro.zul.groupit.GroupItForm.deleteGroup ( GroupIt  group)
static

Definition at line 102 of file GroupItForm.java.

102  {
103  GroupIt.delete(group.getPathName());
104  return true;
105  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editGroup()

static void org.turro.zul.groupit.GroupItForm.editGroup ( GroupIt  group,
final Command  command 
)
static

Definition at line 76 of file GroupItForm.java.

76  {
77  final GroupItForm gf = new GroupItForm();
78  gf.setGroup(group);
79  SelectionDialog.getComponent(Framework.getCurrent().getPage(),
80  I_.get("Group"),
81  gf, "500px", "300px", new Command() {
82  @Override
83  public Object execute(Context context) {
84  if(gf != null) {
85  GroupIt group = gf.getGroup();
86  if(group.isValid()) {
87  try {
88  group = new ContactsPU().saveObject(group);
89  GroupIt.normalizePaths(group.getPathName());
90  context.put("group", GroupIt.normalizePaths(group));
91  if(command != null) command.execute(context);
92  } catch (Exception ex) {
93  Logger.getLogger(GroupItForm.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
94  }
95  }
96  }
97  return null;
98  }
99  });
100  }
static GroupIt normalizePaths(GroupIt group)
Definition: GroupIt.java:206
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGroup()

GroupIt org.turro.zul.groupit.GroupItForm.getGroup ( )

Definition at line 111 of file GroupItForm.java.

111  {
112  assignFields();
113  return group;
114  }
Here is the caller graph for this function:

◆ newGroup()

static void org.turro.zul.groupit.GroupItForm.newGroup ( String  category,
GroupIt  parent,
final Command  command 
)
static

Definition at line 47 of file GroupItForm.java.

47  {
48  final GroupItForm gf = new GroupItForm();
49  GroupIt group = new GroupIt();
50  group.setCategory(category);
51  group.setParent(parent);
52  group.setPublishable(true);
53  gf.setGroup(group);
54  SelectionDialog.getComponent(Framework.getCurrent().getPage(),
55  I_.get("Group"),
56  gf, "500px", "300px", new Command() {
57  @Override
58  public Object execute(Context context) {
59  if(gf != null) {
60  GroupIt group = gf.getGroup();
61  if(group.isValid()) {
62  try {
63  group = new ContactsPU().saveObject(group);
64  context.put("group", GroupIt.normalizePaths(group));
65  if(command != null) command.execute(context);
66  } catch (Exception ex) {
67  Logger.getLogger(GroupItForm.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
68  }
69  }
70  }
71  return null;
72  }
73  });
74  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setGroup()

void org.turro.zul.groupit.GroupItForm.setGroup ( GroupIt  group)

Definition at line 107 of file GroupItForm.java.

107  {
108  this.group = group;
109  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: