⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipropertysheetbuilder.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
package net.sourceforge.ganttproject.gui;import javax.swing.JComponent;import net.sourceforge.ganttproject.gui.options.model.ColorOption;import net.sourceforge.ganttproject.gui.options.model.GPOption;import net.sourceforge.ganttproject.gui.options.model.GPOptionGroup;import net.sourceforge.ganttproject.language.GanttLanguage;public interface IPropertySheetBuilder {    JComponent buildPlanePage(GPOptionGroup[] optionGroups);    public static class I18N {        private String myOptionKeyPrefix = "option.";        private String myOptionGroupKeyPrefix = "optionGroup.";        private String myOptionPageKeyPrefix = "optionPage.";                public I18N() {        }                protected String getValue(String key) {            return GanttLanguage.getInstance().getText(key);        }        public String getPageTitle(String pageID) {            return GanttLanguage.getInstance().getText(                    myOptionPageKeyPrefix + pageID + ".title");        }        public String getPageDescription(String pageID) {            return GanttLanguage.getInstance().getText(                    myOptionPageKeyPrefix + pageID + ".description");        }        public String getOptionGroupLabel(GPOptionGroup group) {            return GanttLanguage.getInstance().getText(                    myOptionGroupKeyPrefix + group.getID() + ".label");        }        public String getOptionLabel(GPOption option) {            return GanttLanguage.getInstance().getText(                    myOptionKeyPrefix + option.getID() + ".label");        }        public String getAdvancedActionTitle() {            return GanttLanguage.getInstance().getText("optionAdvanced.label");        }                public String getColorButtonText(ColorOption colorOption) {            return GanttLanguage.getInstance().getText("colorButton");        }                public String getColorChooserTitle(ColorOption colorOption) {            return GanttLanguage.getInstance().getText("selectColor");        }        public void setOptionKeyPrefix(String optionKeyPrefix) {            myOptionGroupKeyPrefix = optionKeyPrefix;        }    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -