(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 interface XGridColumn
Usage Restrictions
not published
Description
The XGridColumn defines the properties and behavior of a column in a grid control
Since
OOo 3.3.0

Methods' Summary
addColumnListener Adds a listener for the GridColumnEvent posted after the grid changes.  
removeColumnListener Removes a listener previously added with addColumnListener().  
updateColumn Updates changed column widths, when column widths are being resized.  
setIndex Sets column index  
Attributes' Summary
Identifier Specifies the an idendifier of the colomn. 
ColumnWidth Specifies the default column witdth.  
PreferredWidth Specifies the preferred column witdth.  
MinWidth Specifies the min column witdth.  
MaxWidth Specifies the max column witdth.  
Resizeable Specifies whether column has fixed size or not.  
HorizontalAlign Specifies the horizontal alignment of the content in the control.  
Title A title is displayed in the colum header row if UnoControlGridModel::ShowRowHeader is set to true 
Methods' Details
addColumnListener
[oneway] void
addColumnListener( [in] XGridColumnListener  listener );

Description
Adds a listener for the GridColumnEvent posted after the grid changes.
Parameter Listener
the listener to add.
removeColumnListener
[oneway] void
removeColumnListener( [in] XGridColumnListener  listener );

Description
Removes a listener previously added with addColumnListener().
Parameter Listener
the listener to remove.
updateColumn
void
updateColumn( [in] string  name,
[in] long  width );

Description
Updates changed column widths, when column widths are being resized.
Parameter name
can be PrefWidth or ColWidth, depending on which was changed
Parameter width
the new column width
setIndex
void
setIndex( [in] long  index );

Description
Sets column index
Parameter index
index, which is the index of the column in the column array of the column model
Attributes' Details
Identifier
any Identifier;
Description
Specifies the an idendifier of the colomn.
ColumnWidth
long ColumnWidth;
Description
Specifies the default column witdth.
PreferredWidth
long PreferredWidth;
Description
Specifies the preferred column witdth.
MinWidth
long MinWidth;
Description
Specifies the min column witdth.
MaxWidth
long MaxWidth;
Description
Specifies the max column witdth.
Resizeable
boolean Resizeable;
Description
Specifies whether column has fixed size or not.
HorizontalAlign
::com::sun::star::style::HorizontalAlignment HorizontalAlign;
Description
Specifies the horizontal alignment of the content in the control.
 LEFT
 CENTER
 RIGHT
 
Title
string Title;
Description
A title is displayed in the colum header row if UnoControlGridModel::ShowRowHeader is set to true
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.