|
|
@ -317,8 +317,8 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
Constants.LINE_THICK, //3px
|
|
|
|
Constants.LINE_THICK, //3px
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public final static String[] BORDER_TYPE = new String[]{com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Standard"), com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Custom")}; |
|
|
|
public final static String[] BORDER_TYPE = new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Standard"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Custom")}; |
|
|
|
public final static String[] BORDER_STYLE= new String[]{com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Common"), com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Shadow")}; |
|
|
|
public final static String[] BORDER_STYLE= new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Common"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Shadow")}; |
|
|
|
|
|
|
|
|
|
|
|
private final static Dimension BUTTON_SIZE = new Dimension(24, 20); |
|
|
|
private final static Dimension BUTTON_SIZE = new Dimension(24, 20); |
|
|
|
|
|
|
|
|
|
|
@ -335,7 +335,7 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
defaultPane.add(centerPane, BorderLayout.CENTER); |
|
|
|
defaultPane.add(centerPane, BorderLayout.CENTER); |
|
|
|
centerPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Preview"), null)); |
|
|
|
centerPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Preview"), null)); |
|
|
|
|
|
|
|
|
|
|
|
JPanel borderPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel borderPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
centerPane.add(borderPane, BorderLayout.CENTER); |
|
|
|
centerPane.add(borderPane, BorderLayout.CENTER); |
|
|
@ -381,23 +381,23 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
double[] columnSize = { p, MAX_WIDTH}; |
|
|
|
double[] columnSize = { p, MAX_WIDTH}; |
|
|
|
JPanel rightTopContentPane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
|
JPanel rightTopContentPane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
|
getBorderTypeComp(), |
|
|
|
getBorderTypeComp(), |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Render_Style")), borderStyleCombo}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Render_Style")), borderStyleCombo}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Border_Line")), currentLineCombo}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Border_Line")), currentLineCombo}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Border_Color")), buttonPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Border_Color")), buttonPane}, |
|
|
|
getBorderCornerSpinnerComp(), |
|
|
|
getBorderCornerSpinnerComp(), |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Body_Background")), backgroundPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget-Style_Body_Background")), backgroundPane}, |
|
|
|
{new UILabel(""),new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Alpha"))}, |
|
|
|
{new UILabel(""),new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget-Style_Alpha"))}, |
|
|
|
{new UILabel(""),transparencyPane}, |
|
|
|
{new UILabel(""),transparencyPane}, |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
rightTopContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 12)); |
|
|
|
rightTopContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 12)); |
|
|
|
UIScrollPane rightTopPane = new UIScrollPane(rightTopContentPane); |
|
|
|
UIScrollPane rightTopPane = new UIScrollPane(rightTopContentPane); |
|
|
|
rightTopPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Frame"),null)); |
|
|
|
rightTopPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Frame"),null)); |
|
|
|
rightTopPane.setPreferredSize(rightTopPane.getPreferredSize()); |
|
|
|
rightTopPane.setPreferredSize(rightTopPane.getPreferredSize()); |
|
|
|
return rightTopPane; |
|
|
|
return rightTopPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected JComponent[] getBorderTypeComp(){ |
|
|
|
protected JComponent[] getBorderTypeComp(){ |
|
|
|
return new JComponent[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Frame_Style")), borderTypeCombo}; |
|
|
|
return new JComponent[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Frame_Style")), borderTypeCombo}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected JComponent[] getBorderCornerSpinnerComp(){ |
|
|
|
protected JComponent[] getBorderCornerSpinnerComp(){ |
|
|
@ -438,14 +438,14 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
double[] rowSize = {p,p,p}; |
|
|
|
double[] rowSize = {p,p,p}; |
|
|
|
double[] columnSize = { p, f}; |
|
|
|
double[] columnSize = { p, f}; |
|
|
|
JPanel rightTopContentPane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
|
JPanel rightTopContentPane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Body_Background")), backgroundPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget-Style_Body_Background")), backgroundPane}, |
|
|
|
{new UILabel(""),new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Alpha"))}, |
|
|
|
{new UILabel(""),new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget-Style_Alpha"))}, |
|
|
|
{new UILabel(""),transparencyPane}, |
|
|
|
{new UILabel(""),transparencyPane}, |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
rightTopContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 6)); |
|
|
|
rightTopContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 6)); |
|
|
|
JPanel bodyRightTopPane =FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel bodyRightTopPane =FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
bodyRightTopPane.add(rightTopContentPane,BorderLayout.CENTER); |
|
|
|
bodyRightTopPane.add(rightTopContentPane,BorderLayout.CENTER); |
|
|
|
bodyRightTopPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Frame"),null)); |
|
|
|
bodyRightTopPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Frame"),null)); |
|
|
|
return bodyRightTopPane; |
|
|
|
return bodyRightTopPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -463,8 +463,8 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_right_normal.png"),}; |
|
|
|
BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_right_normal.png"),}; |
|
|
|
Integer[] hAlignment = new Integer[]{Constants.LEFT, Constants.CENTER, Constants.RIGHT}; |
|
|
|
Integer[] hAlignment = new Integer[]{Constants.LEFT, Constants.CENTER, Constants.RIGHT}; |
|
|
|
hAlignmentPane = new UIButtonGroup<Integer>(hAlignmentIconArray, hAlignment); |
|
|
|
hAlignmentPane = new UIButtonGroup<Integer>(hAlignmentIconArray, hAlignment); |
|
|
|
hAlignmentPane.setAllToolTips(new String[]{com.fr.design.i18n.Toolkit.i18nText("FR-Designer-StyleAlignment_Left") |
|
|
|
hAlignmentPane.setAllToolTips(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_FormStyleAlignment_Left") |
|
|
|
, com.fr.design.i18n.Toolkit.i18nText("FR-Designer-StyleAlignment_Center"), com.fr.design.i18n.Toolkit.i18nText("FR-Designer-StyleAlignment_Right")}); |
|
|
|
, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_StyleAlignment_Center"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_StyleAlignment_Right")}); |
|
|
|
JPanel hPaneContainer = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
JPanel hPaneContainer = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
hPaneContainer.add(hAlignmentPane); |
|
|
|
hPaneContainer.add(hAlignmentPane); |
|
|
|
|
|
|
|
|
|
|
@ -475,15 +475,15 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
double[] columnSize = { p, MAX_WIDTH}; |
|
|
|
double[] columnSize = { p, MAX_WIDTH}; |
|
|
|
|
|
|
|
|
|
|
|
JPanel rightBottomContentPane = TableLayoutHelper.createCommonTableLayoutPane( new JComponent[][]{ |
|
|
|
JPanel rightBottomContentPane = TableLayoutHelper.createCommonTableLayoutPane( new JComponent[][]{ |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Title_Content")), formulaPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Title_Content")), formulaPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Title_Format")), fontSizeTypePane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Title_Format")), fontSizeTypePane}, |
|
|
|
{new UILabel(""), initFontButtonPane()}, |
|
|
|
{new UILabel(""), initFontButtonPane()}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Alignment-Style")), hPaneContainer}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Alignment-Style")), hPaneContainer}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Title_Background")), titleBackgroundPane}, |
|
|
|
{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Title_Background")), titleBackgroundPane}, |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
}, rowSize, columnSize, 10); |
|
|
|
rightBottomContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 12)); |
|
|
|
rightBottomContentPane.setBorder(BorderFactory.createEmptyBorder(15, 12, 10, 12)); |
|
|
|
titlePane =new UIScrollPane(rightBottomContentPane); |
|
|
|
titlePane =new UIScrollPane(rightBottomContentPane); |
|
|
|
titlePane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Widget-Style_Title"),null)); |
|
|
|
titlePane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Title"),null)); |
|
|
|
titlePane.setVisible(false); |
|
|
|
titlePane.setVisible(false); |
|
|
|
return titlePane; |
|
|
|
return titlePane; |
|
|
|
} |
|
|
|
} |
|
|
@ -520,20 +520,20 @@ public class LayoutBorderPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void initAllNames() { |
|
|
|
protected void initAllNames() { |
|
|
|
fontNameComboBox.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Family")); |
|
|
|
fontNameComboBox.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Family")); |
|
|
|
fontSizeComboBox.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Size")); |
|
|
|
fontSizeComboBox.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Size")); |
|
|
|
colorSelectPane.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Foreground")); |
|
|
|
colorSelectPane.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Foreground")); |
|
|
|
italic.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Italic")); |
|
|
|
italic.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Italic")); |
|
|
|
bold.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Bold")); |
|
|
|
bold.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Bold")); |
|
|
|
underline.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Underline")); |
|
|
|
underline.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
underlineCombo.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Line_Style")); |
|
|
|
underlineCombo.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Line_Style")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void setToolTips() { |
|
|
|
protected void setToolTips() { |
|
|
|
colorSelectPane.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Foreground")); |
|
|
|
colorSelectPane.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Foreground")); |
|
|
|
italic.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Italic")); |
|
|
|
italic.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Italic")); |
|
|
|
bold.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Bold")); |
|
|
|
bold.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Bold")); |
|
|
|
underline.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FRFont_Underline")); |
|
|
|
underline.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FRFont_Underline")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|