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