Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1542 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | public class AllDisplaysResponseFrame extends ResponseFrame { |
||
4 | private int item; |
||
5 | private int line; |
||
6 | // private int maxItem; |
||
7 | private char[] text; |
||
8 | |||
9 | public AllDisplaysResponseFrame(int address) { |
||
10 | super(address); |
||
11 | } |
||
12 | |||
13 | @Override |
||
14 | public boolean isResponseTo(RequestFrame r) { |
||
15 | return r instanceof AllDisplaysRequestFrame; |
||
16 | } |
||
17 | |||
18 | public int getItem() { |
||
19 | return item; |
||
20 | } |
||
21 | |||
22 | public void setItem(int item) { |
||
23 | this.item = item; |
||
24 | } |
||
25 | |||
26 | public int getLine() { |
||
27 | return line; |
||
28 | } |
||
29 | |||
30 | public void setLine(int line) { |
||
31 | this.line = line; |
||
32 | } |
||
33 | |||
34 | /* |
||
35 | public int getMaxItem() { |
||
36 | return maxItem; |
||
37 | } |
||
38 | |||
39 | public void setMaxItem(int maxItem) { |
||
40 | this.maxItem = maxItem; |
||
41 | } |
||
42 | */ |
||
43 | |||
44 | public char[] getText() { |
||
45 | return text; |
||
46 | } |
||
47 | |||
48 | public String getTextAsString() { |
||
49 | return new String(text); |
||
50 | } |
||
51 | |||
52 | public void setText(char[] text) { |
||
53 | this.text = text; |
||
54 | } |
||
55 | } |