- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file CommentGrid.java.
◆ CommentGrid()
org.turro.contacts.zul.contact.CommentGrid.CommentGrid |
( |
| ) |
|
◆ addRows()
void org.turro.contacts.zul.contact.CommentGrid.addRows |
( |
| ) |
|
Definition at line 71 of file CommentGrid.java.
73 final Row row =
new Row();
75 rows.appendChild(row);
77 Hbox hbox =
new Hbox();
78 row.appendChild(hbox);
80 final Textbox comment =
new Textbox();
83 comment.setText(c.getComment());
84 comment.addEventListener(Events.ON_CHANGE,
new EventListener() {
86 public void onEvent(Event event)
throws Exception {
87 if(comment.getText().contains(
"#dir") && !Application.getApplication().isInRole(
"contact:file-ext")) {
90 c.setComment(comment.getText());
93 hbox.appendChild(comment);
95 if(Application.getApplication().isInRole(
"contact-comment:delete")) {
96 hbox.appendChild(
new Separator(
"vertical"));
97 Image img =
new Image(
"/_zul/images/edit-delete.png");
98 img.setStyle(
"cursor:pointer");
99 img.addEventListener(Events.ON_CLICK,
new EventListener() {
101 public void onEvent(Event event)
throws Exception {
102 Messages.confirmDeletion().show(() -> {
109 hbox.appendChild(img);
◆ setAddToolbar()
void org.turro.contacts.zul.contact.CommentGrid.setAddToolbar |
( |
boolean |
addToolbar | ) |
|
Definition at line 63 of file CommentGrid.java.
65 toolbar =
new Toolbar();
66 getParent().appendChild(toolbar);
◆ setContact()
void org.turro.contacts.zul.contact.CommentGrid.setContact |
( |
Contact |
contact | ) |
|
Definition at line 55 of file CommentGrid.java.
56 this.contact = contact;
57 rows.getChildren().clear();
The documentation for this class was generated from the following file: