Class SubjectViewer


  • public class SubjectViewer
    extends MetadataViewer
    The SubjectViewer wrappers class SubjectviewDialog as a MetadataViewer Dialog to edit Subjects datatype. we can use it with a couple of lines of code:
     SubjectViewer subjectViewer = new SubjectViewer();
     subjectViewer.showOpenDialog();
     
    • Constructor Summary

      Constructors 
      Constructor Description
      SubjectViewer()  
    • Method Summary

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

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

      • SubjectViewer

        public SubjectViewer()
    • Method Detail

      • showOpenDialog

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

        public void setValue​(UntypedData subjects)
        set the Subjects value. set the Subjects value.
        Specified by:
        setValue in class MetadataViewer
        Parameters:
        subjects - 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