1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module awt
{ module grid
{
25 /** A control that displays a set of tabular data.
27 <h4>The Column Model</h4>
29 <p>The horizontal structure of the grid is defined by the XGridColumnModel implemented in DefaultGridColumnModel
30 The XGridColumn implemented in GridColumn describes the properties and behavior of a single column. Use the XGridColumnModel::addColumn() to add a column to the column model.
33 <h4>The Data Model</h4>
34 <p> All row data are stored in the XGridDataModel.
35 Use the DefaultGridDataModel to add XGridDataModel::addRow() or remove XGridDataModel::removeRow() rows.
38 <p>The column and data model must be set at the UnoControlGridModel::ColumnModel and UnoControlGridModel::GridDataModel properties.</p>
41 <p>If you are interested in knowing when the selection changes implement a
42 XGridSelectionListener and add the instance with the method
43 XGridRowSelection::addSelectionListener().
44 You than will be notified for any selection change.</p>
48 service UnoControlGrid
50 service com
::sun
::star
::awt
::UnoControl
;
52 interface ::com
::sun
::star
::awt
::grid
::XGridControl
;
54 interface ::com
::sun
::star
::awt
::grid
::XGridRowSelection
;
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */