rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliTreeClassesGadget Class Reference

Gadget class. More...

#include <ilviews/dataccess/gadgets/repview.h>

Inheritance diagram for IliTreeClassesGadget:
IlvTreeGadget IlvScrolledGadget IlvTreeGadgetItemHolder IlvGadget IlvGadgetItemHolder IlvSimpleGraphic IlvGraphic

List of all members.

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.

Detailed Description

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).

See also:
IliRepositoryService.

Constructor & Destructor Documentation

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.

Parameters:
display The display.
rect The location.
enableExpand The enable-expand flag.
thickness The border thickness.
palette The palette.

Member Function Documentation

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.

Parameters:
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.

Parameters:
count Contains the number of classes.
Returns:
The list of class names.
IliGetClassesListCallback IliTreeClassesGadget::getClassesListCallback (  )  const

Returns the callback used to get the list of classes.

Returns:
The callback.
IlAny IliTreeClassesGadget::getClassesListCallbackData (  )  const

Returns the user data used to get the list of classes.

Returns:
The user data.
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.

Parameters:
cl The class name
count Contains the number of data.
Returns:
The list of data.
IliGetDataListCallback IliTreeClassesGadget::getDataListCallback (  )  const

Returns the callback used to get the list of data for a class.

Returns:
The callback.
IlAny IliTreeClassesGadget::getDataListCallbackData (  )  const

Returns the user data used to get the list of data for a class.

Returns:
The user data.
IliTreeEventCallback IliTreeClassesGadget::getDragDropCallback (  ) 

Returns the callback used to handle the drag-and-drop event.

Returns:
The callback.
IlAny IliTreeClassesGadget::getDragDropCallbackData (  ) 

Returns the user data used to handle the drag-and-drop event.

Returns:
The user data.
IlBoolean IliTreeClassesGadget::isExpandEnabled (  )  const

Returns the display status of data for the classes.

The default value is IlTrue.

Returns:
The display status.
void IliTreeClassesGadget::setClassesListCallback ( IliGetClassesListCallback  cb,
IlAny  any = 0 
)

Sets the callback used to get the list of classes.

Parameters:
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.

Parameters:
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.

Parameters:
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.