Warning: session_start(): open(/var/lib/php/sessions/sess_0qg0fie6ssk73lm31gd275qtfb, 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
import javax.swing.border.*;
sclass jCenteredLiveValueSection_class extends SingleComponentPanel {
IGetterWithNotify liveValue;
settable int borderType = BevelBorder.LOWERED;
settable bool bold;
S getTitle() { ret liveValue!; }
*(IGetterWithNotify *liveValue, Component c) {
super(c);
}
selfType init() {
bindLiveValueListenerToComponent(this, liveValue, r-awt {
var titledBorder = BorderFactory.createTitledBorder(
makeBaseBorder(), liveValue!);
if (bold) titledBorder.setTitleFont(deriveBoldFont(getFont()));
setBorder(titledBorder);
centerSection(jCenteredLiveValueSection_class.this);
revalidate();
});
this;
}
swappable Border makeBaseBorder() {
ret BorderFactory.createBevelBorder(borderType);
}
}
static JPanel jCenteredLiveValueSection(IGetterWithNotify lv, Component c) swing {
ret new jCenteredLiveValueSection_class(lv, c).init();
}