|
|
|
@ -123,13 +123,13 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String title4PopupWindow() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Template_Theme_Profile_Dialog_Title"); |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Dialog_Title"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createLeftPane() { |
|
|
|
|
JPanel titleContainer = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
titleContainer.setPreferredSize(new Dimension(LEFT_TITLE_PANE_WIDTH, LEFT_TITLE_PANE_HEIGHT)); |
|
|
|
|
titleContainer.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Template_Theme_Preview_Pane_Title"), TITLE_BORDER_FONT)); |
|
|
|
|
titleContainer.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Preview_Pane_Title"), TITLE_BORDER_FONT)); |
|
|
|
|
|
|
|
|
|
JPanel previewContainer = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
previewContainer.setBorder(BorderFactory.createEmptyBorder(5, 4, 10, 4)); |
|
|
|
@ -167,7 +167,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
private JPanel createNameEditPane() { |
|
|
|
|
JPanel container = new JPanel(new BorderLayout(30, 0)); |
|
|
|
|
container.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0)); |
|
|
|
|
container.add(LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Name")), BorderLayout.WEST); |
|
|
|
|
container.add(LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Name")), BorderLayout.WEST); |
|
|
|
|
|
|
|
|
|
JPanel settingContainer = new JPanel(new BorderLayout(10, 0)); |
|
|
|
|
container.add(settingContainer, BorderLayout.CENTER); |
|
|
|
@ -236,11 +236,11 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
double[] columnSize = {p, p}; |
|
|
|
|
|
|
|
|
|
JPanel previewLabelPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
previewLabelPane.add(LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Color_Scheme_Preview_Label")), BorderLayout.NORTH); |
|
|
|
|
previewLabelPane.add(LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Color_Scheme_Preview_Label")), BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
JPanel content = TableLayoutHelper.createGapTableLayoutPane(new JComponent[][]{ |
|
|
|
|
{LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Color_Scheme_Edit_Label")), colorListPane}, |
|
|
|
|
{null, LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Color_Scheme_Edit_Tip"), new Color(0XC6C6C6), 10)}, |
|
|
|
|
{LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Color_Scheme_Edit_Label")), colorListPane}, |
|
|
|
|
{null, LabelUtils.createLabel(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Color_Scheme_Edit_Tip"), new Color(0XC6C6C6), 10)}, |
|
|
|
|
{previewLabelPane, extendedContainer}, |
|
|
|
|
}, |
|
|
|
|
rowSize, columnSize, 18, 7); |
|
|
|
@ -248,7 +248,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
|
|
|
|
|
JPanel borderContainer = new JPanel(new BorderLayout()); |
|
|
|
|
borderContainer.setPreferredSize(new Dimension(COLOR_SCHEME_TITLE_PANE_WIDTH, COLOR_SCHEME_TITLE_PANE_HEIGHT)); |
|
|
|
|
borderContainer.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Color_Scheme_Title"))); |
|
|
|
|
borderContainer.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Color_Scheme_Title"))); |
|
|
|
|
borderContainer.add(content); |
|
|
|
|
|
|
|
|
|
JPanel container = new JPanel(new BorderLayout()); |
|
|
|
@ -266,7 +266,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
} |
|
|
|
|
protected JPanel createCustomEditorsPane() { |
|
|
|
|
JPanel container = new JPanel(new BorderLayout()); |
|
|
|
|
container.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Custom_Settings_Title"))); |
|
|
|
|
container.setBorder(BorderUtils.createTitleBorder(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Custom_Settings_Title"))); |
|
|
|
|
|
|
|
|
|
uiTabbedPane = new UITabbedPane(); |
|
|
|
|
uiTabbedPane.setBorder(BorderFactory.createEmptyBorder(10, 5, 10, 1)); |
|
|
|
@ -375,7 +375,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
|
|
|
|
|
public UIButton createSaveButton() { |
|
|
|
|
saveButton = new UIButton(); |
|
|
|
|
saveButton.setText(Toolkit.i18nText("Fine-Design_Basic_Save")); |
|
|
|
|
saveButton.setText(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save")); |
|
|
|
|
saveButton.setEnabled(false); |
|
|
|
|
saveButton.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
@ -406,7 +406,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
public UIButton createSaveAsButton(final TemplateThemeProfileDialog<T> profileDialog) { |
|
|
|
|
saveAsButton = new UIButton(); |
|
|
|
|
saveAsButton.removeAll(); |
|
|
|
|
saveAsButton.setText(Toolkit.i18nText("Fine-Design_Basic_Predefined_Save_As_New")); |
|
|
|
|
saveAsButton.setText(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_Save_As")); |
|
|
|
|
saveAsButton.setEnabled(false); |
|
|
|
|
saveAsButton.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
@ -426,7 +426,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
public SaveAsDialog(TemplateThemeProfileDialog<T> dialog) { |
|
|
|
|
super(dialog, ModalityType.APPLICATION_MODAL); |
|
|
|
|
|
|
|
|
|
setTitle(Toolkit.i18nText("Fine-Design_Template_Theme_Save_As_Dialog_Title")); |
|
|
|
|
setTitle(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Save_As_Dialog_Title")); |
|
|
|
|
setResizable(false); |
|
|
|
|
setSize(new Dimension(300, 140)); |
|
|
|
|
GUICoreUtils.centerWindow(this); |
|
|
|
@ -518,7 +518,7 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
|
|
|
|
|
JPanel nameTextPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(20, 5); |
|
|
|
|
nameTextPane.setBorder(BorderFactory.createEmptyBorder(20, 0, 0, 0)); |
|
|
|
|
nameTextPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Template_Theme_Save_As_Pane_Name_Label"))); |
|
|
|
|
nameTextPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Save_As_Pane_Name_Label"))); |
|
|
|
|
nameTextPane.add(nameTextField); |
|
|
|
|
|
|
|
|
|
container.add(nameTextPane, BorderLayout.CENTER); |
|
|
|
@ -572,9 +572,9 @@ public abstract class TemplateThemeProfilePane<T extends TemplateTheme> extends
|
|
|
|
|
String error = StringUtils.EMPTY; |
|
|
|
|
String name = textField.getText(); |
|
|
|
|
if (isThemeNameEmpty(name)) { |
|
|
|
|
error = Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Empty_Name_Error_Tip"); |
|
|
|
|
error = Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Empty_Name_Error_Tip"); |
|
|
|
|
} else if (checkDuplicated && isThemeNameDuplicated(name)) { |
|
|
|
|
error = Toolkit.i18nText("Fine-Design_Template_Theme_Edit_Pane_Duplicated_Name_Error_Tip"); |
|
|
|
|
error = Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Edit_Pane_Duplicated_Name_Error_Tip"); |
|
|
|
|
} |
|
|
|
|
errorLabel.setText(error); |
|
|
|
|
|
|
|
|
|