manifold.se
Class View

java.lang.Object
  |
  +--manifold.se.View
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
FView, PView

public abstract class View
extends java.lang.Object
implements Configurable

Base class for views.

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
manifold %Version%
Version:
%Version%, %Time%

Field Summary
protected  AbstractViewer viewer_
          The parent viewer.
 
Constructor Summary
View()
           
 
Method Summary
 java.lang.Object config(java.lang.Object parent, org.w3c.dom.Element config)
          Configuration of the view - called after instantiation of a view object.
 org.w3c.dom.Element getConfigElement()
           
 java.awt.Container getContentPane()
           
 java.lang.String getId()
           
 AbstractViewer getViewer()
           
abstract  void redraw()
          Redraws the view
 void setContentPane(java.awt.Container pane)
          Sets the content pane of this view.
abstract  void setTitle(java.lang.String title)
          Sets the title of this view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewer_

protected AbstractViewer viewer_
The parent viewer.

Constructor Detail

View

public View()
Method Detail

config

public java.lang.Object config(java.lang.Object parent,
                               org.w3c.dom.Element config)
                        throws java.lang.Exception
Configuration of the view - called after instantiation of a view object. Classes overwriting this method must invoke this method from the overwriting method. Initializes configuration_ and viewer_ fields.

Specified by:
config in interface Configurable
Parameters:
parent - The argument passed into the FConfig.getList method
config - The DOM element representing the XML element that loaded this class.
Returns:
The configured class, usually returns this.
Throws:
java.lang.Exception - Thrown if there is any problem configuring this class.

getId

public java.lang.String getId()
Returns:
the id of this view.

getViewer

public AbstractViewer getViewer()
Returns:
the viewer.

getConfigElement

public org.w3c.dom.Element getConfigElement()
Returns:
the configuration element

setContentPane

public void setContentPane(java.awt.Container pane)
Sets the content pane of this view. If the pane is an instance of manifold.se.Configurable, the config method will be invoked.

Parameters:
pane - the content pane

getContentPane

public java.awt.Container getContentPane()
Returns:
the content pane

setTitle

public abstract void setTitle(java.lang.String title)
Sets the title of this view


redraw

public abstract void redraw()
Redraws the view



Copyright (c) 2003 Rutgers, The State University of New Jersey