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 SingleDisplayRequestFrame extends RequestFrame { |
8 | public class SingleDisplayRequestFrame extends RequestFrame { |
7 | private boolean allLinesInOneFrame; |
9 | private boolean allLinesInOneFrame; |
8 | 10 | ||
9 | // private int autoSendInterval; |
11 | // private int autoSendInterval; |
10 | 12 | ||
11 | private int page; |
13 | private int page; |
12 | 14 | ||
13 | SingleDisplayRequestFrame(int address) { |
15 | SingleDisplayRequestFrame(int address) { |
14 | super(address); |
16 | super(address); |
15 | } |
17 | } |
16 | 18 | ||
17 | @Override |
19 | @Override |
18 | public void accept(RequestFrameVisitor o) throws IOException { |
20 | public void accept(RequestFrameVisitor o) throws IOException { |
19 | o.visit(this); |
21 | o.visit(this); |
20 | } |
22 | } |
21 | 23 | ||
22 | public boolean getAllLinesInOneFrame() { |
24 | public boolean getAllLinesInOneFrame() { |
23 | return allLinesInOneFrame; |
25 | return allLinesInOneFrame; |
24 | } |
26 | } |
25 | 27 | ||
26 | public void setAllLinesInOneFrame(boolean allLinesInOneFrame) { |
28 | public void setAllLinesInOneFrame(boolean allLinesInOneFrame) { |
27 | this.allLinesInOneFrame = allLinesInOneFrame; |
29 | this.allLinesInOneFrame = allLinesInOneFrame; |
28 | } |
30 | } |
29 | 31 | ||
30 | public int getMenuItem() { |
32 | public int getMenuItem() { |
31 | return page; |
33 | return page; |
32 | } |
34 | } |
33 | 35 | ||
34 | public void setMenuItem(int page) { |
36 | public void setMenuItem(int page) { |
35 | this.page = page; |
37 | this.page = page; |
36 | } |
38 | } |
37 | 39 | ||
38 | public int getMenuItemCode() { |
40 | public int getMenuItemCode() { |
39 | return allLinesInOneFrame ? page | 0x80 : page; |
41 | return allLinesInOneFrame ? page | 0x80 : page; |
40 | } |
42 | } |
41 | 43 | ||
42 | /* |
44 | /* |
43 | public int getAutoSendInterval() { |
45 | public int getAutoSendInterval() { |
44 | return autoSendInterval; |
46 | return autoSendInterval; |
45 | } |
47 | } |
46 | 48 | ||
47 | public void setAutoSendInterval(int autoSendInterval) { |
49 | public void setAutoSendInterval(int autoSendInterval) { |
48 | this.autoSendInterval = autoSendInterval; |
50 | this.autoSendInterval = autoSendInterval; |
49 | } |
51 | } |
50 | */ |
52 | */ |
51 | } |
53 | } |
52 | 54 |