Package diva.gui

Class BasicPage

  • All Implemented Interfaces:
    Page

    public class BasicPage
    extends java.lang.Object
    implements Page
    A simple concrete implementation of the Page interface.
    Version:
    $Id$
    Author:
    Heloise Hse, John Reekie
    Pt.AcceptedRating:
    Red
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicPage​(MultipageModel multi)
      Create a basic page owned by the given multipage.
      BasicPage​(MultipageModel multi, java.lang.String title)
      Create a basic page owned by the given multipage, and with the given title.
      BasicPage​(MultipageModel multi, java.lang.String title, java.lang.Object model)
      Create a basic page owned by the given multipage, and with the given title and model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getModel()
      Return the model of the page.
      MultipageModel getMultipage()
      Return the multipage that owns this model.
      java.lang.String getTitle()
      Return the title of the page.
      void setModel​(java.lang.Object model)
      Set the model of the page.
      void setTitle​(java.lang.String title)
      Set the title of the page.
      • Methods inherited from class java.lang.Object

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

      • BasicPage

        public BasicPage​(MultipageModel multi)
        Create a basic page owned by the given multipage.
      • BasicPage

        public BasicPage​(MultipageModel multi,
                         java.lang.String title)
        Create a basic page owned by the given multipage, and with the given title.
      • BasicPage

        public BasicPage​(MultipageModel multi,
                         java.lang.String title,
                         java.lang.Object model)
        Create a basic page owned by the given multipage, and with the given title and model.
    • Method Detail

      • getMultipage

        public MultipageModel getMultipage()
        Return the multipage that owns this model.
      • getModel

        public java.lang.Object getModel()
        Return the model of the page.
        Specified by:
        getModel in interface Page
      • getTitle

        public java.lang.String getTitle()
        Return the title of the page.
        Specified by:
        getTitle in interface Page
      • setModel

        public void setModel​(java.lang.Object model)
        Set the model of the page.
        Specified by:
        setModel in interface Page
      • setTitle

        public void setTitle​(java.lang.String title)
        Set the title of the page.
        Specified by:
        setTitle in interface Page