PRIM_LIST.Column クラス (PRIM_LIST.Column)
すべての列の基本クラス
祖先 - オブジェクト (PRIM_OBJT)
Column is the base class for all column type in the List control. Unlike other component LANSA lists e.g. Tree and Grid, where column types are generic, Prim_List has specific column types for string, number, date time, image, button, check box and reusable part. When a field or control is dropped on the list, the appropriate type of column is added. If it was a field, the source parameter of the column will be set as it is for other LANSA lists. Columns work in 2 ways. Firstly, the definition of the column is used as a prototype when an entry is added. So, a button column defined with a caption of "Delete" will show a button in each item with a caption of "Delete". Secondly, all column types have a CurrentItem property that provides access to the individual instance.
This example shows a simple list with a number and button columns. The button is hidden if the row is an even numbered row.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864) Layoutmanager(#TableLayout1)
Define_Com Class(#PRIM_TBLO) Name(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Item) Name(#List1Item1) Column(#Column1) Manage(#List) Parent(#TableLayout1) Row(#Row1)
Define_Com Class(#PRIM_LIST) Name(#List) Displayposition(1) Left(0) Parent(#COM_OWNER) Tabposition(1) Top(0) Height(456) Width(864) Rowheight(33)
Define_Com Class(#PRIM_LIST.Number) Name(#ColumnXDEMONUMB1) Displayposition(1) Increment(1) Parent(#List) Source(#xDemoNumber) Wrap(False)
Define_Com Class(#PRIM_LIST.Button) Name(#ColumnButton1) Columnwidth(100) Displayposition(2) Parent(#List) Caption('Delete') Cellsizing(None) Cellwidth(80)
Evtroutine Handling(#Com_Owner.CreateInstance)
Begin_Loop Using(#xDemoNumber) To(10)
Add_Entry To_List(#List)
#ColumnButton1.CurrentItem.Visible := (#xDemoNumber.mod( 2 ) = 0)
End_Loop
Endroutine
Evtroutine Handling(#ColumnButton1.Click)
Dlt_Entry Number(#List.CurrentItem.Entry)
Endroutine
End_Com
| 名前 | 記述 |
|---|---|
| CellAlignment | リスト セルのコンテンツの位置 |
| CellHeight | CellSizing によって上書きされない時のセルの高さ (ピクセル) |
| CellMarginBottom | CellSizing によって上書きされない時のセルの下余白 (ピクセル) |
| CellMarginLeft | CellSizing によって上書きされない時のセルの左余白 (ピクセル) |
| CellMarginRight | CellSizing によって上書きされない時のセルの右余白 (ピクセル) |
| CellMarginTop | CellSizing によって上書きされない時のセルの上余白 (ピクセル) |
| CellSizing | コンテンツがセルの一部のみを使用できるようにリスト セルのサイズを調整 |
| CellWidth | CellSizing によって上書きされない時のセルの幅 (ピクセル) |
| ColumnCaption | 列見出しに表示するキャプション |
| ColumnCaptionAlign | 列見出しのテキストの配置 |
| ColumnCaptionText | 列見出しに表示するキャプション |
| ColumnCaptionWordWrap | 十分なスペースがない場合、テキストを次の行に折り返します。 |
| ColumnImage | 列見出しに表示するイメージ |
| ColumnImageHeight | 列の高さと幅をピクセル単位で設定します。 |
| ColumnMaxWidth | 列の許容最大幅 (ピクセル) |
| ColumnMinWidth | 列の許容最小幅 (ピクセル) |
| ColumnMouseOverStyle | マウスオーバーで列見出しに適用するスタイル |
| ColumnMouseOverStyles | マウスオーバーで列見出しに適用するスタイルのコレクション |
| ColumnPinned | リストの右側または左側に列をピン止めします。 |
| ColumnPopup | メニューとして表示するポップアップ パネル |
| ColumnPopupImage | デフォルトのイメージの代わりに列見出しに表示するイメージ |
| ColumnPressedStyle | マウスダウンで列見出しに適用されるスタイル |
| ColumnPressedStyles | マウスダウンで列見出しに適用されるスタイルのコレクション |
| ColumnResize | 列を手動でサイズ調整できるかどうかを指定します。 |
| ColumnStyle | 列に適用するスタイル |
| ColumnStyles | 列に適用するスタイルのコレクション |
| ColumnThemeDrawStyle | 列見出しに適用するテーマの描画スタイルの名前 |
| ColumnUnits | 列を特定の幅にするか、使用可能なスペースの割合を使用するか指定します。(ColumnWidth を参照) |
| ColumnVisible | 列の表示、非表示 |
| ColumnWidth | 列の幅。ColumnUnits プロパティを参照。 |
| ComponentClassName | コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentMembers | このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentPatternName | コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentTag | インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承 |
| ComponentType | ComponentType ではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentTypeName | ComponentTypeName 十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
| CurrentItem | リスト関連コマンド経由で、または UI タッチによる列内の最後のアイテム |
| DisplayPosition | 別の列に対する、この列の相対的な位置 |
| Enabled | 列のコンテンツの無効、有効 |
| FocusItem | 列内でフォーカスがあるアイテムへの参照 |
| Name | コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承 |
| Owner | コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承 |
| Parent | 列を含むリストへの参照 |
| SortAsColumn | データのソートに使用する代替列を指定します |
| SortDirection | 列を昇順または降順にソートします。 |
| SortPosition | ソート順の列の位置 |
| Style | アイテムに適用されるスタイル |
| Styles | アイテムに適用されるスタイル コレクション |
| ThemeDrawStyle | 列に適用する ThemeDrawStyle |
| Visible | 列のコンテンツの表示、非表示 |
| 名前 | 記述 |
|---|---|
| ColumnClick | 列見出しがクリックされると起動されます。
Origin, Handled |
| ColumnDoubleClick | 列見出しでダブルクリックされると起動されます。
Origin, Handled |
| ColumnMouseEnter | マウスが列の範囲内に入ると起動されます。 |
| ColumnMouseLeave | マウスが列の範囲内から出ると起動されます。 |
| CreateInstance | コンポーネントを作成する時に CreateInstance のイベントを実行します。 PRIM_LIST.Column クラス (PRIM_LIST.Column) より継承 |
| DestroyInstance | コンポーネントが解除される前に DestroyInstance のイベントを実行します。 PRIM_LIST.Column クラス (PRIM_LIST.Column) より継承 |
| 名前 | 記述 |
|---|---|
| SizeToContents | 列の幅を最も幅の広いコンテンツに合わせて設定します |
EPC142030 February 2019