◆ afterCompose()
void org.turro.publication.model.ConstraintKeyBox.afterCompose |
( |
| ) |
|
Definition at line 90 of file ConstraintKeyBox.java.
91 appendChild(
new Space());
92 Toolbarbutton social =
new Toolbarbutton();
93 social.setImage(
"/_zul/images/contact.png");
94 social.addEventListener(Events.ON_CLICK, (Event event) -> {
95 mode = ConstraintKeyMode.SOCIAL_GROUP;
99 Toolbarbutton entity =
new Toolbarbutton();
100 entity.setImage(
"/_zul/images/entity.png");
101 entity.addEventListener(Events.ON_CLICK, (Event event) -> {
102 mode = ConstraintKeyMode.ENTITY;
106 Toolbarbutton
delete =
new Toolbarbutton();
107 delete.setImage(
"/_zul/images/delete.png");
108 delete.addEventListener(Events.ON_CLICK, (Event event) -> {
109 mode = ConstraintKeyMode.EMPTY;
111 Events.postEvent(new InputEvent(
"onChange", this,
"", null));
◆ getValue()
String org.turro.publication.model.ConstraintKeyBox.getValue |
( |
| ) |
|
Definition at line 42 of file ConstraintKeyBox.java.
43 if(mode == ConstraintKeyMode.ENTITY) {
44 EntityCombobox combo = (EntityCombobox) getChildren().get(0);
45 return combo.getEntityPath();
46 }
else if(mode == ConstraintKeyMode.SOCIAL_GROUP) {
47 SocialGroupListbox list = (SocialGroupListbox) getChildren().get(0);
48 return list.getKeyString();
◆ setValue()
void org.turro.publication.model.ConstraintKeyBox.setValue |
( |
String |
keyId | ) |
|
Definition at line 53 of file ConstraintKeyBox.java.
54 if(Strings.isBlank(keyId)) {
55 mode = ConstraintKeyMode.
EMPTY;
56 }
else if(keyId.startsWith(
"/")) {
57 mode = ConstraintKeyMode.
ENTITY;
The documentation for this class was generated from the following file: