Warning: session_start(): open(/var/lib/php/sessions/sess_poqo4h24e9sgfbgnma9s07ktam, 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
// x = names and components interleaving.
// or just components.
// or just names.
// also, you can pass a Collection containing the elements
svoid addTabs(JTabbedPane tabs, O... x) {
if (tabs == null) ret;
x = flattenToArray(x);
for i over x: {
// is it a component?
O o = x[i];
if (isComponentOrSwingable(o))
addTab(tabs, "Tab " + (tabCount(tabs)+1), wrap(o));
else {
// assume it's a tab name, optionally followed by a component
S toolTip = "";
// WithToolTip is ok (WithToolTip not yet supported)
if (o cast WithToolTip) {
toolTip = o.toolTip();
o = o!;
}
S name = str(or(o, "Tab " + tabCount(tabs)+1));
Component c;
if (isComponentOrSwingable(get(x, i+1)))
c = wrap(get(x, ++i));
else
c = new JPanel;
addTabWithToolTip(tabs, name, toolTip, wrap(c));
}
}
}