public static void printCompsList() { ZOHOCreator.loadSelectedApplication(); List<ZCSection> zcSections = ZOHOCreator.getCurrentSectionList(); int compsCounter = 1; List<ZCComponent> comps = new ArrayList<ZCComponent>(); for (int i = 0; i < zcSections.size(); i++) { ZCSection zcSection = zcSections.get(i); System.out.println(zcSection.getSectionName()); List<ZCComponent> zcComps = zcSection.getComponents(); for (int j = 0; j < zcComps.size(); j++) { ZCComponent comp = zcComps.get(j); comps.add(comp); System.out.println( "\t" + (compsCounter++) + ". " + comp.getComponentName() + "(" + comp.getType() + ")"); } } String inp = getInput( "\n\nType the serial no of Form/View..... Type -1 to quit..... Type 0 to go back to App Listing"); int selectedComp = -1000; try { selectedComp = Integer.parseInt(inp); } catch (Exception ee) { } if (selectedComp == 0) { printAppList(); } else if (selectedComp == -1000 || selectedComp > compsCounter) { printCompsList(); } else if (selectedComp == -1) { return; } else { ZCComponent selComp = comps.get(selectedComp - 1); ZOHOCreator.setCurrentComponent(selComp); // System.out.println("Selected COmp : " + selComp); if (selComp.getType().equals(ZCComponent.FORM)) { printForm(); } else if (selComp.getType().equals(ZCComponent.REPORT)) { printView(); } else if (selComp.getType().equals(ZCComponent.CALENDAR)) { printCalendar(); } else if (selComp.getType().equals(ZCComponent.PAGE)) { printHtmlView(); } } }