PRIM_LIST.CheckBoxCurrentItemクラス (PRIM_LIST.CheckBoxCurrentItem)

現在のリストアイテム用チェックボックスへのアクセスを提供します。

祖先 - PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) オブジェクト (PRIM_OBJT)

詳細

Prim_List.Checkbox is a column in a List that is visualized as a checkbox.
 
Each column type has a corresponding Column class that provides access to the column instance.
 
The checkbox for each item can be modified independently using the current item for the column in the same way that other visual LANSA lists allow the current item for the list to be used.
 
A checkbox column is created whenever a Check Box is dragged and dropped from the controls view.

Example

This example shows a single column list updating each checkbox after it's added to the list.
 
When a checkbox is clicked the current item for the column is accessed and the column caption shows which checkbox was clicked.
Begin_Com Role(*EXTENDS #PRIM_WEB)
 
   Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(24) Parent(#COM_OWNER) Tabposition(1) Top(24) Height(337) Width(609)
   Define_Com Class(#PRIM_LIST.checkbox) Name(#ColumnCheckbox1) Columnwidth(128) Displayposition(1) Parent(#List1)
 
   Evtroutine Handling(#Com_owner.CreateInstance)
 
      Begin_Loop To(10)
 
         Add_Entry To_List(#List1)
 
      #ColumnCheckbox1.CurrentItem.ButtonState := Checked
 
      End_Loop
 
   Endroutine
 
   Evtroutine Handling(#ColumnCheckbox1.Click)
 
      #ColumnCheckbox1.ColumnCaption := #ColumnCheckbox1.CurrentItem.ButtonState
 
   Endroutine
 
End_Com

プロパティ

名前記述
ButtonStateチェックボックスを選択/除外するためのプロパティです。
ComponentClassNameコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承
ComponentMembersこのコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承
ComponentPatternNameコンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承
ComponentTagインスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承
ComponentTypeComponentTypeではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承
ComponentTypeNameComponentTypeName十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承
Enabledリストアイテムの有効化または無効化 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
Hint現在の列/アイテムに表示されるヒント PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
HintPopup現在の列/アイテムに表示されるポップアップヒント PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
HintTitle現在の列/アイテムに表示されるヒントのタイトル PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
MouseOverStyleマウスが現在の列/アイテム内に入った時に適用するスタイル PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
MouseOverStylesマウスが現在の列/アイテム内に入った時に適用するスタイルのコレクション PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
Nameコンポーネントの名前 オブジェクト (PRIM_OBJT) より継承
Ownerコンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承
Parentこのインスタンスが添付されているコンポーネントインスタンス。コントロールのビジュアルコンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承
Popup現在の列/アイテムに表示するポップアップ PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
ReadOnlyセルを入力に使用できるかどうかを制御します。
Style現在の列/アイテムに適用するスタイル PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
Styles現在の列/アイテムに適用するスタイルのコレクション PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
ThemeDrawStyle列の現アイテムに適用するThemeDrawStyle PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
Visibleリストアイテムの表示または非表示 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承

イベント

名前記述
CreateInstanceコンポーネントを作成する時にCreateInstanceのイベントを実行します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承
DestroyInstanceコンポーネントが解除される前にDestroyInstanceのイベントを実行します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承

メソッド

名前記述
SetFocusリストのcurrentitemにフォーカスを設定します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC150060 - December 2023