このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XGridColumnModel
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: awt :: grid ::

interface XGridColumnModel
Base Interfaces
XGridColumnModel
┣ ::com::sun::星/主役にする::lang::XComponent
┣ ::com::sun::星/主役にする::コンテナ::XContainer
┗ ::com::sun::星/主役にする::util::XCloneable

::com::sun::星/主役にする::lang::XComponent
Description
器具/実施するs life time 支配(する)/統制する for the 構成要素
::com::sun::星/主役にする::コンテナ::XContainer
Description
許すs to 登録(する) listeners to be 通知するd when columns are 挿入するd or 除去するd
::com::sun::星/主役にする::util::XCloneable
Description
許すs cloning the 完全にする column model
Description
An instance of this interface is used by the UnoControlGrid to retrieve the column structure that is 陳列する,発揮するd in the actual 支配(する)/統制する. If you do not need your own model 実施, you can also use the DefaultGridColumnModel.
Since
OOo 3.3

Methods' 要約
getColumnCount Returns the number of columns.  
createColumn creates a new column for use with the column model.  
addColumn 追加するs a column to the model.  
removeColumn 除去するs a column from the model  
getColumns Returns all columns of the model.  
getColumn Returns a 明確な/細部 column.  
setDefaultColumns Fills the model with the given number of default columns  
Methods' 詳細(に述べる)s
getColumnCount
long
getColumnCount();

Description
Returns the number of columns.
Returns
the number of columns.
createColumn
XGridColumn
createColumn();

Description
creates a new column for use with the column model.

The newly created column is not yet 挿入するd into the column コンテナ, you need to call addColumn after you initialized the column 反対する.

addColumn
long
addColumn( [in] XGridColumn  column )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
追加するs a column to the model.

You should use the createColumn member to create a new column. This gives 実施s of the XGridColumnModel interface the 可能性 to 供給する own column 実施s which 延長する the basic GridColumn type.

As soon as the column has been 挿入するd into the model, the model takes 所有権 of it. This means when the column is 除去するd, or when the column model is 性質の/したい気がして, the grid column is 性質の/したい気がして 同様に.

Parameter column
the column to 追加する to the model.
Returns
the 索引 of new created column.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the given column is not a valid element for the column コンテナ, or if it is NULL.
removeColumn
無効の
removeColumn( [in] long  ColumnIndex )
raises( ::com::sun::星/主役にする::lang::IndexOutOfBoundsException );

Description
除去するs a column from the model

The column 反対する will be 性質の/したい気がして upon 除去.

Parameter ColumnIndex
denotes the 索引 of the column to 除去する
Throws
::com::sun::星/主役にする::lang::IndexOutOfBoundsException if ColumnIndex does not denote a valid column 索引.
getColumns
sequence< XGridColumn >
getColumns();

Description
Returns all columns of the model.
Returns
all columns associated with the model in a sequence of XGridColumn.
getColumn
XGridColumn
getColumn( [in] long  索引 )
raises( ::com::sun::星/主役にする::lang::IndexOutOfBoundsException );

Description
Returns a 明確な/細部 column.
Parameter 索引
the position of the requested column.
Returns
the requested column.
setDefaultColumns
無効の
setDefaultColumns( [in] long  elements );

Description
Fills the model with the given number of default columns

存在するing columns will be 除去するd before 追加するing new columns. Listeners at the column model will be 通知するd one ::com::sun::星/主役にする::コンテナ::XContainerListener::elementRemoved event for each 除去するd column, and one ::com::sun::星/主役にする::コンテナ::XContainerListener::elementInserted event for each insertion.

Parameter elements
the number of default columns that should be 始める,決める.
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.