rwlogo

Rogue Wave Views
Application Framework Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Member Functions
IlvDvListView Class Reference

Application Framework list document view. More...

#include <ilviews/appframe/viewgadg.h>

Inheritance diagram for IlvDvListView:
IlvDvDocViewInterface IlvDvSerializable IlvDvInterface

Public Member Functions

 IlvDvListView (IlvDisplay *display)
 Constructs an IlvDvListView object. More...
 
virtual IlvGraphicgetGraphic ()
 Gets the graphic object of the document view. More...
 
- Public Member Functions inherited from IlvDvDocViewInterface
IlvDvDocumentgetDocument () const
 Gets the document associated with the view. More...
 
IlvDvApplicationgetDvApplication () const
 Gets the application in which the document view is displayed. More...
 
virtual IlvAbstractViewgetDvView ()
 Gets the IlvAbstractView of the document view. More...
 
IlvDvViewContainerInterfacegetViewContainer () const
 Gets the document view container that owns the view. More...
 
virtual void initializeView ()
 Initializes the document view. More...
 
virtual void serialize (IlvDvStream &)
 Serializes the object in the stream stream.
Typically, the body of the method has the following form:
More...
 
- Public Member Functions inherited from IlvDvInterface
IlBoolean callMethod (const IlSymbol *methodName, IlvDvValue *returnedValue,...)
 Generic method for calling a method that is exported in a class interface. More...
 
IlvDvValuegetFieldValue (const IlSymbol *fieldName, IlvDvValue &value) const
 Gets a field value. More...
 
virtual IlBoolean isProcessingAction (const IlSymbol *methodName) const
 Returns IlTrue if the given action can be processed by the class. More...
 
virtual IlBoolean processAction (const IlSymbol *actionName)
 Processes an action. More...
 
virtual IlBoolean refreshAction (const IlSymbol *actionName, IlvDvActionDescriptor *desc) const
 Refresh all the menu items that reference the action given by the parameter actionName. More...
 
void setFieldValue (const IlSymbol *fieldName, const IlvDvValue &value)
 Sets a field value. More...
 

Detailed Description

Application Framework list document view.

Library: ilvappframe

IlvDvListView is a subclass of IlvStringList that implements the IlvDvDocViewInterface interface. It is used for displaying a list from the document data into an IlvStringList gadget.
Classes that inherit from the IlvDvListView class must be declared and implemented with specific macros, which allows instances of these classes to be created automatically by the document templates.
The following code sample shows how to derive from IlvDvListView:

class MyListView
: public IlvDvListView * {
IlvDvDeclareGadgetViewCreate();
public:
MyListView(IlvDisplay* display) : IlvDvListView(display) {}
virtual void initializeView();
...
};
// Implementation file
void
MyListView::initializeView()
{
// My initialization code here
}
...
IlvDvPreRegisterGadgetViewClass(MyListView, IlvDvListView);
IL_BEGINMODULEINITDEF(mymodule)
IlvDvPostRegisterDocIlvViewClass(MyListView, IlvDvListView);
IL_ENDMODULEINITDEF(mymodule)

Constructor & Destructor Documentation

IlvDvListView::IlvDvListView ( IlvDisplay display)

Constructs an IlvDvListView object.

This constructor creates an instance of IlvDvListView whose display is given by the parameter display.

Member Function Documentation

virtual IlvGraphic* IlvDvListView::getGraphic ( )
virtual

Gets the graphic object of the document view.

Must be redefined by the class that implements the interface if the class inherits from the IlvGraphic class. In this case, the redefined method only returns this object. For example, the IlvDvTextView class redefines this method to return (IlvText*)this object. By default, the method returns 0.

Returns
The graphic object of the document view.

Reimplemented from IlvDvDocViewInterface.


© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.