diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-19 12:39:41 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-19 12:39:41 +0100 |
commit | 6561e702dbc3fca4f01b3ceaf1f07aa1324043b8 (patch) | |
tree | ac7b1affc5ec2efd2355585809ceeb4050187458 | |
parent | gridsort: introduce XSortableGridDataModel::removeColumnSort (diff) | |
download | core-6561e702dbc3fca4f01b3ceaf1f07aa1324043b8.tar.gz core-6561e702dbc3fca4f01b3ceaf1f07aa1324043b8.zip |
gridsort: introduce XGridColumn::DataModelIndex. this allows for column removal/insertion at the GridColumnModel, without the need to touch the GridDataModel
-rw-r--r-- | offapi/com/sun/star/awt/grid/XGridColumn.idl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/grid/XGridColumn.idl b/offapi/com/sun/star/awt/grid/XGridColumn.idl index 8b0be51c309b..da3d5c8ade91 100644 --- a/offapi/com/sun/star/awt/grid/XGridColumn.idl +++ b/offapi/com/sun/star/awt/grid/XGridColumn.idl @@ -88,6 +88,20 @@ interface XGridColumn */ [attribute, readonly] long Index; + /** denotes the index of the data column which should be used to fetch this grid column's data + + <p>A grid control has a column model and a data model, both containing a possibly different number of columns. + The <code>DataColumnIndex</code> attribute defines the index of the column within the data model, which should + be used to retrieve actual data.</p> + + <p>Using this, you can do runtime changes to the column model, i.e. insertion and removal of columns, without + necessarily needing to adjust the data model, too.</p> + + <p>If <code>DataColumnIndex</code> is negative, the it will be ignored, then the column's index within its + column model, as determined by the <member>Index</member> attribute, will be used.</p> + */ + [attribute] long DataColumnIndex; + /** Adds a listener for the <type>GridColumnEvent</type> posted after the grid changes. @param Listener the listener to add. |