окончательное разделение таблицы и функционала видимой ее формы
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
package _VisualDVM.ProjectData.Files;
|
||||
import Common.Database.Tables.DBTable;
|
||||
|
||||
import java.util.Vector;
|
||||
import java.util.stream.Collectors;
|
||||
public class FilesDBTable extends DBTable<String, DBProjectFile> {
|
||||
public FilesDBTable() {
|
||||
super(String.class, DBProjectFile.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "файл";
|
||||
//todo временно.когда появится общий предок у таблиц и деревьев назначать дерево как createUI
|
||||
public int getSelectedCount() {
|
||||
return (int) Data.values().stream().filter(d -> d.isSelected()).count();
|
||||
}
|
||||
public Vector<DBProjectFile> getSelectedItems() {
|
||||
return Data.values().stream().filter(d -> d.isSelected()).collect(Collectors.toCollection(Vector::new));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user