Code Search for Developers
 
 
  

TextForm.java from GridBlocks at Krugle


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

GridBlocks

GridBlocks builds a grid application framework via easy-to-use building blocks in distributed environment. The framework offers components for Grid security, distributed storage, computing, and Portlet web interfaces.

Project homepage: http://sourceforge.net/projects/gridblocks
Programming language(s): Java,JSP,XML
License: other

  BluetoothBrowser.java
  Broadcasts.java
  CameraCanvas.java
  Configs.java
  DispatchForm.java
  GPSForm.java
  GenericImageCanvas.java
  GenericResultForm.java
  GraphicsCanvas.java
  InfoForm.java
  InputUI.java
  JobsForm.java
  Logging.java
  MIDui.java
  MediaPlayer.java
  PictureCanvas.java
  ProgressForm.java
  Results.java
  StatusForm.java
  TextForm.java
  Thumbnails.java