◆ ConnectorGridOld()
org.turro.contacts.zul.contact.ConnectorGridOld.ConnectorGridOld |
( |
| ) |
|
◆ addRows()
void org.turro.contacts.zul.contact.ConnectorGridOld.addRows |
( |
| ) |
|
Definition at line 71 of file ConnectorGridOld.java.
73 final Row row =
new Row();
75 rows.appendChild(row);
77 Hbox hbox =
new Hbox();
78 row.appendChild(hbox);
80 final ConnectorNameCombobox name =
new ConnectorNameCombobox();
81 name.setConnectorName(c.getDescription());
82 name.addEventListener(Events.ON_CHANGE,
new EventListener() {
84 public void onEvent(Event event)
throws Exception {
85 c.setDescription(name.getConnectorName());
88 hbox.appendChild(name);
90 if(Application.getApplication().isInRole(
"contact-connector:delete")) {
91 hbox.appendChild(
new Separator(
"vertical"));
92 Image img =
new Image(
"/_zul/images/edit-delete.png");
93 img.setStyle(
"cursor:pointer");
94 img.addEventListener(Events.ON_CLICK,
new EventListener() {
96 public void onEvent(Event event)
throws Exception {
97 Messages.confirmDeletion().show(() -> {
104 hbox.appendChild(img);
107 final Textbox value =
new Textbox();
108 value.setWidth(
"500px");
109 value.setText(c.getValue());
110 value.addEventListener(Events.ON_CHANGE,
new EventListener() {
112 public void onEvent(Event event)
throws Exception {
113 c.setValue(value.getText());
116 row.appendChild(value);
◆ setAddToolbar()
void org.turro.contacts.zul.contact.ConnectorGridOld.setAddToolbar |
( |
boolean |
addToolbar | ) |
|
Definition at line 63 of file ConnectorGridOld.java.
65 toolbar =
new Toolbar();
66 getParent().appendChild(toolbar);
◆ setContact()
void org.turro.contacts.zul.contact.ConnectorGridOld.setContact |
( |
Contact |
contact | ) |
|
The documentation for this class was generated from the following file: