Class PersonInfoViewer


  • public class PersonInfoViewer
    extends MetadataViewer
    The PersonInfoViewer is a wrapper class for PersonviewDialog, we can use it with a couple of lines of code:
     PersonInfoViewer personInfoViewer = new PersonInfoViewer();
     personInfoViewer.setValue(person);
     personInfoViewer.showOpenDialog();
     
    • Method Summary

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

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

      • PersonInfoViewer

        public PersonInfoViewer()
    • Method Detail

      • setValue

        public void setValue​(UntypedData persons)
        set the Person value. set the Person value.
        Specified by:
        setValue in class MetadataViewer
        Parameters:
        persons - the value the set
      • showOpenDialog

        public int showOpenDialog()
        pop up a PersonviewDialog Dialog
        Specified by:
        showOpenDialog in class MetadataViewer
        Returns:
        the result
      • 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