Rev 1564 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1540 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | import java.io.IOException; |
||
4 | |||
5 | import dongfang.mkt.RequestFrameVisitor; |
||
6 | |||
7 | public class SingleDisplayRequestFrame extends RequestFrame { |
||
8 | private boolean allLinesInOneFrame; |
||
9 | |||
10 | // private int autoSendInterval; |
||
11 | |||
12 | private int page; |
||
13 | |||
14 | SingleDisplayRequestFrame(int address) { |
||
15 | super(address); |
||
16 | } |
||
17 | |||
18 | @Override |
||
19 | public void accept(RequestFrameVisitor o) throws IOException { |
||
20 | o.visit(this); |
||
21 | } |
||
22 | |||
23 | public boolean getAllLinesInOneFrame() { |
||
24 | return allLinesInOneFrame; |
||
25 | } |
||
26 | |||
27 | public void setAllLinesInOneFrame(boolean allLinesInOneFrame) { |
||
28 | this.allLinesInOneFrame = allLinesInOneFrame; |
||
29 | } |
||
30 | |||
31 | public int getMenuItem() { |
||
32 | return page; |
||
33 | } |
||
34 | |||
35 | public void setMenuItem(int page) { |
||
36 | this.page = page; |
||
37 | } |
||
38 | |||
39 | public int getMenuItemCode() { |
||
40 | return allLinesInOneFrame ? page | 0x80 : page; |
||
41 | } |
||
42 | |||
43 | /* |
||
44 | public int getAutoSendInterval() { |
||
45 | return autoSendInterval; |
||
46 | } |
||
47 | |||
48 | public void setAutoSendInterval(int autoSendInterval) { |
||
49 | this.autoSendInterval = autoSendInterval; |
||
50 | } |
||
51 | */ |
||
52 | } |