📄 ipropertysheetbuilder.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 + -