|
|
@ -49,7 +49,7 @@ import java.util.concurrent.ExecutionException; |
|
|
|
* @since 11.0 |
|
|
|
* @since 11.0 |
|
|
|
* Created on 2023/7/11 |
|
|
|
* Created on 2023/7/11 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public abstract class AbstractTablePane<T extends TableEntity> extends BasicPane { |
|
|
|
public abstract class AbstractSupportSelectTablePane<T extends TableEntity> extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
public static final Color DEFAULT_HEADER_COLOR = new Color(232, 232, 233); |
|
|
|
public static final Color DEFAULT_HEADER_COLOR = new Color(232, 232, 233); |
|
|
|
public static final Color DEFAULT_SELECT_TABLE_ROW_COLOR = new ColorUIResource(200, 221, 233); |
|
|
|
public static final Color DEFAULT_SELECT_TABLE_ROW_COLOR = new ColorUIResource(200, 221, 233); |
|
|
@ -86,7 +86,7 @@ public abstract class AbstractTablePane<T extends TableEntity> extends BasicPane |
|
|
|
protected TableValueOperator<T> operator; |
|
|
|
protected TableValueOperator<T> operator; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AbstractTablePane(String title, TableValueOperator<T> operators, String[] tableNames, boolean needBorder) { |
|
|
|
public AbstractSupportSelectTablePane(String title, TableValueOperator<T> operators, String[] tableNames, boolean needBorder) { |
|
|
|
this.operator = operators; |
|
|
|
this.operator = operators; |
|
|
|
this.model = new DefaultModel(tableNames, new Class[]{ |
|
|
|
this.model = new DefaultModel(tableNames, new Class[]{ |
|
|
|
Boolean.class, |
|
|
|
Boolean.class, |
|
|
@ -99,7 +99,7 @@ public abstract class AbstractTablePane<T extends TableEntity> extends BasicPane |
|
|
|
init(title, needBorder); |
|
|
|
init(title, needBorder); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AbstractTablePane(String title, TableValueOperator<T> operators, boolean needBorder) { |
|
|
|
public AbstractSupportSelectTablePane(String title, TableValueOperator<T> operators, boolean needBorder) { |
|
|
|
this.operator = operators; |
|
|
|
this.operator = operators; |
|
|
|
init(title, needBorder); |
|
|
|
init(title, needBorder); |
|
|
|
} |
|
|
|
} |