diva.gui
Class BasicPage

java.lang.Object
  extended by diva.gui.BasicPage
All Implemented Interfaces:
Page

public class BasicPage
extends java.lang.Object
implements Page

A simple concrete implementation of the Page interface.

Version:
$Id: BasicPage.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Heloise Hse, John Reekie
Accepted Rating:
Red

Field Summary
private  java.lang.Object _model
          The model.
private  MultipageModel _multipage
          The owning multipage.
private  java.lang.String _title
          The title of the page.
 
Constructor Summary
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
 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
 

Field Detail

_multipage

private MultipageModel _multipage
The owning multipage.


_title

private java.lang.String _title
The title of the page.


_model

private java.lang.Object _model
The model.

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