Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

CB2::Widget Class Reference

Base class for all visual application parts. More...

#include <Widgets.h>

Inheritance diagram for CB2::Widget:

CB2::Class CB2::Container CB2::Form CB2::Heading CB2::Image CB2::Menu CB2::Paragraph CB2::RelationEditor CB2::RichEditor CB2::Spacer CB2::TreeMenu List of all members.

Public Member Functions

 Widget (Container &parent)
 Constructor.

 Widget (Application &parent)
 Constructor.

virtual ~Widget ()
 Destructor.


Public Attributes

int tag
 Tag for user-specific data.


Protected Member Functions

void Data (const String &data)
 Render widget.


Private Member Functions

 Widget (const Widget &prev)
 Copy constructor.

void operator= (const Widget &prev)
 Assignment operator.


Private Attributes

Templateptempl
 Parent template.

String panchor
 Anchor in the parent template.

bool filled
 Widget rendered.


Detailed Description

Base class for all visual application parts.

A widget is any structural object of the application which has its visual representation on the web page of the web application.


Constructor & Destructor Documentation

Widget::Widget Container parent  ) 
 

Constructor.

Create a new widget as a nested object of a container, register as a child.

Parameters:
parent Container containing this widget.

Widget::Widget Application parent  ) 
 

Constructor.

Create a new widget as a nested object of an application, register as a child.

Parameters:
parent Application containing this widget.

Widget::~Widget  )  [virtual]
 

Destructor.

If the widget was not rendered to the parent template, ExceptionAssert is thrown.

Widget::Widget const Widget prev  )  [private]
 

Copy constructor.

Copying of widgets is not allowed, Exception is thrown.

Parameters:
prev Widget to copy from.


Member Function Documentation

void Widget::Data const String data  )  [protected]
 

Render widget.

Render widget contents to the parent template.

Parameters:
data Widget contents.

void Widget::operator= const Widget prev  )  [private]
 

Assignment operator.

Copying of widgets is not allowed, Exception is thrown.

Parameters:
prev Widget to copy from.


Member Data Documentation

bool CB2::Widget::filled [private]
 

Widget rendered.

String CB2::Widget::panchor [private]
 

Anchor in the parent template.

Template* CB2::Widget::ptempl [private]
 

Parent template.

int CB2::Class::tag [inherited]
 

Tag for user-specific data.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 23:26:50 2004 for ColorBox2 by doxygen 1.3.7