/** * @invisible * @param theElement ControlP5XMLElement */ public void addToXMLElement(ControlP5XMLElement theElement) { theElement.setName("tab"); theElement.setAttribute("name", name()); theElement.setAttribute("id", new Integer(id())); theElement.setAttribute("width", new Integer(width())); theElement.removeAttribute("x"); theElement.removeAttribute("y"); }