Subversion Repositories Projects

Rev

Rev 1564 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1564 Rev 1566
1
package dongfang.mkt.frames;
1
package dongfang.mkt.frames;
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
-
 
4
 
-
 
5
import dongfang.mkt.RequestFrameVisitor;
4
 
6
 
5
 
7
 
6
public class AllDisplaysRequestFrame extends RequestFrame {
8
public class AllDisplaysRequestFrame extends RequestFrame {
7
        public enum PAGEORDER {
9
        public enum PAGEORDER {
8
                STAY(0), BACKWARD(1), FORWARD(2), RESET(3);
10
                STAY(0), BACKWARD(1), FORWARD(2), RESET(3);
9
 
11
 
10
                int remoteKeys;
12
                int remoteKeys;
11
 
13
 
12
                PAGEORDER(int remoteKeys) {
14
                PAGEORDER(int remoteKeys) {
13
                        this.remoteKeys = remoteKeys;
15
                        this.remoteKeys = remoteKeys;
14
                }
16
                }
15
               
17
               
16
                public int getRemoteKeys() {
18
                public int getRemoteKeys() {
17
                        return remoteKeys;
19
                        return remoteKeys;
18
                }
20
                }
19
        }
21
        }
20
       
22
       
21
        private PAGEORDER pageOrder;
23
        private PAGEORDER pageOrder;
22
        private int autoSendInterval;
24
        private int autoSendInterval;
23
 
25
 
24
        AllDisplaysRequestFrame(int address) {
26
        AllDisplaysRequestFrame(int address) {
25
                super(address);
27
                super(address);
26
        }
28
        }
27
 
29
 
28
        @Override
30
        @Override
29
        public void accept(RequestFrameVisitor o) throws IOException {
31
        public void accept(RequestFrameVisitor o) throws IOException {
30
                o.visit(this);
32
                o.visit(this);
31
        }
33
        }
32
 
34
 
33
        public PAGEORDER getPageOrder() {
35
        public PAGEORDER getPageOrder() {
34
                return pageOrder;
36
                return pageOrder;
35
        }
37
        }
36
 
38
 
37
        public void setPageOrder(PAGEORDER pageOrder) {
39
        public void setPageOrder(PAGEORDER pageOrder) {
38
                this.pageOrder = pageOrder;
40
                this.pageOrder = pageOrder;
39
        }
41
        }
40
       
42
       
41
        public int getAutoSendInterval() {
43
        public int getAutoSendInterval() {
42
                return autoSendInterval;
44
                return autoSendInterval;
43
        }
45
        }
44
 
46
 
45
        public void setAutoSendInterval(int autoSendInterval) {
47
        public void setAutoSendInterval(int autoSendInterval) {
46
                this.autoSendInterval = autoSendInterval;
48
                this.autoSendInterval = autoSendInterval;
47
        }
49
        }
48
}
50
}
49
 
51