public void onClick$searchcbutton() { if (cxtj.isVisible()) { cxtj.setVisible(false); } else { cxtj.setVisible(true); } }
public void cerrarVentana(Div div, String id, List<Tab> tabs2, Groupbox group) { div.setVisible(false); tabs = tabs2; for (int i = 0; i < tabs.size(); i++) { if (tabs.get(i).getLabel().equals(id)) { if (i == (tabs.size() - 1) && tabs.size() > 1) { tabs.get(i - 1).setSelected(true); } tabs.get(i).onClose(); tabs.remove(i); } } if (tabs.size() == 0) { if (group.isVisible() && !group.isOpen()) { group.setOpen(true); } } }