128 Application app = Application.getApplication();
129 Popup popup = Framework.getCurrent().getGlobalPopup();
131 if(popup ==
null)
return null;
133 Hlayout backlayout =
new Hlayout();
134 backlayout.setSpacing(
"10px");
135 popup.appendChild(backlayout);
138 String face = fileAttach.
getPublicFile(
"/profile/face.png",
false);
140 if(!org.zkoss.lang.Strings.isBlank(face)) {
141 backlayout.appendChild(
new ImageWrapper(face, 50, 50));
144 Vlayout vbox =
new Vlayout();
146 vbox.setStyle(
"font-size:11px");
147 backlayout.appendChild(vbox);
149 String name = contact.
getName();
152 vbox.appendChild(LabelTypes.getCaptionLabel(name));
158 if(app.isInRole(
"contact-tag:list")) {
160 if(!Strings.isEmpty(tags)) {
161 vbox.appendChild(LabelTypes.getTinyLabel(
I_.
get(
"Tags") +
" " + tags));
165 if(app.isInRole(
"contact-address:list")) {
167 vbox.appendChild(LabelTypes.getSoftLabel(address.getFullAddress()));
171 if(app.isInRole(
"contact-connector:list")) {
173 vbox.appendChild(LabelTypes.getSoftLabel(connector.getFullConnector()));
177 if(app.isInRole(
"contact-value:list")) {
179 vbox.appendChild(getFieldLine(fv));
183 if(app.isInRole(
"contact-relation:list")) {
184 RelationLayout rl =
new RelationLayout(contact);
185 rl.fillContactInfo();
186 if(rl.hasContent()) {
187 vbox.appendChild(rl);
190 if(!vbox.getChildren().isEmpty()) {
String getPublicFile(String file)
static String byKey(String key)
static String get(String msg)