Warning: session_start(): open(/var/lib/php/sessions/sess_vkjrpsf4uims8cs6nsqn5vd9ql, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass JChatConvo extends SingleComponentPanel {
JAutoWidthHTMLLabel label;
L posts = synchroList();
// params = contents, right, contents, right, ...
*(O... params) {
for (int i = 0; i+1 < l(params); i += 2)
addPost(strUnnull(params[i]), isTrue(params[i+1]));
setComponent(withMargin(label = swing(() ->
jAutoWidthHTMLLabel(lambda0 makeContents))));
}
srecord Post(S html, bool right) {}
selfType addPost(S html, bool right) {
posts.add(new Post(html, right));
update();
this;
}
void update {
if (label != null) label.update();
}
S makeContents() {
ret htmlForJLabel_chatConvo(cloneMap(posts, p -> pair(p.html, p.right)));
}
}