Show TextForm.java syntax highlighted
/*
* Copyright (c) 2004
* Helsinki Institute of Physics
* see LICENSE file for details
*
* TextForm.java
* Created on Nov 20, 2003
*/
package fi.hip.gb.client;
import javax.microedition.lcdui.StringItem;
import fi.hip.gb.midlet.core.LiteResult;
/**
* Shows text results on the screen.
*
* @author Juho Karppinen
*/
class TextForm extends GenericResultForm {
/**
* Constructs a new textual result observer.
*
* @param resultFile result to be shown
*/
public TextForm(LiteResult result) {
super("Results " + result.getName(), result);
append(new StringItem("Description: ", result.getDescription()));
append(new StringItem("Size: ", result.getSize() + " bytes"));
append(new StringItem("Data: ", result.readContent()));
addCommand(this.infoCommand);
}
}
See more files for this project here