Creates a new instance of MultiLine
(String caption, String text)
| 64 | * Creates a new instance of MultiLine |
| 65 | */ |
| 66 | public MultiLine(String caption, String text) { |
| 67 | super(null); |
| 68 | this.text=text; |
| 69 | this.caption=caption; |
| 70 | |
| 71 | font=FontCache.getFont(false, FontCache.msg); |
| 72 | fontHeight=font.getHeight(); |
| 73 | itemHeight=fontHeight; |
| 74 | |
| 75 | this.width = VirtualCanvas.getInstance().getList().getListWidth(); |
| 76 | |
| 77 | if (caption!=null) { |
| 78 | captionFont=FontCache.getFont(true, FontCache.msg); |
| 79 | captionFontHeight=captionFont.getHeight(); |
| 80 | itemHeight=captionFontHeight; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | public String getValue() { |
| 85 | return text; |
nothing calls this directly
no test coverage detected