|
|
@ -5,6 +5,7 @@ package com.fr.design.style; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.Style; |
|
|
|
import com.fr.base.Style; |
|
|
|
|
|
|
|
import com.fr.design.border.UITitledBorder; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.gui.ibutton.UIRadioButton; |
|
|
|
import com.fr.design.gui.ibutton.UIRadioButton; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
@ -86,7 +87,7 @@ public class AlignmentPane extends BasicPane { |
|
|
|
//richer:文本控制和图片布局
|
|
|
|
//richer:文本控制和图片布局
|
|
|
|
JPanel textDirectionPanel = FRGUIPaneFactory.createY_AXISBoxInnerContainer_S_Pane(); |
|
|
|
JPanel textDirectionPanel = FRGUIPaneFactory.createY_AXISBoxInnerContainer_S_Pane(); |
|
|
|
contentPane.add(textDirectionPanel); |
|
|
|
contentPane.add(textDirectionPanel); |
|
|
|
textDirectionPanel.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation"), null)); |
|
|
|
textDirectionPanel.setBorder(UITitledBorder.createBorderWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation"))); |
|
|
|
JPanel isVerticalTextPanel = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane(); |
|
|
|
JPanel isVerticalTextPanel = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane(); |
|
|
|
textDirectionPanel.add(isVerticalTextPanel); |
|
|
|
textDirectionPanel.add(isVerticalTextPanel); |
|
|
|
initVerticalPane(isVerticalTextPanel); |
|
|
|
initVerticalPane(isVerticalTextPanel); |
|
|
@ -131,7 +132,7 @@ public class AlignmentPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private void initSpacingPane (JPanel spacingPane) { |
|
|
|
private void initSpacingPane (JPanel spacingPane) { |
|
|
|
spacingPane.setLayout(new GridLayout(1, 3)); |
|
|
|
spacingPane.setLayout(new GridLayout(1, 3)); |
|
|
|
spacingPane.setBorder(BorderFactory.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Style_Spacing") + ":")); |
|
|
|
spacingPane.setBorder(UITitledBorder.createBorderWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Style_Spacing") + ":")); |
|
|
|
|
|
|
|
|
|
|
|
spacingBeforeSpinner = new UIBasicSpinner(new SpinnerNumberModel(new Integer(0), new Integer(0), null, new Integer(1))); |
|
|
|
spacingBeforeSpinner = new UIBasicSpinner(new SpinnerNumberModel(new Integer(0), new Integer(0), null, new Integer(1))); |
|
|
|
spacingBeforeSpinner.addChangeListener(changeListener); |
|
|
|
spacingBeforeSpinner.addChangeListener(changeListener); |
|
|
@ -153,7 +154,7 @@ public class AlignmentPane extends BasicPane { |
|
|
|
private JPanel getIndentPane() { |
|
|
|
private JPanel getIndentPane() { |
|
|
|
JPanel indentPane = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane(); |
|
|
|
JPanel indentPane = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane(); |
|
|
|
|
|
|
|
|
|
|
|
indentPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Sytle_Indentation"), null)); |
|
|
|
indentPane.setBorder(UITitledBorder.createBorderWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Sytle_Indentation"))); |
|
|
|
Comparable maximum = null; |
|
|
|
Comparable maximum = null; |
|
|
|
leftIndentSpinner = new UIBasicSpinner(new SpinnerNumberModel(new Integer(0), new Integer(0), maximum, new Integer(1))); |
|
|
|
leftIndentSpinner = new UIBasicSpinner(new SpinnerNumberModel(new Integer(0), new Integer(0), maximum, new Integer(1))); |
|
|
|
leftIndentSpinner.addChangeListener(changeListener); |
|
|
|
leftIndentSpinner.addChangeListener(changeListener); |
|
|
|