|
|
|
@ -50,31 +50,9 @@ public class NumberEditorDefinePane extends FieldEditorDefinePane<NumberEditor>
|
|
|
|
|
return content; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void refreshExtraAdvancedPane() { |
|
|
|
|
extraPaneList.clear(); |
|
|
|
|
boolean containsExtraPane = false; |
|
|
|
|
Set<WidgetAdvancedPaneProvider<NumberEditor>> providers = ExtraDesignClassManager.getInstance().getArray(WidgetAdvancedPaneProvider.XML_TAG); |
|
|
|
|
for (WidgetAdvancedPaneProvider<NumberEditor> provider : providers) { |
|
|
|
|
if (!provider.accept(NumberEditor.class)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
insertShortCut(provider.getInsertPosition(extraPaneList.size()), provider.createExtraAdvancedPane()); |
|
|
|
|
containsExtraPane = true; |
|
|
|
|
} |
|
|
|
|
if (containsExtraPane) { |
|
|
|
|
extraPane = FRGUIPaneFactory.createYBoxEmptyBorderPane(); |
|
|
|
|
for (BasicBeanPane<NumberEditor> pane : extraPaneList) { |
|
|
|
|
extraPane.add(pane); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Font_Size"), SwingConstants.LEFT)} |
|
|
|
|
}; |
|
|
|
|
double[] rowSize = {P}; |
|
|
|
|
double[] columnSize = {P, F}; |
|
|
|
|
int[][] rowCount = {{1, 1}}; |
|
|
|
|
extraPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, IntervalConstants.INTERVAL_W1, IntervalConstants.INTERVAL_L1); |
|
|
|
|
} |
|
|
|
|
refreshExtraAdvancedPane(NumberEditor.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public JPanel setValidatePane() { |
|
|
|
|