1
2
3
4
5
6
7
8
9
10
11 package com.jsql.view.swing.interaction;
12
13 import com.jsql.model.bean.database.AbstractElementDatabase;
14 import com.jsql.view.interaction.InteractionCommand;
15 import com.jsql.view.swing.util.MediatorHelper;
16
17
18
19
20 public class UpdateProgress implements InteractionCommand {
21
22
23
24
25 private final AbstractElementDatabase dataElementDatabase;
26
27
28
29
30 private final int dataCount;
31
32
33
34
35 public UpdateProgress(Object[] interactionParams) {
36
37 this.dataElementDatabase = (AbstractElementDatabase) interactionParams[0];
38 this.dataCount = (Integer) interactionParams[1];
39 }
40
41 @Override
42 public void execute() {
43 MediatorHelper.treeDatabase().updateProgress(this.dataElementDatabase, this.dataCount);
44 }
45 }