|
|
|
@ -4,6 +4,8 @@ package com.fr.design.gui.style;
|
|
|
|
|
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.base.Style; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
@ -12,15 +14,13 @@ import com.fr.design.event.GlobalNameListener;
|
|
|
|
|
import com.fr.design.event.GlobalNameObserver; |
|
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
|
import com.fr.design.fun.IndentationUnitProcessor; |
|
|
|
|
import com.fr.design.gui.core.ReactiveCardPane; |
|
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButtonGroup; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
@ -39,35 +39,28 @@ import javax.swing.BorderFactory;
|
|
|
|
|
import javax.swing.Icon; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
import javax.swing.UIManager; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.CardLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.flex; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.fix; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Pane to edit cell alignment. |
|
|
|
|
*/ |
|
|
|
|
public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameObserver { |
|
|
|
|
private static final int ANGEL = 90; |
|
|
|
|
private static final int GAP = 23; |
|
|
|
|
private static final int VERGAP = 3; |
|
|
|
|
private static final Dimension SPINNER_DIMENSION = new Dimension(75, 20); |
|
|
|
|
private static final String[] TEXT = {Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Wrap_Text"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Single_Line"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Single_Line(Adjust_Font)"), Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Multi_Line(Adjust_Font)")}; |
|
|
|
|
|
|
|
|
|
private static final String[] LAYOUT = {Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Layout_Default"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Layout_Image_Titled"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Layout_Image_Extend"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Layout_Image_Adjust")}; |
|
|
|
|
|
|
|
|
|
private JPanel hPaneContainer; |
|
|
|
|
private JPanel vPaneContainer; |
|
|
|
|
private JPanel rotationBarCC; |
|
|
|
|
private JPanel basicPane; |
|
|
|
|
private JPanel seniorPane; |
|
|
|
|
private ReactiveCardPane rotationBarPane; |
|
|
|
|
|
|
|
|
|
private UIComboBox textComboBox; |
|
|
|
|
private UIComboBox textRotationComboBox; |
|
|
|
@ -95,8 +88,9 @@ public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameO
|
|
|
|
|
protected void initComponents() { |
|
|
|
|
textComboBox = new UIComboBox(TEXT); |
|
|
|
|
imageLayoutComboBox = new UIComboBox(LAYOUT); |
|
|
|
|
initTextRotationCombox(); |
|
|
|
|
initTextRotationComboBox(); |
|
|
|
|
|
|
|
|
|
// todo: 换新图标及反白问题
|
|
|
|
|
Icon[][] hAlignmentIconArray = {{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_left_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_left_normal_white.png")}, |
|
|
|
|
{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_center_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_center_normal_white.png")}, |
|
|
|
|
{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_right_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_right_normal_white.png")}, |
|
|
|
@ -106,9 +100,6 @@ public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameO
|
|
|
|
|
hAlignmentPane = new UIButtonGroup<>(hAlignmentIconArray, hAlignment); |
|
|
|
|
hAlignmentPane.setAllToolTips(new String[]{Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Tooltips_Left"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Tooltips_Center"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Tooltips_Right"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Tooltips_Distributed"), Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Tooltips_DEFAULT")}); |
|
|
|
|
hPaneContainer = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
|
vPaneContainer = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
|
|
|
|
|
|
Icon[][] vAlignmentIconArray = {{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_top_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_top_normal_white.png")}, |
|
|
|
|
{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_center_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_center_normal_white.png")}, |
|
|
|
|
{IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_down_normal.png"), IOUtils.readIcon("/com/fr/design/images/m_format/cellstyle/v_down_normal_white.png")}}; |
|
|
|
@ -146,8 +137,6 @@ public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameO
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initOtherComponent() { |
|
|
|
|
hPaneContainer.add(hAlignmentPane); |
|
|
|
|
vPaneContainer.add(vAlignmentPane); |
|
|
|
|
rotationPane = new UINumberDragPane(-ANGEL, ANGEL); |
|
|
|
|
|
|
|
|
|
leftIndentSpinner = new UISpinner(0, Integer.MAX_VALUE, 1, 0); |
|
|
|
@ -157,24 +146,11 @@ public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameO
|
|
|
|
|
spaceAfterSpinner = new UISpinner(0, Integer.MAX_VALUE, 1, 0); |
|
|
|
|
lineSpaceSpinner = new UISpinner(0, Integer.MAX_VALUE, 1, 0); |
|
|
|
|
|
|
|
|
|
rotationBarCC = new JPanel(new CardLayout()); |
|
|
|
|
rotationBarCC.add(rotationPane, "show"); |
|
|
|
|
rotationBarCC.add(new JPanel(), "hide"); |
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.add(createPane(), BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
textRotationComboBox.addItemListener(new ItemListener() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
|
CardLayout cc = (CardLayout) rotationBarCC.getLayout(); |
|
|
|
|
cc.show(rotationBarCC, textRotationComboBox.getSelectedIndex() == 0 ? "show" : "hide"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initTextRotationCombox() { |
|
|
|
|
private void initTextRotationComboBox() { |
|
|
|
|
ArrayList<String> selectOption = new ArrayList<>(); |
|
|
|
|
selectOption.add(Toolkit.i18nText("Fine-Design_Basic_Custom_Angle")); |
|
|
|
|
VerticalTextProcessor processor = ExtraClassManager.getInstance().getSingle(VerticalTextProcessor.XML_TAG, DefaultVerticalTextProcessor.class); |
|
|
|
@ -198,101 +174,118 @@ public class AlignmentPane extends AbstractBasicStylePane implements GlobalNameO
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createPane() { |
|
|
|
|
JPanel jp1 = new JPanel(new BorderLayout()); |
|
|
|
|
basicPane = new JPanel(); |
|
|
|
|
seniorPane = new JPanel(); |
|
|
|
|
basicPane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Basic"), 290, 24, basicPane()); |
|
|
|
|
seniorPane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Basic_Advanced"), 290, 24, seniorPane()); |
|
|
|
|
|
|
|
|
|
jp1.add(basicPane, BorderLayout.NORTH); |
|
|
|
|
jp1.add(seniorPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
return jp1; |
|
|
|
|
JPanel basicPane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Report_Basic"), 290, 24, basicPane()); |
|
|
|
|
JPanel seniorPane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Basic_Advanced"), 290, 24, seniorPane()); |
|
|
|
|
return Layouts.column( |
|
|
|
|
cell(basicPane), |
|
|
|
|
fix(1).with(it -> it.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, UIManager.getColor("defaultBorderColor")))), |
|
|
|
|
cell(seniorPane) |
|
|
|
|
).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel basicPane() { |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
UILabel horizontalLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Pane_Horizontal") + " ", SwingConstants.LEFT); |
|
|
|
|
UILabel verticalLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Pane_Vertical") + " ", SwingConstants.LEFT); |
|
|
|
|
UIComponentUtils.setLineWrap(horizontalLabel); |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{horizontalLabel, hPaneContainer}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Pane_Vertical") + " ", SwingConstants.RIGHT), vPaneContainer}, |
|
|
|
|
new Component[]{null, null} |
|
|
|
|
}; |
|
|
|
|
double[] rowSize = {p, p, p, p, p, p}; |
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
UIComponentUtils.setLineWrap(verticalLabel); |
|
|
|
|
return Layouts.column(LayoutConstants.VERTICAL_GAP, |
|
|
|
|
row( |
|
|
|
|
cell(horizontalLabel).weight(1.2), |
|
|
|
|
cell(hAlignmentPane).weight(3)), |
|
|
|
|
row( |
|
|
|
|
cell(verticalLabel).weight(1.2), |
|
|
|
|
cell(vAlignmentPane).weight(1.8), |
|
|
|
|
flex(1.2)) |
|
|
|
|
).with(it -> it.setBorder(new ScaledEmptyBorder(0, 0, LayoutConstants.VERTICAL_GAP, 0))).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel seniorPane() { |
|
|
|
|
JPanel senPane = new JPanel(new BorderLayout()); |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel((Toolkit.i18nText("Fine-Design_Basic_Image_Layout")) + " ", SwingConstants.LEFT), imageLayoutComboBox}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Text_Style") + " ", SwingConstants.LEFT), textComboBox}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation") + " ", SwingConstants.LEFT), textRotationComboBox}, |
|
|
|
|
new Component[]{null, rotationBarCC}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
}; |
|
|
|
|
double[] rowSize = {p, p, p, p, p, p, p, p}; |
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
JPanel tempPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
senPane.add(tempPane, BorderLayout.NORTH); |
|
|
|
|
senPane.add(seniorDownPane(), BorderLayout.CENTER); |
|
|
|
|
return senPane; |
|
|
|
|
return Layouts.column(LayoutConstants.VERTICAL_GAP, |
|
|
|
|
cell(seniorUpPane()), |
|
|
|
|
cell(seniorMiddlePane()), |
|
|
|
|
cell(seniorDownPane()) |
|
|
|
|
).getComponent(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel seniorDownPane() { |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
leftIndentSpinner.setPreferredSize(SPINNER_DIMENSION); |
|
|
|
|
rightIndentSpinner.setPreferredSize(SPINNER_DIMENSION); |
|
|
|
|
spaceBeforeSpinner.setPreferredSize(SPINNER_DIMENSION); |
|
|
|
|
spaceAfterSpinner.setPreferredSize(SPINNER_DIMENSION); |
|
|
|
|
lineSpaceSpinner.setPreferredSize(SPINNER_DIMENSION); |
|
|
|
|
|
|
|
|
|
JPanel indentationPane = new JPanel(new BorderLayout()); |
|
|
|
|
indentationPane.add(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Style_Indentation")), SwingConstants.LEFT)); |
|
|
|
|
indentationPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, GAP)); |
|
|
|
|
JPanel partSpacingPane = new JPanel(new BorderLayout()); |
|
|
|
|
partSpacingPane.add(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Style_Part_Spacing")), SwingConstants.LEFT)); |
|
|
|
|
partSpacingPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, GAP)); |
|
|
|
|
JPanel spacingPane = new JPanel(new BorderLayout()); |
|
|
|
|
spacingPane.add(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Line_Spacing")), SwingConstants.LEFT)); |
|
|
|
|
spacingPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, GAP)); |
|
|
|
|
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null, null}, |
|
|
|
|
new Component[]{indentationPane, creatSpinnerPane(leftIndentSpinner), creatSpinnerPane(rightIndentSpinner)}, |
|
|
|
|
new Component[]{null, new UILabel((Toolkit.i18nText("Fine-Design_Report_Left")), SwingConstants.CENTER), new UILabel((Toolkit.i18nText("Fine-Design_Basic_Right")), SwingConstants.CENTER)}, |
|
|
|
|
new Component[]{null, null, null}, |
|
|
|
|
new Component[]{null, null, null}, |
|
|
|
|
new Component[]{partSpacingPane, creatSpinnerPane(spaceBeforeSpinner), creatSpinnerPane(spaceAfterSpinner)}, |
|
|
|
|
new Component[]{null, new UILabel((Toolkit.i18nText("Fine-Design_Basic_Front")), SwingConstants.CENTER), new UILabel((Toolkit.i18nText("Fine-Design_Basic_Behind")), SwingConstants.CENTER)}, |
|
|
|
|
new Component[]{null, null, null}, |
|
|
|
|
new Component[]{null, null, null}, |
|
|
|
|
new Component[]{spacingPane, creatSpinnerPane(lineSpaceSpinner), null}, |
|
|
|
|
}; |
|
|
|
|
double[] rowSize = {p, p, p, p, p, p, p, p, p, p}; |
|
|
|
|
double[] columnSize = {p, f, f}; |
|
|
|
|
int[][] rowCount = {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}}; |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, VERGAP); |
|
|
|
|
private JPanel seniorUpPane() { |
|
|
|
|
return Layouts.column(LayoutConstants.VERTICAL_GAP, |
|
|
|
|
row( |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Image_Layout")), SwingConstants.LEFT)).weight(1.2), |
|
|
|
|
cell(imageLayoutComboBox).weight(3.0) |
|
|
|
|
), |
|
|
|
|
row( |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Text_Style")), SwingConstants.LEFT)).weight(1.2), |
|
|
|
|
cell(textComboBox).weight(3.0) |
|
|
|
|
) |
|
|
|
|
).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel creatSpinnerPane(Component comp) { |
|
|
|
|
JPanel jp = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane(); |
|
|
|
|
jp.add(comp); |
|
|
|
|
return jp; |
|
|
|
|
private JPanel seniorMiddlePane() { |
|
|
|
|
rotationBarPane = ReactiveCardPane.create() |
|
|
|
|
.addSupplier("hide", () -> Layouts.row( |
|
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation"), SwingConstants.LEFT)).weight(1.2), |
|
|
|
|
cell(textRotationComboBox).weight(3) |
|
|
|
|
).getComponent()) |
|
|
|
|
.addSupplier("show", () -> Layouts.column(LayoutConstants.VERTICAL_GAP, |
|
|
|
|
row( |
|
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation"), SwingConstants.LEFT)).weight(1.2), |
|
|
|
|
cell(textRotationComboBox).weight(3) |
|
|
|
|
), |
|
|
|
|
row( |
|
|
|
|
flex(1.2), |
|
|
|
|
cell(rotationPane).weight(3) |
|
|
|
|
) |
|
|
|
|
).getComponent()); |
|
|
|
|
rotationBarPane.select("show").populate(); |
|
|
|
|
|
|
|
|
|
textRotationComboBox.addItemListener(e -> { |
|
|
|
|
String key = (textRotationComboBox.getSelectedIndex() == 0) ? "show" : "hide"; |
|
|
|
|
rotationBarPane.select(key).populate(); |
|
|
|
|
}); |
|
|
|
|
return rotationBarPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel seniorDownPane() { |
|
|
|
|
UILabel indentationLabel = new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Style_Indentation")), SwingConstants.LEFT); |
|
|
|
|
UILabel partSpacingLabel = new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Alignment_Style_Part_Spacing")), SwingConstants.LEFT); |
|
|
|
|
UILabel spacingLabel = new UILabel((Toolkit.i18nText("Fine-Design_Basic_Style_Line_Spacing")), SwingConstants.LEFT); |
|
|
|
|
|
|
|
|
|
return Layouts.column( |
|
|
|
|
row( |
|
|
|
|
cell(indentationLabel).weight(1.2), |
|
|
|
|
cell(leftIndentSpinner).weight(1.4), |
|
|
|
|
flex(0.2), |
|
|
|
|
cell(rightIndentSpinner).weight(1.4) |
|
|
|
|
), |
|
|
|
|
fix(2), |
|
|
|
|
row( |
|
|
|
|
flex(1.2), |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Report_Left")), SwingConstants.CENTER)).weight(1.4), |
|
|
|
|
flex(0.2), |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Right")), SwingConstants.CENTER)).weight(1.4) |
|
|
|
|
), |
|
|
|
|
fix(10), |
|
|
|
|
row( |
|
|
|
|
cell(partSpacingLabel).weight(1.2), |
|
|
|
|
cell(spaceBeforeSpinner).weight(1.4), |
|
|
|
|
flex(0.2), |
|
|
|
|
cell(spaceAfterSpinner).weight(1.4) |
|
|
|
|
), |
|
|
|
|
fix(2), |
|
|
|
|
row( |
|
|
|
|
flex(1.2), |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Front")), SwingConstants.CENTER)).weight(1.4), |
|
|
|
|
flex(0.2), |
|
|
|
|
cell(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Behind")), SwingConstants.CENTER)).weight(1.4) |
|
|
|
|
), |
|
|
|
|
fix(10), |
|
|
|
|
row( |
|
|
|
|
cell(spacingLabel).weight(1.2), |
|
|
|
|
cell(lineSpaceSpinner).weight(1.4), |
|
|
|
|
flex(1.6) |
|
|
|
|
) |
|
|
|
|
).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|