use of com.kendy.interfaces.Entity in project financial by greatkendy123.
the class MyController method bindCellValue.
/**
* kendy:绑定数据域
* @param colums TableColumn 可变参数
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void bindCellValue(TableColumn<? extends Entity, String>... colums) {
try {
for (TableColumn column : colums) {
String fxId = column.getId();
column.setCellValueFactory(new PropertyValueFactory<Entity, String>(fxId));
column.setStyle("-fx-alignment: CENTER;");
// 禁止排序
column.setSortable(false);
}
} catch (Exception e) {
throw new RuntimeException("小林:绑定列值失败");
}
}
use of com.kendy.interfaces.Entity in project financial by greatkendy123.
the class LMController method bindCellValue.
/**
* kendy:绑定数据域
* @param colums TableColumn 可变参数
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
private void bindCellValue(TableColumn<? extends Entity, String>... colums) {
try {
for (TableColumn column : colums) {
String fxId = column.getId();
column.setCellValueFactory(new PropertyValueFactory<Entity, String>(fxId));
column.setStyle("-fx-alignment: CENTER;");
// 禁止排序
column.setSortable(false);
}
} catch (Exception e) {
throw new RuntimeException("小林:绑定列值失败");
}
}
use of com.kendy.interfaces.Entity in project financial by greatkendy123.
the class QuotaController method bindCellValue.
/**
* kendy:绑定数据域
* @param colums TableColumn 可变参数
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
private void bindCellValue(TableColumn<? extends Entity, String>... colums) {
try {
for (TableColumn column : colums) {
String fxId = column.getId();
column.setCellValueFactory(new PropertyValueFactory<Entity, String>(fxId));
column.setStyle("-fx-alignment: CENTER;");
// 禁止排序
column.setSortable(false);
}
} catch (Exception e) {
String errMsg = "小林:绑定列值失败";
log.error(errMsg);
throw new RuntimeException(errMsg);
}
}
Aggregations