Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::View Class Reference

A view represents a visual display or rendering of part or all of the data in a model. More...

#include <vcf/ApplicationKit/View.h>

Inheritance diagram for VCF::View:

VCF::AbstractView VCF::Control VCF::CommandButton VCF::CustomControl VCF::Frame VCF::HTMLBrowserControl VCF::ListControl VCF::TextControl VCF::Toolbar VCF::TreeControl List of all members.

Public Member Functions

virtual ~View ()
virtual ModelgetViewModel ()=0
virtual void setViewModel (Model *viewModel)=0
virtual ControlgetViewControl ()=0
virtual void setViewControl (Control *viewControl)=0
virtual void paintView (GraphicsContext *context)=0
virtual void updateView (Model *updatedModel)=0
 updates the view.

Detailed Description

A view represents a visual display or rendering of part or all of the data in a model.

Each view has a single model that it is associated with. Each view has a single control that it is associated with. A control may have more than one view if it's main view is implemented in such a way that it allows ofr multiple views. Unlike a control which gets OS events like mouse input and keyboard input and may be a wrapper for some underlying native control (like a edit box, or a tree control), a view is strictly for rendering the model associated with it.


Constructor & Destructor Documentation

virtual VCF::View::~View  )  [inline, virtual]
 


Member Function Documentation

virtual Control* VCF::View::getViewControl  )  [pure virtual]
 

Implemented in VCF::AbstractView.

virtual Model* VCF::View::getViewModel  )  [pure virtual]
 

Implemented in VCF::AbstractView, and VCF::Control.

virtual void VCF::View::paintView GraphicsContext context  )  [pure virtual]
 

Implemented in VCF::AbstractView.

virtual void VCF::View::setViewControl Control viewControl  )  [pure virtual]
 

Implemented in VCF::AbstractView.

virtual void VCF::View::setViewModel Model viewModel  )  [pure virtual]
 

Implemented in VCF::AbstractView, VCF::ComboBoxControl, and VCF::Control.

virtual void VCF::View::updateView Model updatedModel  )  [pure virtual]
 

updates the view.

If the updatedModel is NULL, this signifies the model is detaching itself from the view, and the view should clean up it's display appropriately

Implemented in VCF::AbstractView, and VCF::ToggledButton.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information