Package net.sourceforge.ganttproject.gui.options.model

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


            optionsPanel.setBorder(BorderFactory.createTitledBorder(lineBorder,myi18n
                    .getOptionGroupLabel(group)));
        }
        GPOption[] options = group.getOptions();
        for (int i = 0; i < options.length; i++) {
            GPOption nextOption = options[i];
            final Component nextComponent = createOptionComponent(nextOption);
            if (needsLabel(nextOption)) {
                Component nextLabel =createOptionLabel(options[i]);
                optionsPanel.add(nextLabel);
                optionsPanel.add(nextComponent);               
View Full Code Here


            saveIconPositions(handler);
            saveRoleSets(handler);
            for (Iterator options = myGPOptions.entrySet().iterator(); options.hasNext();) {
                Map.Entry nextEntry = (Entry) options.next();
                GPOption nextOption = (GPOption)nextEntry.getValue();
                if (nextOption.getPersistentValue()!=null) {
                    addAttribute("id", nextEntry.getKey().toString(), attrs);
                    addAttribute("value", nextOption.getPersistentValue(), attrs);
                    emptyElement("option", attrs, handler);
                }
            }
            endElement("ganttproject-options", handler);
            //
View Full Code Here

    }

    private void addOptions(GPOptionGroup optionGroup) {
        GPOption[] options = optionGroup.getOptions();
        for (int i=0;i<options.length; i++) {
            GPOption nextOption = options[i];
            myGPOptions.put(optionGroup.getID()+"."+nextOption.getID(), nextOption);
            if (nextOption instanceof GP1XOptionConverter) {
                GP1XOptionConverter nextConverter = (GP1XOptionConverter) nextOption;
                myTagDotAttribute_Converter.put(nextConverter.getTagName()+"."+nextConverter.getAttributeName(), nextConverter);
            }
        }
View Full Code Here

                Attributes attrs) throws SAXException {

            int r = 0, g = 0, b = 0;

            if ("option".equals(qName)) {
                GPOption option = (GPOption) myGPOptions.get(attrs.getValue("id"));
                if (option!=null) {
                    option.lock();
                    option.loadPersistentValue(attrs.getValue("value"));
                    option.commit();
                }
                return;
            }

            if (attrs != null) {
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.gui.options.model.GPOption

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.