|
|
@ -81,7 +81,7 @@ public class LayoutStylePane extends BasicBeanPane<LayoutBorderStyle> { |
|
|
|
private UIToggleButton titleFontBoldButton; |
|
|
|
private UIToggleButton titleFontBoldButton; |
|
|
|
private UIToggleButton titleFontItalicButton; |
|
|
|
private UIToggleButton titleFontItalicButton; |
|
|
|
private UIToggleButton titleFontUnderlineButton; |
|
|
|
private UIToggleButton titleFontUnderlineButton; |
|
|
|
private LineComboBox titleFontUnderlineCombo; |
|
|
|
// private LineComboBox titleFontUnderlineCombo; // 目前前端仅支持短横线类型的下划线,因此设计器端暂时就不展示线型选择框了,待后续优化
|
|
|
|
// 标题图文混排
|
|
|
|
// 标题图文混排
|
|
|
|
protected TitleInsetImagePane titleInsetImagePane; |
|
|
|
protected TitleInsetImagePane titleInsetImagePane; |
|
|
|
//对齐方式
|
|
|
|
//对齐方式
|
|
|
@ -211,8 +211,8 @@ public class LayoutStylePane extends BasicBeanPane<LayoutBorderStyle> { |
|
|
|
titleFontUnderlineButton.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
titleFontUnderlineButton.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
titleFontUnderlineButton.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
titleFontUnderlineButton.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
|
|
|
|
|
|
|
|
titleFontUnderlineCombo = new LineComboBox(UIConstants.BORDER_LINE_STYLE_ARRAY); |
|
|
|
// titleFontUnderlineCombo = new LineComboBox(UIConstants.BORDER_LINE_STYLE_ARRAY);
|
|
|
|
titleFontUnderlineCombo.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Line_Style")); |
|
|
|
// titleFontUnderlineCombo.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Line_Style"));
|
|
|
|
|
|
|
|
|
|
|
|
titleInsetImagePane = new TitleInsetImagePane(); |
|
|
|
titleInsetImagePane = new TitleInsetImagePane(); |
|
|
|
|
|
|
|
|
|
|
@ -294,15 +294,15 @@ public class LayoutStylePane extends BasicBeanPane<LayoutBorderStyle> { |
|
|
|
|
|
|
|
|
|
|
|
JPanel containerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel containerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
containerPane.add(buttonPane, BorderLayout.NORTH); |
|
|
|
containerPane.add(buttonPane, BorderLayout.NORTH); |
|
|
|
containerPane.add(titleFontUnderlineCombo, BorderLayout.CENTER); |
|
|
|
// containerPane.add(titleFontUnderlineCombo, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
|
|
|
|
titleFontUnderlineCombo.setVisible(false); |
|
|
|
// titleFontUnderlineCombo.setVisible(false);
|
|
|
|
titleFontUnderlineButton.addChangeListener(new ChangeListener() { |
|
|
|
// titleFontUnderlineButton.addChangeListener(new ChangeListener() {
|
|
|
|
@Override |
|
|
|
// @Override
|
|
|
|
public void stateChanged(ChangeEvent e) { |
|
|
|
// public void stateChanged(ChangeEvent e) {
|
|
|
|
titleFontUnderlineCombo.setVisible(titleFontUnderlineButton.isSelected()); |
|
|
|
// titleFontUnderlineCombo.setVisible(titleFontUnderlineButton.isSelected());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
}); |
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
return containerPane; |
|
|
|
return containerPane; |
|
|
|
} |
|
|
|
} |
|
|
@ -349,7 +349,8 @@ public class LayoutStylePane extends BasicBeanPane<LayoutBorderStyle> { |
|
|
|
frFont = frFont.applyName(titleFontFamilyComboBox.getSelectedItem().toString()); |
|
|
|
frFont = frFont.applyName(titleFontFamilyComboBox.getSelectedItem().toString()); |
|
|
|
frFont = frFont.applyForeground(titleFontColorSelectPane.getColor()); |
|
|
|
frFont = frFont.applyForeground(titleFontColorSelectPane.getColor()); |
|
|
|
frFont = updateTitleFontItalicBold(frFont); |
|
|
|
frFont = updateTitleFontItalicBold(frFont); |
|
|
|
int line = titleFontUnderlineButton.isSelected() ? this.titleFontUnderlineCombo.getSelectedLineStyle() : Constants.LINE_NONE; |
|
|
|
// int line = titleFontUnderlineButton.isSelected() ? this.titleFontUnderlineCombo.getSelectedLineStyle() : Constants.LINE_NONE;
|
|
|
|
|
|
|
|
int line = titleFontUnderlineButton.isSelected() ? Constants.LINE_THIN : Constants.LINE_NONE; |
|
|
|
frFont = frFont.applyUnderline(line); |
|
|
|
frFont = frFont.applyUnderline(line); |
|
|
|
title.setFrFont(frFont); |
|
|
|
title.setFrFont(frFont); |
|
|
|
title.setPosition((Integer) titleAlignPane.getSelectedItem()); |
|
|
|
title.setPosition((Integer) titleAlignPane.getSelectedItem()); |
|
|
@ -425,11 +426,11 @@ public class LayoutStylePane extends BasicBeanPane<LayoutBorderStyle> { |
|
|
|
int line = frFont.getUnderline(); |
|
|
|
int line = frFont.getUnderline(); |
|
|
|
if (line == Constants.LINE_NONE) { |
|
|
|
if (line == Constants.LINE_NONE) { |
|
|
|
titleFontUnderlineButton.setSelected(false); |
|
|
|
titleFontUnderlineButton.setSelected(false); |
|
|
|
titleFontUnderlineCombo.setVisible(false); |
|
|
|
// titleFontUnderlineCombo.setVisible(false);
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
titleFontUnderlineButton.setSelected(true); |
|
|
|
titleFontUnderlineButton.setSelected(true); |
|
|
|
titleFontUnderlineCombo.setVisible(true); |
|
|
|
// titleFontUnderlineCombo.setVisible(true);
|
|
|
|
this.titleFontUnderlineCombo.setSelectedLineStyle(line); |
|
|
|
// this.titleFontUnderlineCombo.setSelectedLineStyle(line);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
titleAlignPane.setSelectedItem(widgetTitle.getPosition()); |
|
|
|
titleAlignPane.setSelectedItem(widgetTitle.getPosition()); |
|
|
|