|
|
|
@ -58,6 +58,9 @@ import java.util.Set;
|
|
|
|
|
public abstract class CellQuickEditor extends QuickEditor<ElementCasePane> { |
|
|
|
|
|
|
|
|
|
protected static final Dimension LABEL_DIMENSION = new Dimension(GraphHelper.getWidth(Toolkit.i18nText("Fine-Design_Report_Insert_Cell_Element")), 20); |
|
|
|
|
|
|
|
|
|
// 使用UILabel.getPreferredSize时,若文本为html高度被默认增加3
|
|
|
|
|
protected static final Dimension HIDDEN_LABEL_DIMENSION = new Dimension(0, -3); |
|
|
|
|
protected static final int VGAP = 10, HGAP = 8, VGAP_INNER = 3; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -67,7 +70,6 @@ public abstract class CellQuickEditor extends QuickEditor<ElementCasePane> {
|
|
|
|
|
private static final int CONTENT_PANE_WIDTH_GAP = 3; |
|
|
|
|
private static final int MOUSE_WHEEL_SPEED = 5; |
|
|
|
|
private static final int SCROLLBAR_WIDTH = 7; |
|
|
|
|
private final int HTML_SHIFT_HEIGHT = -3; |
|
|
|
|
private UILabel cellLabel; |
|
|
|
|
|
|
|
|
|
private int maxHeight = 280; |
|
|
|
@ -286,11 +288,10 @@ public abstract class CellQuickEditor extends QuickEditor<ElementCasePane> {
|
|
|
|
|
if (selectedOneCell) { |
|
|
|
|
columnRowTextField.setPreferredSize(null); |
|
|
|
|
cellLabel.setPreferredSize(null); |
|
|
|
|
// 使用UILabel.getPreferredSize时,若文本为html高度被默认增加3
|
|
|
|
|
multipleLabelTip.setPreferredSize(new Dimension(0, HTML_SHIFT_HEIGHT)); |
|
|
|
|
multipleLabelTip.setPreferredSize(HIDDEN_LABEL_DIMENSION); |
|
|
|
|
} else { |
|
|
|
|
columnRowTextField.setPreferredSize(new Dimension(0, HTML_SHIFT_HEIGHT)); |
|
|
|
|
cellLabel.setPreferredSize(new Dimension(0, HTML_SHIFT_HEIGHT)); |
|
|
|
|
columnRowTextField.setPreferredSize(HIDDEN_LABEL_DIMENSION); |
|
|
|
|
cellLabel.setPreferredSize(HIDDEN_LABEL_DIMENSION); |
|
|
|
|
multipleLabelTip.setPreferredSize(null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|