Warning: session_start(): open(/var/lib/php/sessions/sess_tj63kgo0rbnpu84cv2i0cqai99, 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
static abstract class DynamicStack extends JPanel {
int spacing = 10;
bool useFiller;
*() { this(true); }
*(bool useFiller) {
super(new GridBagLayout);
this.useFiller = useFiller;
_addFiller();
}
abstract GridBagConstraints _componentConstraints();
abstract GridBagConstraints _fillerConstraints();
void _addFiller {
if (useFiller) add(jrigid(), _fillerConstraints());
}
void addComponent(final Component c) {
addComponents(ll(c));
}
void addComponents(final Collection extends Component> l) {
swing {
for (Component c : unnull(l))
add(c, _componentConstraints(), getComponentCount()-(useFiller ? 1 : 0));
revalidate();
}
}
void setComponents(Collection l) {
removeAll();
_addFiller();
addComponents(l);
}
void clearComponents() {
setComponents(null);
}
int numComponents() { ret countComponents()-1; }
L components() {
ret dropLast(main.getComponents(this));
}
DynamicStack spacing(int n) { spacing = n; this; }
bool isEmpty() { ret numComponents() == 0; }
}