Class TextEditor
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.gui.editor.AbstractMetaDataEditor
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.gui.editor.TextEditor
-
public class TextEditor extends AbstractMetaDataEditor
TheTextEditor
is a wrapper class forTextDialog
, we can use it with a couple of lines of code:TextEditor textEditor = new TextEditor(); textEditor.setValue(text); textEditor.showOpenDialog();
-
-
Constructor Summary
Constructors Constructor Description TextEditor()
-
Method Summary
Modifier and Type Method Description UntypedData
getValue()
Returns the Text informaiton inputted by user.void
setTitle(java.lang.String title)
set the title of metadata dialogvoid
setValue(UntypedData data)
set the Text value.int
showOpenDialog()
pop up a TextDialog Dialog
-
-
-
Method Detail
-
showOpenDialog
public int showOpenDialog()
pop up a TextDialog Dialog- Specified by:
showOpenDialog
in classAbstractMetaDataEditor
- Returns:
- the result
-
setValue
public void setValue(UntypedData data)
set the Text value. set the Text value.- Specified by:
setValue
in classAbstractMetaDataEditor
- Parameters:
data
- the value to set
-
getValue
public UntypedData getValue()
Returns the Text informaiton inputted by user.- Specified by:
getValue
in classAbstractMetaDataEditor
- Returns:
- the Text informaiton inputted by user.
-
setTitle
public void setTitle(java.lang.String title)
Description copied from class:AbstractMetaDataEditor
set the title of metadata dialog- Overrides:
setTitle
in classAbstractMetaDataEditor
- Parameters:
title
- the title of the dialog
-
-