Package DisplayProject

Examples of DisplayProject.Array_Of_Panel


     * there are invisible pages. The array returned is a copy of the backing array.
     * @return
     */
    @SuppressWarnings("unchecked")
    public Array_Of_Panel<Panel> getPages() {
      Array_Of_Panel pages = new Array_Of_Panel();
      List<JPanel> allPages = getAllPages();
      for (JPanel page : allPages){
        pages.add(page);
      }
      return pages;
    }
View Full Code Here


        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;
    }
View Full Code Here

        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;
    }
View Full Code Here

     * there are invisible pages. The array returned is a copy of the backing array.
     * @return
     */
    @SuppressWarnings("unchecked")
    public Array_Of_Panel<Panel> getPages() {
      Array_Of_Panel pages = new Array_Of_Panel();
      List<JPanel> allPages = getAllPages();
      for (JPanel page : allPages){
        pages.add(page);
      }
      return pages;
    }
View Full Code Here

TOP

Related Classes of DisplayProject.Array_Of_Panel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.