public class TextViewer extends MetadataViewer
TextViewer is a wrapper class for TextviewDialog,
we can use it with a couple of lines of code:
TextViewer textViewer = new TextViewer();
textViewer.setValue(text);
textViewer.showOpenDialog();
| Constructor and Description |
|---|
TextViewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
setTitle(String title)
set the title of metadata dialog
|
void |
setValue(de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData data)
set the Text value.
|
int |
showOpenDialog()
pop up a TextviewDialog Dialog
|
public int showOpenDialog()
showOpenDialog in class MetadataViewerpublic void setValue(de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData data)
setValue in class MetadataViewerpublic void setTitle(String title)
MetadataViewersetTitle in class MetadataViewerCopyright © 2013 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.