/** * This method returns whether or not the component is visible. If it is not visible, no HTML will * be generated. * * @param checkParents A boolean value, true mean that this component is considered visible if it * and all it's parents are visible. A false value only checks the component itself. */ public boolean getVisible(boolean checkParents) { if (!_visible) return false; boolean bVisible = _visible; if (checkParents) { HtmlComponent hc = getParent(); while (hc != null) { if (hc.getVisible() == false) { bVisible = false; break; } hc = hc.getParent(); } } return bVisible; }