Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the GNU Lesser Public License v2.1
  *  which accompanies this distribution, and is available at
  *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  *
  *  Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - initial API and implementation
 */
package de.ipk_gatersleben.bit.bi.edal.rmi.client.gui.viewer;
The LanguageViewer is a wrapper class for TextviewDialog, we can use it with a couple of lines of code:

   LanguageViewer viewer = new LanguageViewer();
   viewer.setValue(text); 
   viewer.showOpenDialog();
  

Author(s):
Jinbo Chen
Version:
1.0
public class LanguageViewer extends MetadataViewer{
	private String _text;
	private String _title;
pop up a TextviewDialog Dialog
	public int showOpenDialog() {
		TextViewDialog dlg = new TextViewDialog(this.,this.);
		int returnVal = dlg.showOpenDialog();
		return returnVal;
	}
set the Text value. set the Text value.
	public void setValue(UntypedData data) {
		if(data!=null)
		{
		}
	}
	public void setTitle(String title) {
		 = title;
	}
New to GrepCode? Check out our FAQ X