Class TextViewer


  • public class TextViewer
    extends MetadataViewer
    The 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 Summary

      Constructors 
      Constructor Description
      TextViewer()  
    • Method Summary

      Modifier and Type Method Description
      void setTitle​(java.lang.String title)
      set the title of metadata dialog
      void setValue​(UntypedData data)
      set the Text value.
      int showOpenDialog()
      pop up a TextviewDialog Dialog
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextViewer

        public TextViewer()
    • Method Detail

      • showOpenDialog

        public int showOpenDialog()
        pop up a TextviewDialog Dialog
        Specified by:
        showOpenDialog in class MetadataViewer
        Returns:
        the result
      • setValue

        public void setValue​(UntypedData data)
        set the Text value. set the Text value.
        Specified by:
        setValue in class MetadataViewer
        Parameters:
        data - the value the set
      • setTitle

        public void setTitle​(java.lang.String title)
        Description copied from class: MetadataViewer
        set the title of metadata dialog
        Specified by:
        setTitle in class MetadataViewer
        Parameters:
        title - the title for the dialog