|
|
@ -141,8 +141,8 @@ public class FormMultiWidgetCardPane extends FormWidgetCardPane { |
|
|
|
TableLayout.PREFERRED, |
|
|
|
TableLayout.PREFERRED, |
|
|
|
TableLayout.FILL |
|
|
|
TableLayout.FILL |
|
|
|
}; |
|
|
|
}; |
|
|
|
UITextField horizontalSpacingNumberField = createIntNumberField(false); |
|
|
|
UITextField horizontalSpacingNumberField = createIntNumberField(false, Toolkit.i18nText("Fine-Design_Multi_Selection_Manual_Horizontal_Spacing_Tip")); |
|
|
|
UITextField verticalSpacingNumberField = createIntNumberField(true); |
|
|
|
UITextField verticalSpacingNumberField = createIntNumberField(true, Toolkit.i18nText("Fine-Design_Multi_Selection_Manual_Vertical_Spacing_Tip")); |
|
|
|
Component[][] components = new Component[][] { |
|
|
|
Component[][] components = new Component[][] { |
|
|
|
new Component[] { |
|
|
|
new Component[] { |
|
|
|
new UILabel(IOUtils.readIcon("/com/fr/design/images/buttonicon/multi_selection_horizontal_spacing.png")), |
|
|
|
new UILabel(IOUtils.readIcon("/com/fr/design/images/buttonicon/multi_selection_horizontal_spacing.png")), |
|
|
@ -157,8 +157,9 @@ public class FormMultiWidgetCardPane extends FormWidgetCardPane { |
|
|
|
return createTitleLayout(Toolkit.i18nText("Fine-Design_Multi_Selection_Manual_Spacing"), centerPane); |
|
|
|
return createTitleLayout(Toolkit.i18nText("Fine-Design_Multi_Selection_Manual_Spacing"), centerPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private UINumberField createIntNumberField(boolean isVertical) { |
|
|
|
private UINumberField createIntNumberField(boolean isVertical, String tipText) { |
|
|
|
final UINumberField numberField = new UINumberField(); |
|
|
|
final UINumberField numberField = new UINumberField(); |
|
|
|
|
|
|
|
numberField.setPlaceholder(tipText); |
|
|
|
numberField.addFocusListener(new FocusAdapter() { |
|
|
|
numberField.addFocusListener(new FocusAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void focusLost(FocusEvent e) { |
|
|
|
public void focusLost(FocusEvent e) { |
|
|
|