Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Gadget class. More...
#include <ilviews/dataccess/gadgets/repview.h>
Public Member Functions | |
IliTreeClassesGadget (IlvDisplay *display, const IlvRect &rect, IlBoolean enableExpand=IlFalse, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | |
Initializes a tree gadget to display a list of classes with their data if the parameter enableExpand is IlTrue . | |
virtual void | build () |
Builds the tree, then displays it. | |
void | enableExpand (IlBoolean enable) |
Enables or disables the display of data for the classes. | |
virtual char ** | getClassesList (IlInt &count) |
Returns the class names list. | |
IliGetClassesListCallback | getClassesListCallback () const |
Returns the callback used to get the list of classes. | |
IlAny | getClassesListCallbackData () const |
Returns the user data used to get the list of classes. | |
virtual char ** | getDataList (const char *cl, IlInt &count) |
Returns the list of data for a class. | |
IliGetDataListCallback | getDataListCallback () const |
Returns the callback used to get the list of data for a class. | |
IlAny | getDataListCallbackData () const |
Returns the user data used to get the list of data for a class. | |
IliTreeEventCallback | getDragDropCallback () |
Returns the callback used to handle the drag-and-drop event. | |
IlAny | getDragDropCallbackData () |
Returns the user data used to handle the drag-and-drop event. | |
IlBoolean | isExpandEnabled () const |
Returns the display status of data for the classes. | |
void | setClassesListCallback (IliGetClassesListCallback cb, IlAny any=0) |
Sets the callback used to get the list of classes. | |
void | setDataListCallback (IliGetDataListCallback cb, IlAny any=0) |
Sets the callback used to get the list of data for a class. | |
void | setDragDropCallback (IliTreeEventCallback cb, IlAny any=0) |
Sets the callback to handle the drag-and-drop event. |
Gadget class.
Library: dbgadget
The IliTreeClassesGadget
class defines a tree gadget that displays the list of classes. For each class, the tree gadget can display the list of data. This class is a generic class. For example, it can be used to display a list of SQL tables (classes) and for each table, the list of columns with their type (data).
IliTreeClassesGadget::IliTreeClassesGadget | ( | IlvDisplay * | display, | |
const IlvRect & | rect, | |||
IlBoolean | enableExpand = IlFalse , |
|||
IlUShort | thickness = IlvDefaultGadgetThickness , |
|||
IlvPalette * | palette = 0 | |||
) |
Initializes a tree gadget to display a list of classes with their data if the parameter enableExpand
is IlTrue
.
display | The display. | |
rect | The location. | |
enableExpand | The enable-expand flag. | |
thickness | The border thickness. | |
palette | The palette. |
virtual void IliTreeClassesGadget::build | ( | ) | [virtual] |
Builds the tree, then displays it.
If your list of classes or the data of a class changes, you must call this function to rebuild the tree. This function calls the function getClassesList
to build the list of classes.
void IliTreeClassesGadget::enableExpand | ( | IlBoolean | enable | ) |
Enables or disables the display of data for the classes.
enable | The display is enabled if the value is IlTrue . |
virtual char** IliTreeClassesGadget::getClassesList | ( | IlInt & | count | ) | [virtual] |
Returns the class names list.
By default, this function calls the defined callback if there is one.
count | Contains the number of classes. |
IliGetClassesListCallback IliTreeClassesGadget::getClassesListCallback | ( | ) | const |
Returns the callback used to get the list of classes.
IlAny IliTreeClassesGadget::getClassesListCallbackData | ( | ) | const |
Returns the user data used to get the list of classes.
virtual char** IliTreeClassesGadget::getDataList | ( | const char * | cl, | |
IlInt & | count | |||
) | [virtual] |
Returns the list of data for a class.
By default, this function calls the defined callback if there is one. This function is called when you expand a class for the first time.
cl | The class name | |
count | Contains the number of data. |
IliGetDataListCallback IliTreeClassesGadget::getDataListCallback | ( | ) | const |
Returns the callback used to get the list of data for a class.
IlAny IliTreeClassesGadget::getDataListCallbackData | ( | ) | const |
Returns the user data used to get the list of data for a class.
IliTreeEventCallback IliTreeClassesGadget::getDragDropCallback | ( | ) |
Returns the callback used to handle the drag-and-drop event.
IlAny IliTreeClassesGadget::getDragDropCallbackData | ( | ) |
Returns the user data used to handle the drag-and-drop event.
IlBoolean IliTreeClassesGadget::isExpandEnabled | ( | ) | const |
Returns the display status of data for the classes.
The default value is IlTrue
.
void IliTreeClassesGadget::setClassesListCallback | ( | IliGetClassesListCallback | cb, | |
IlAny | any = 0 | |||
) |
Sets the callback used to get the list of classes.
cb | The callback. | |
any | The user data. |
void IliTreeClassesGadget::setDataListCallback | ( | IliGetDataListCallback | cb, | |
IlAny | any = 0 | |||
) |
Sets the callback used to get the list of data for a class.
cb | The callback. | |
any | The user data. |
void IliTreeClassesGadget::setDragDropCallback | ( | IliTreeEventCallback | cb, | |
IlAny | any = 0 | |||
) |
Sets the callback to handle the drag-and-drop event.
cb | The callback. | |
any | The user data. |
© Copyright 2012, 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.