OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 112 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 112 Rev 150
Line 14... Line 14...
14
import org.openconcerto.sql.model.SQLTable;
14
import org.openconcerto.sql.model.SQLTable;
15
import org.openconcerto.sql.model.SQLTableEvent;
15
import org.openconcerto.sql.model.SQLTableEvent;
16
import org.openconcerto.sql.model.SQLTableModifiedListener;
16
import org.openconcerto.sql.model.SQLTableModifiedListener;
17
import org.openconcerto.ui.list.CheckListItem;
17
import org.openconcerto.ui.list.CheckListItem;
18
 
18
 
19
public class OperationStateListModel extends CheckListModel {
19
public class OperationStateListModel extends CheckListModel<String> {
20
    private static List<String> lCache = null;
20
    private static List<String> lCache = null;
21
 
21
 
22
    OperationStateListModel() {
22
    OperationStateListModel() {
-
 
23
        super(String.class);
23
        final DBRoot r = ComptaPropsConfiguration.getInstanceCompta().getRootSociete();
24
        final DBRoot r = ComptaPropsConfiguration.getInstanceCompta().getRootSociete();
24
        final SQLTable operationTable = r.getTable(ModuleOperation.TABLE_OPERATION);
25
        final SQLTable operationTable = r.getTable(ModuleOperation.TABLE_OPERATION);
25
        operationTable.addTableModifiedListener(new SQLTableModifiedListener() {
26
        operationTable.addTableModifiedListener(new SQLTableModifiedListener() {
26
 
27
 
27
            @Override
28
            @Override