private void storeListFormLinkComponents(Enumeration enumera) { while (enumera.hasMoreElements()) { HtmlComponent comp = (HtmlComponent) (enumera.nextElement()); if (comp instanceof HtmlLink) _linkComponents.add(comp); if (comp instanceof HtmlContainer) storeListFormLinkComponents(((HtmlContainer) comp).getComponents()); } }
/** This method was created in VisualAge. */ public void initialize() throws Exception { try { super.initialize(); addPageListener(this); // Assigning to main cont Enumeration e = getComponentTable().elements(); while (e.hasMoreElements()) { HtmlComponent comp = (HtmlComponent) e.nextElement(); if (comp instanceof JspListForm) { _mainCont = (JspListForm) comp; break; } } } catch (Exception e) { MessageLog.writeErrorMessage("initialize", e, this); } }