|
|
@ -32,6 +32,7 @@ public abstract class AbstractPropertyTable extends JTable { |
|
|
|
public static final Color PROPERTY_SELECTION_BACKGROUND = new Color(153, 204, 255); |
|
|
|
public static final Color PROPERTY_SELECTION_BACKGROUND = new Color(153, 204, 255); |
|
|
|
// 属性表的行高
|
|
|
|
// 属性表的行高
|
|
|
|
public static final int PROPERTY_TABLE_ROW_HEIGHT = 22; |
|
|
|
public static final int PROPERTY_TABLE_ROW_HEIGHT = 22; |
|
|
|
|
|
|
|
private static final int PROPERTY_ICON_WIDTH = 10; |
|
|
|
|
|
|
|
|
|
|
|
public AbstractPropertyTable() { |
|
|
|
public AbstractPropertyTable() { |
|
|
|
this.setTableProperties(); |
|
|
|
this.setTableProperties(); |
|
|
@ -180,7 +181,7 @@ public abstract class AbstractPropertyTable extends JTable { |
|
|
|
int row = AbstractPropertyTable.super.rowAtPoint(e.getPoint()); |
|
|
|
int row = AbstractPropertyTable.super.rowAtPoint(e.getPoint()); |
|
|
|
if (row != -1) { |
|
|
|
if (row != -1) { |
|
|
|
Point pIndex = getGroupIndex(row); |
|
|
|
Point pIndex = getGroupIndex(row); |
|
|
|
if (pIndex.y == 0 && e.getClickCount() == 1 && e.getX() < 10) { |
|
|
|
if (pIndex.y == 0 && e.getClickCount() == 1 && e.getX() < PROPERTY_ICON_WIDTH) { |
|
|
|
toggleCollapse(pIndex.x); |
|
|
|
toggleCollapse(pIndex.x); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|