Examples of GPOptionGroup


Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

            };
            myDayOffOption.lock();
            myDayOffOption.setValue(new Color(0.9f, 1f, 0.17f));
            myDayOffOption.commit();
        }
        myColorOptions = new GPOptionGroup("resourceChartColors", new GPOption[] {myResourceNormalLoadOption, myResourceOverloadOption, myResourceUnderloadOption, myDayOffOption});
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

    public Component getComponent(Action[] choiceChangeActions,
            GPOptionGroup[] choiceOptions, int selectedGroupIndex) {
        JComponent[] choiceComponents = new JComponent[choiceOptions.length];
        for (int i = 0; i < choiceChangeActions.length; i++) {
            GPOptionGroup nextOptions = choiceOptions[i];
            JComponent nextOptionComponent = nextOptions == null ? new JPanel()
                    : myOptionPageBuilder
                            .buildPlanePage(new GPOptionGroup[] { nextOptions });
            choiceComponents[i] = nextOptionComponent;
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

//          Component finishDatePanel = builder.createStandaloneOptionPanel(myFinish);
//        //
//          datesBox.add(finishDatePanel);
//        }
//        topPanel.add(datesBox, BorderLayout.CENTER);
        GPOptionGroup group = myIntervalsModel.getMaxIntervalLength()==1 ?
            new GPOptionGroup("", new GPOption[] {myStart}) :
            new GPOptionGroup("", new GPOption[] {myStart, myFinish});
        group.setTitled(false);
        JComponent datesBox = builder.buildPlanePage(new GPOptionGroup[] {group});
        topPanel.add(datesBox, BorderLayout.CENTER);
      //
        Box buttonBox = Box.createHorizontalBox();
        buttonBox.setBorder(BorderFactory.createEmptyBorder(3,0,3,0));
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

        String[] roleFieldValues = new String[enabledRoles.length];
        for (int i=0; i<enabledRoles.length; i++) {
          roleFieldValues[i]= enabledRoles[i].getName();
        }
        myRoleField = new DefaultEnumerationOption("colRole", roleFieldValues);
      myGroup = new GPOptionGroup("", new GPOption[] {myNameField, myPhoneField, myMailField,myRoleField});
      myGroup.setTitled(false);
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

                    return getValue("ftpuser");
                }
                return super.getOptionLabel(option);
            }
        });
        final GPOptionGroup ftpGroup = project.getDocumentManager().getNetworkOptionGroups()[0];
        final DefaultStringOption usernameOption = (DefaultStringOption) ftpGroup.getOption(DocumentCreator.USERNAME_OPTION_ID);
        final DefaultStringOption servernameOption = (DefaultStringOption) ftpGroup.getOption(DocumentCreator.SERVERNAME_OPTION_ID);
        final DefaultStringOption dirnameOption = (DefaultStringOption) ftpGroup.getOption(DocumentCreator.DIRECTORYNAME_OPTION_ID);
        final DefaultStringOption passwordOption = (DefaultStringOption) ftpGroup.getOption(DocumentCreator.PASSWORD_OPTION_ID);
        final JComponent optionsPane = builder.buildPage(project.getDocumentManager().getNetworkOptionGroups(), getPageID());
        final Action testConnectionAction = new AbstractAction() {
            {
                putValue(Action.NAME, GanttLanguage.getInstance().getText("testFTPConnection"));
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

    public void setContext(IGanttProject project, UIFacade uiFacade) {
        myProject = project;
        myUIFacade = uiFacade;
        myLanguageOption = new LocaleOption();
        myMPXOptions = new GPOptionGroup("exporter.msproject.mpx", new GPOption[] {myLanguageOption});
        myLanguageOption.lock();
        myLanguageOption.setSelectedLocale(GanttLanguage.getInstance().getLocale());
        myLanguageOption.commit();
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

        final Stylesheet[] stylesheets = getStylesheets();
        EnumerationOption stylesheetOption= createStylesheetOption(getStylesheetOptionID(), stylesheets);
        stylesheetOption.lock();
        stylesheetOption.setValue(stylesheets[0].getLocalizedName());
        stylesheetOption.commit();
        myOptions = new GPOptionGroup("exporter.html", new GPOption[] {stylesheetOption});
        myOptions.setTitled(false);
  }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

  private GPOptionGroup myWebPublishingGroup;

    FileChooserPage(State state, IGanttProject project) {
        myState = state;
        myProject = project;
        myWebPublishingGroup = new GPOptionGroup("exporter.webPublishing", new GPOption[]{state.getPublishInWebOption()});
        myWebPublishingGroup.setTitled(false);
        //myOptionsBuilder = new OptionsPageBuilder();
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

                    .getFileTypeDescription()) {
                public void actionPerformed(ActionEvent e) {
                    ExporterChooserPage.this.myState.setExporter(nextExporter);
                }
            };
            GPOptionGroup nextOptions = nextExporter.getOptions();
            if (nextOptions!=null) {
                nextOptions.lock();
            }
            choiceChangeActions[i] = nextAction;
            choiceOptions[i] = nextOptions;
        }
        GPOptionChoicePanel choicePanel = new GPOptionChoicePanel();
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup

        return null;
    }

    public void addOptionGroups(GPOptionGroup[] optionGroups) {
        for (int i=0; i<optionGroups.length; i++) {
            GPOptionGroup nextGroup = optionGroups[i];
            addOptions(nextGroup);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.