ActionMgr.addAction(new TabPages(comp, value));
}
@SuppressWarnings("unchecked")
public static Array_Of_Panel<Panel> getPages(JTabbedPane comp) {
Array_Of_Panel pages = new Array_Of_Panel(JPanel.class);
TabPages action = (TabPages) ActionMgr.getAction(comp, TabPages.class);
int numberOfTabs = comp.getTabCount();
if (action != null)
pages = action.pages;
else {
if (comp instanceof TabFolder){ //PM:14/01/2009:corrected the for hidden pages
pages = ((TabFolder)comp).getPages();
} else {
for (int i = 0; i < numberOfTabs; i++) {
Component tmpPanel = comp.getComponentAt(i);
if (tmpPanel instanceof JPanel)
pages.add(tmpPanel);
}
}
}
return pages;
}