|
|
@ -35,6 +35,7 @@ public abstract class ButtonDefinePane<T extends Button> extends AbstractDataMod |
|
|
|
protected UITextField labelNameTextField; |
|
|
|
protected UITextField labelNameTextField; |
|
|
|
private final List<BasicBeanPane<T>> extraPaneList = new ArrayList<>(); |
|
|
|
private final List<BasicBeanPane<T>> extraPaneList = new ArrayList<>(); |
|
|
|
private JPanel extraPane; |
|
|
|
private JPanel extraPane; |
|
|
|
|
|
|
|
protected boolean containsExtraPane; |
|
|
|
|
|
|
|
|
|
|
|
public ButtonDefinePane(XCreator creator){ |
|
|
|
public ButtonDefinePane(XCreator creator){ |
|
|
|
super(creator); |
|
|
|
super(creator); |
|
|
@ -63,7 +64,7 @@ public abstract class ButtonDefinePane<T extends Button> extends AbstractDataMod |
|
|
|
|
|
|
|
|
|
|
|
private void refreshAdvancedPane() { |
|
|
|
private void refreshAdvancedPane() { |
|
|
|
extraPaneList.clear(); |
|
|
|
extraPaneList.clear(); |
|
|
|
boolean containsExtraPane = false; |
|
|
|
containsExtraPane = false; |
|
|
|
Set<WidgetAdvancedPaneProvider<T>> providers = ExtraDesignClassManager.getInstance().getArray(WidgetAdvancedPaneProvider.XML_TAG); |
|
|
|
Set<WidgetAdvancedPaneProvider<T>> providers = ExtraDesignClassManager.getInstance().getArray(WidgetAdvancedPaneProvider.XML_TAG); |
|
|
|
for (WidgetAdvancedPaneProvider<T> provider : providers) { |
|
|
|
for (WidgetAdvancedPaneProvider<T> provider : providers) { |
|
|
|
if (!provider.accept(creator)) { |
|
|
|
if (!provider.accept(creator)) { |
|
|
@ -78,8 +79,6 @@ public abstract class ButtonDefinePane<T extends Button> extends AbstractDataMod |
|
|
|
private void refreshAdvancedPane(boolean containsExtraPane) { |
|
|
|
private void refreshAdvancedPane(boolean containsExtraPane) { |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
Component[] backgroundCompPane = createBackgroundComp(); |
|
|
|
|
|
|
|
Component[] frFont = createFontPane(); |
|
|
|
|
|
|
|
double[] rowSize; |
|
|
|
double[] rowSize; |
|
|
|
double[] columnSize; |
|
|
|
double[] columnSize; |
|
|
|
int[][] rowCount; |
|
|
|
int[][] rowCount; |
|
|
@ -94,6 +93,8 @@ public abstract class ButtonDefinePane<T extends Button> extends AbstractDataMod |
|
|
|
rowCount = new int[][]{{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
rowCount = new int[][]{{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
n_components = getExtraAdvancedComponents(panel); |
|
|
|
n_components = getExtraAdvancedComponents(panel); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
Component[] backgroundCompPane = createBackgroundComp(); |
|
|
|
|
|
|
|
Component[] frFont = createFontPane(); |
|
|
|
rowSize = new double[]{p, p, p, p, p, p, p, p}; |
|
|
|
rowSize = new double[]{p, p, p, p, p, p, p, p}; |
|
|
|
columnSize = new double[]{p, f}; |
|
|
|
columnSize = new double[]{p, f}; |
|
|
|
rowCount = new int[][]{{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
rowCount = new int[][]{{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|