public int getComponentCount() { int count = 0; if (getLayout() != null) { count++; } if (getFooter() != null) { count++; } return count; }
/** * Sets the layout that is rendered below normal form contents. No footer is * rendered if this is set to null, . * * @param footer * the new footer layout */ public void setFooter(Layout footer) { if (getFooter() != null) { getFooter().setParent(null); } getState().footer = footer; if (footer != null) { footer.setParent(this); } }