Warning: session_start(): open(/var/lib/php/sessions/sess_pgbt5v2bia6fomr299bo2h8re7, 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 JPopDownButton > JButton {
S menuPosition = "left"; // or "center" or "right"
*() { this(""); }
*(S text) {
super(joinNemptiesWithSpace(text, unicode_downPointingTriangle()));
main addActionListener(this, r openMenu);
}
*(IVF1 *fillMenu) { this(); }
event fillingMenu(JPopupMenu menu);
swappable void fillMenu(JPopupMenu menu) {
fillingMenu(menu);
}
void openMenu {
new JPopupMenu menu;
int emptyCount = menu.getComponentCount();
fillMenu(menu);
if (menu.getComponentCount() == emptyCount) ret;
int x = 0;
if (eq(menuPosition, "center")) x = (getWidth()-getPreferredWidth(menu))/2;
else if (eq(menuPosition, "right")) x = getWidth()-getPreferredWidth(menu);
menu.show(this, x, getHeight());
}
}