Rev 1540 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1540 | Rev 1564 | ||
---|---|---|---|
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 | public class SingleDisplayRequestFrame extends RequestFrame { |
6 | public class SingleDisplayRequestFrame extends RequestFrame { |
8 | private boolean allLinesInOneFrame; |
7 | private boolean allLinesInOneFrame; |
9 | 8 | ||
10 | // private int autoSendInterval; |
9 | // private int autoSendInterval; |
11 | 10 | ||
12 | private int page; |
11 | private int page; |
13 | 12 | ||
14 | SingleDisplayRequestFrame(int address) { |
13 | SingleDisplayRequestFrame(int address) { |
15 | super(address); |
14 | super(address); |
16 | } |
15 | } |
17 | 16 | ||
18 | @Override |
17 | @Override |
19 | public void accept(RequestFrameVisitor o) throws IOException { |
18 | public void accept(RequestFrameVisitor o) throws IOException { |
20 | o.visit(this); |
19 | o.visit(this); |
21 | } |
20 | } |
22 | 21 | ||
23 | public boolean getAllLinesInOneFrame() { |
22 | public boolean getAllLinesInOneFrame() { |
24 | return allLinesInOneFrame; |
23 | return allLinesInOneFrame; |
25 | } |
24 | } |
26 | 25 | ||
27 | public void setAllLinesInOneFrame(boolean allLinesInOneFrame) { |
26 | public void setAllLinesInOneFrame(boolean allLinesInOneFrame) { |
28 | this.allLinesInOneFrame = allLinesInOneFrame; |
27 | this.allLinesInOneFrame = allLinesInOneFrame; |
29 | } |
28 | } |
30 | 29 | ||
31 | public int getMenuItem() { |
30 | public int getMenuItem() { |
32 | return page; |
31 | return page; |
33 | } |
32 | } |
34 | 33 | ||
35 | public void setMenuItem(int page) { |
34 | public void setMenuItem(int page) { |
36 | this.page = page; |
35 | this.page = page; |
37 | } |
36 | } |
38 | 37 | ||
39 | public int getMenuItemCode() { |
38 | public int getMenuItemCode() { |
40 | return allLinesInOneFrame ? page | 0x80 : page; |
39 | return allLinesInOneFrame ? page | 0x80 : page; |
41 | } |
40 | } |
42 | 41 | ||
43 | /* |
42 | /* |
44 | public int getAutoSendInterval() { |
43 | public int getAutoSendInterval() { |
45 | return autoSendInterval; |
44 | return autoSendInterval; |
46 | } |
45 | } |
47 | 46 | ||
48 | public void setAutoSendInterval(int autoSendInterval) { |
47 | public void setAutoSendInterval(int autoSendInterval) { |
49 | this.autoSendInterval = autoSendInterval; |
48 | this.autoSendInterval = autoSendInterval; |
50 | } |
49 | } |
51 | */ |
50 | */ |
52 | } |
51 | } |
53 | 52 |