Creates a new instance of HistoryReader @param c
(Contact c)
| 51 | * @param c |
| 52 | */ |
| 53 | public HistoryReader(Contact c) { |
| 54 | super(new Vector()); |
| 55 | MIPrev = new MessageItem(new Msg(Msg.MESSAGE_TYPE_SYSTEM, null, null, "<---"), smiles); |
| 56 | MINext = new MessageItem(new Msg(Msg.MESSAGE_TYPE_SYSTEM, null, null, "--->"), smiles); |
| 57 | |
| 58 | mainbar = new MainBar(c.getName() + ": " + SR.MS_HISTORY); |
| 59 | |
| 60 | hl = new HistoryLoader(c.jid.getBare(), smiles); |
| 61 | if (hl.fileSize > 0) { |
| 62 | gotoEnd(); |
| 63 | } else { |
| 64 | destroyView(); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /* TODO: menu command for gotoBegin()/gotoEnd() |
| 69 | public void commandState() { |
nothing calls this directly
no test coverage detected