|
|
@ -13,9 +13,9 @@ import com.fr.stable.StringUtils; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by shine on 2019/5/16. |
|
|
|
* Created by shine on 2019/5/16. |
|
|
@ -31,9 +31,21 @@ public abstract class AbstractCellDataFieldsPane<T extends AbstractColumnFieldCo |
|
|
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
|
|
|
|
|
|
|
|
this.add(createNorthPane(), BorderLayout.NORTH); |
|
|
|
JPanel north = createNorthPane(), |
|
|
|
this.add(createCenterPane(), BorderLayout.CENTER); |
|
|
|
center = createCenterPane(), |
|
|
|
this.add(createSouthPane(), BorderLayout.SOUTH); |
|
|
|
south = createSouthPane(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (north != null) { |
|
|
|
|
|
|
|
this.add(north, BorderLayout.NORTH); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (center != null) { |
|
|
|
|
|
|
|
this.add(center, BorderLayout.CENTER); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (south != null) { |
|
|
|
|
|
|
|
this.add(south, BorderLayout.SOUTH); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 8)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 8)); |
|
|
|
} |
|
|
|
} |
|
|
@ -53,7 +65,6 @@ public abstract class AbstractCellDataFieldsPane<T extends AbstractColumnFieldCo |
|
|
|
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPanes[i]}; |
|
|
|
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPanes[i]}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double[] columnSize = {ChartDataPane.LABEL_WIDTH, 124}; |
|
|
|
double[] columnSize = {ChartDataPane.LABEL_WIDTH, 124}; |
|
|
|
double[] rowSize = new double[len]; |
|
|
|
double[] rowSize = new double[len]; |
|
|
@ -64,11 +75,11 @@ public abstract class AbstractCellDataFieldsPane<T extends AbstractColumnFieldCo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected JPanel createNorthPane() { |
|
|
|
protected JPanel createNorthPane() { |
|
|
|
return new JPanel(); |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected JPanel createSouthPane() { |
|
|
|
protected JPanel createSouthPane() { |
|
|
|
return new JPanel(); |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected Component[] fieldComponents() { |
|
|
|
protected Component[] fieldComponents() { |
|
|
|