public class LanguageViewer extends MetadataViewer
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();
| Constructor and Description |
|---|
LanguageViewer() |
| 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 MetadataViewerdata - the value the setpublic void setTitle(String title)
MetadataViewersetTitle in class MetadataViewertitle - the title for the dialogCopyright © 2016 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.