(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: awt :: grid ::

unpublished service UnoControlGrid
Usage Restrictions
not published
Description
A control that displays a set of tabular data.

The Column Model

The horizontal structure of the grid is defined by the XGridColumnModel implemented in DefaultGridColumnModel The XGridColumn implemented in the properties and behavior of a single column. Use the XGridColumnModel::addColumn() to add a column to the column model.

The Data Model

All row data are stored in the XGridDataModel. Use the DefaultGridDataModel to add XGridDataModel::addRow() or remove XGridDataModel::removeRow() rows.

The column and data model must be set at the UnoControlGridModel::ColumnModel and UnoControlGridModel::GridDataModel properties.

Selection

If you are interested in knowing when the selection changes implement a XGridSelectionListener and add the instance with the method XGridSelection::addSelectionListener(). You than will be notified for any selection change. The XGridSelection interface provides a bunch of methods to set and get selection for the grid control.

Since
OOo 3.3.0

Included Services - Summary
::com::sun::star::awt::UnoControl
(referenced entity's summary:)
specifies an abstract control.
Exported Interfaces - Summary
XGridControl
(referenced entity's summary:)
An interface to a control that displays a tabular data.
Included Services - Details
::com::sun::star::awt::UnoControl
(referenced entity's summary:)
specifies an abstract control.
Exported Interfaces - Details
XGridControl
(referenced entity's summary:)
An interface to a control that displays a tabular data.

 
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.