Class NotesFactory


  • public class NotesFactory
    extends Object
    A factory for GUI components for notes.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • NotesFactory

        public NotesFactory()
    • Method Detail

      • getTextPane

        public static NotesFactory.TextPane getTextPane​(AbstractContainer data)
        Returns a new text pane for the given notes.
        Parameters:
        data - the container to create a text pane for
        Returns:
        the tabbed pane
      • getMultiPagePane

        public static NotesFactory.MultiPagePane getMultiPagePane​(List<AbstractContainer> data)
        Returns a new multi-page page for the given notes.
        Parameters:
        data - the containers to create a multi-page pane for
        Returns:
        the multi-page pane
      • getDialog

        public static NotesFactory.Dialog getDialog​(Dialog owner,
                                                    Dialog.ModalityType modality)
        Returns a new dialog for displaying notes.
        Parameters:
        owner - the owning component
        modality - the type of modality
        Returns:
        the dialog
      • getDialog

        public static NotesFactory.Dialog getDialog​(Frame owner,
                                                    boolean modal)
        Returns a new dialog for displaying notes.
        Parameters:
        owner - the owning component
        modal - if true then the dialog will be modal
        Returns:
        the dialog