no message
This commit is contained in:
@@ -73,6 +73,10 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
protected String[] getUIColumnNames() {
|
||||
return new String[]{};
|
||||
}
|
||||
//---------для отображения.
|
||||
protected Object getFieldAt(D object, int coulmnIndex) {
|
||||
return null;
|
||||
}
|
||||
public void SaveColumns() {
|
||||
if (MainModule_.instance.getDb() != null) {
|
||||
try {
|
||||
@@ -115,14 +119,14 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
protected Comparator getDefaultComparator() {
|
||||
return null;
|
||||
}
|
||||
public boolean isObjectVisible(D object){
|
||||
public boolean isObjectVisible(D object) {
|
||||
return ApplyFilters(object);
|
||||
}
|
||||
Vector<Object> getVisibleKeys() {
|
||||
Comparator comparator = getDefaultComparator();
|
||||
Vector<Object> res_keys = new Vector<>();
|
||||
if (comparator == null) {
|
||||
for (D object: dataSource.Data.values()){
|
||||
for (D object : dataSource.Data.values()) {
|
||||
if (isObjectVisible(object))
|
||||
res_keys.add(object.getPK());
|
||||
}
|
||||
@@ -149,10 +153,10 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
Object key = data.get(rowIndex);
|
||||
if (columnIndex == 0)
|
||||
return key;
|
||||
DBObject object = dataSource.get((key));
|
||||
D object = dataSource.get((key));
|
||||
if ((columnIndex == 1) && hasCheckBox())
|
||||
return object.isSelected();
|
||||
return object.getFieldAt(columnIndex); //dataSource.getFieldAt(object, columnIndex);
|
||||
return getFieldAt(object, columnIndex);
|
||||
}
|
||||
@Override
|
||||
public boolean isCellEditable(int row, int col) {
|
||||
|
||||
Reference in New Issue
Block a user