Package DisplayProject.controls

Examples of DisplayProject.controls.TabFolder


        }
        return qq_TabFolder64;
    }

    public void setqq_TabFolder64(TabFolder value) {
        TabFolder oldValue = qq_TabFolder64;
        qq_TabFolder64 = value;
        this.qq_Listeners.firePropertyChange("qq_TabFolder64", oldValue, value);
    }
View Full Code Here


        }
        return qq_tabs;
    }

    public void setqq_tabs(TabFolder value) {
        TabFolder oldValue = qq_tabs;
        qq_tabs = value;
        this.qq_Listeners.firePropertyChange("qq_tabs", oldValue, value);
    }
View Full Code Here

        }
        return qq_tabs;
    }

    public void setqq_tabs(TabFolder value) {
        TabFolder oldValue = qq_tabs;
        qq_tabs = value;
        this.qq_Listeners.firePropertyChange("qq_tabs", oldValue, value);
    }
View Full Code Here

        }
        return qq_tabs;
    }

    public void setqq_tabs(TabFolder value) {
        TabFolder oldValue = qq_tabs;
        qq_tabs = value;
        this.qq_Listeners.firePropertyChange("qq_tabs", oldValue, value);
    }
View Full Code Here

        }
        return qq_theTabFolder;
    }

    public void setqq_theTabFolder(TabFolder value) {
        TabFolder oldValue = qq_theTabFolder;
        qq_theTabFolder = value;
        this.qq_Listeners.firePropertyChange("qq_theTabFolder", oldValue, value);
    }
View Full Code Here

    }

  public void performAction() {
        if (pages != null) {
          //PM:14/01/2009:moved code to TabFolder
          TabFolder tabPane = (TabFolder)_component;
          tabPane.setPages(pages);
        } else {
            // add or delete a page
            switch (action) {
            case TabPages.ADD:
              _addPage();
View Full Code Here

   * @param tabLayoutPolicy
   *            the policy used to layout the tabs
   * @return The created <code>JTabbedPane</code> like a Forte TabFolder
   */
  public static TabFolder newTabFolder(String name, int tabLayoutPolicy) {
    TabFolder tp = new TabFolder();
    tp.setName(name);
    tp.setTabLayoutPolicy(tabLayoutPolicy);
    // PM 9/7/07 allows inhert background colour
    tp.setBackground(null);
    // TF:9/11/07:Refactored this method to initialise the state properly
    // for coded widgets, instead of declared widgets
    WidgetState.set(tp, Constants.FS_UPDATE);

    return tp;
View Full Code Here

    }

  public void performAction() {
        if (pages != null) {
          //PM:14/01/2009:moved code to TabFolder
          TabFolder tabPane = (TabFolder)_component;
          tabPane.setPages(pages);
        } else {
            // add or delete a page
            switch (action) {
            case TabPages.ADD:
              _addPage();
View Full Code Here

        // TF:25/06/2009:Added special handling for a TabFolder. We just want to get all the components
        // in the tab folder and recurse down into them. Luckily, TabFolders include a method that will
        // give us all the components, irrespective of whether they are visible or not.
        if (comp instanceof TabFolder) {
          TabFolder pane = (TabFolder)comp;
          for (Component c : pane.getAllPages()) {
            processComponent(c, state);
          }
        }
        // TF:26/05/2009:Changed this to process the JTabbed panes diffferent to the other components.
        // A JTabbedPane can have 3 component prior to it's real components, depending on how it's
        // been set up. (Eg SCROLL_TAB_LAYOUT has 3 components, WRAP_TAB_LAYOUT doesnt)
        else if (comp instanceof JTabbedPane) {
          JTabbedPane pane = (JTabbedPane)comp;
          int tabs = pane.getTabCount();
          // TF:26/05/2009:Unfortunately, as we're setting the visibility, this may change
          // the component count and indexes, so remember the pages first.
          List<Component> tabPages = new ArrayList<Component>(tabs);
          for (int i = 0; i < tabs; i++) {
            tabPages.add(pane.getComponentAt(i));
          }
          for (Component c : tabPages) {
            processComponent(c, state);
          }
        }
View Full Code Here

                    ((JList)this._component).setSelectedIndex(value-1);
                  }
                 
                  // CraigM:16/01/2009 - Corrected to cater for hidden pages
                  else if (this._component instanceof TabFolder) {
                    TabFolder tf = (TabFolder)this._component;
                    int realIndex = tf.getTabIndex(value-1);
 
                    if (realIndex != -1) {
                          tf.setSelectedIndex(realIndex);
                      }
                  }
                  else {
                      UnsupportedOperationException errorVar = new UnsupportedOperationException("getIndexValue() is not implemented for components of type " + this._component.getClass());
                      ErrorMgr.addError(errorVar);
View Full Code Here

TOP

Related Classes of DisplayProject.controls.TabFolder

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.