ListBoxUI (クラス)
public abstract ListBoxUI {inherits Frame, ControlUI}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-LOGICAL.
直接継承しているサブクラス: StandardListBoxUI, SkinnableListBoxUI

ListBox の抽象ユーザー インターフェイス。

説明

このクラスでは、ListItem を破棄して作成するための selection-pointselection-anchor のインターフェイスを定義し、有用なヘルパー関数をいくつか定義します。

コンストラクタ
default:このオブジェクトを作成します。
コンストラクタ public {ListBoxUI.default ...}

プロパティ
focus?:現在 ListBoxUI にキーボード フォーカスがあるかどうかを示します。
フィールド protected ListBoxUI.focus?:bool =false
has-been-rendered?:set-size メソッドが呼び出されたどうかを示します。
フィールド public ListBoxUI.has-been-rendered?:bool =false
selection-anchor:選択アンカーを設定する位置。
アクセサ public ListBoxUI.selection-anchor:int
セッター public ListBoxUI.selection-anchor:int
selection-point:選択ポイントの位置。
アクセサ public ListBoxUI.selection-point:int
セッター public ListBoxUI.selection-point:int
プロパティ 継承 Frame: clonable-class?, halign, halign-spec, hstretch?, hstretch?-spec, style-element, valign, valign-spec, vstretch?, vstretch?-spec
プロパティ 継承 ControlUI: color, control, control-appearance-changeable?, control-color, control-content-background, copy-options, focus-skin, font-family, font-style, font-weight, skin, text-breakable?, text-line-through?, text-preserve-whitespace?, text-underline?
プロパティ 継承 BaseFrame: child, completely-clonable-children?, graphical-children, ordered-children, reverse-ordered-children, width-first?
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 OptionListInterface: option-register-proc, options-present-here, registered-option-keys
プロパティ 継承 Box: clip-child-shadows?
プロパティ 継承 Graphic: avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, discrete-select-in-range?, display-context, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visible?, visual-parent, vorigin, width
プロパティ 継承 Visual: _style-element, cursor, data-source, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data

メソッド
notify-item-selected:ListItem が選択または選択解除されたことをこのオブジェクトに通知します。
public abstract {ListBoxUI.notify-item-selected item:ListItem}:void
on-focus-in:FocusIn イベントのスタティック イベント ハンドラ
public {ListBoxUI.on-focus-in e:FocusIn}:void
on-focus-out:FocusOut イベントのスタティック イベント ハンドラ
public {ListBoxUI.on-focus-out e:FocusOut}:void
rebuild-list:ListBox 内の現在の ListItem のセットのビジュアル表現を設定します。
public abstract {ListBoxUI.rebuild-list}:void
select-indexes:ListItem を一つ以上選択します。
public {ListBoxUI.select-indexes indexes:{Array-of int}}:void
select-range:ListItem の範囲を選択し、必要に応じて他のすべての選択を解除します。
public {ListBoxUI.select-range
lower:int,
upper:int,
deselect-others?:bool
}:void
set-size:このオブジェクトにレイアウト幅と高さを代入します。
public {ListBoxUI.set-size lc:LayoutContext, bounds:GRect}:void
setup-item:ListBox に追加された ListItem のビジュアル表現を設定します。
public abstract {ListBoxUI.setup-item i:int}:void
teardown-item:ListBox から削除される ListItem のビジュアル表現を削除します。
public abstract {ListBoxUI.teardown-item i:int}:void
メソッド 継承 Frame: add, clone-appearance-helper, remove-child
メソッド 継承 ControlUI: fire-event-at-control, on-key-press, on-pointer-press, react-to-state-change, react-to-visual-change
メソッド 継承 BaseFrame: add-internal, after-reposition, allocate-layout-object, attempt-revalidate-layout, before-reposition, compute-child-bounds, compute-parent-elastic, constrain-height, constrain-width, draw, end-pagination, get-height-preference, get-text, get-width-preference, install-child-bounds, internal-remove-child, note-attached, note-detaching, notify-option-children, paginate, pick-child, propagate-request-layout, register-options
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 GuiEventTarget: handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-key-event, on-pointer-button, on-pointer-crossing, on-pointer-event, on-pointer-motion, on-pointer-release, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class
メソッド 継承 BasicBox: contains-point?, find-graphic-at, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, request-layout, validate-layout
メソッド 継承 OptionListInterface: add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 Box: clear, compare-children, find-test-children, get-delimited-child-text-selection, get-gui-path-to-child, get-range-as-selected-text, get-visible-rect-in-root-into, graphical-child-visible-at, make-gui-mark, search-next-here, search-prev-here
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Graphic: create-pagination-state, detach, draw-range-as-selected, draw-shadow, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, set-layout, start-pagination, xy-offset-to
メソッド 継承 Visual: add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, get-focus-manager, get-layout-context, get-test-parent, get-test-property, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-caret-position, on-drag-leave, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, scroll-to-include, test-record, test-run, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {ListBoxUI.default ...}

このオブジェクトを作成します。

...: 追加オプションを指定します。



プロパティ詳細
focus? (フィールド)
protected ListBoxUI.focus?:bool =false

現在 ListBoxUI にキーボード フォーカスがあるかどうかを示します。

説明

この値は、 ListBoxUI.on-focus-inListBoxUI.on-focus-out によって自動的に設定されます。通常、サブクラスでこの値を明示的に設定しないでください。

非推奨

代わりに Visual.has-key-focus? を使用します。


has-been-rendered? (フィールド)
public ListBoxUI.has-been-rendered?:bool =false

set-size メソッドが呼び出されたどうかを示します。



selection-anchor (アクセサ)
アクセサ public ListBoxUI.selection-anchor:int
セッター public ListBoxUI.selection-anchor:int

選択アンカーを設定する位置。

説明

値が -1(既定値)ということは、アンカーは非設定されていることを示します。設定時に許容範囲外の値を指定した場合、アンカーは最も近い許容値に設定されます。有効な selection-anchor がない場合 (つまりコントロールのサイズが 0 の場合)、このプロパティは -1 になります。


selection-point (アクセサ)
アクセサ public ListBoxUI.selection-point:int
セッター public ListBoxUI.selection-point:int

選択ポイントの位置。

説明

値が -1(既定値)ということは、ポイントは非設定されていることを示します。設定時に許容範囲外の値を指定した場合、ポイントは最も近い許容値に設定されます。有効な selection-point がない場合 (つまりコントロールのサイズが 0 の場合)、このプロパティは -1 になります。





メソッド詳細
notify-item-selected (メソッド)
public abstract {ListBoxUI.notify-item-selected item:ListItem}:void

ListItem が選択または選択解除されたことをこのオブジェクトに通知します。

item: ListItem

説明

ListItem.selected? の設定によって選択状態が変化するとこのメソッドが呼び出され、コントロールはその内部の選択状態を更新してこれに一致させることができます。

通常、ListBox を使用するコードではこのメソッドを呼び出さないでください。

注意事項

このメソッドは、ListItem が選択されたときだけでなく、選択が解除されたときも呼び出されます。


on-focus-in (メソッド)
public {ListBoxUI.on-focus-in e:FocusIn}:void

FocusIn イベントのスタティック イベント ハンドラ

説明

ListBoxUI.focus? プロパティを true に設定します。


on-focus-out (メソッド)
public {ListBoxUI.on-focus-out e:FocusOut}:void

FocusOut イベントのスタティック イベント ハンドラ

説明

ListBoxUI.focus? プロパティを false に設定します。


rebuild-list (メソッド)
public abstract {ListBoxUI.rebuild-list}:void

ListBox 内の現在の ListItem のセットのビジュアル表現を設定します。

説明

このメソッドは、ボックス全体を最初から再作成する必要がある場合に呼び出されます。現在そこにある各アイテムに対して teardown-item を呼び出し、次に setup-item を呼び出す代わりに、これを呼び出して効率よく実装できます。呼び出されたときには、ListBoxListItem の配列はすでに変更されています。


select-indexes (メソッド)
public {ListBoxUI.select-indexes indexes:{Array-of int}}:void

ListItem を一つ以上選択します。

indexes: 選択する ListItem のインデックスを表す整数の配列です。それ以外の ListItem は選択されません。

説明

新しい選択範囲が ListBox の値の変化を表す場合、このメソッドは ValueChanged イベントを発生させます。
導入: バージョン 6.0


select-range (メソッド)
public {ListBoxUI.select-range
lower:int,
upper:int,
deselect-others?:bool
}:void

ListItem の範囲を選択し、必要に応じて他のすべての選択を解除します。

説明

新しい選択範囲がリストボックスの値の変化を表す場合、このメソッドは ValueChanged イベントを発生させます。
lower: 選択した範囲内の最初の ListItem のインデックス。
upper: 選択した範囲内の最後の ListItem のインデックス。
deselect-others?: true の場合、他のすべてのアイテムは選択を解除されます。


set-size (メソッド)
public {ListBoxUI.set-size lc:LayoutContext, bounds:GRect}:void

このオブジェクトにレイアウト幅と高さを代入します。

説明

このオブジェクトで set-size を呼び出すと、オブジェクトのレイアウト サイズを代入し、オブジェクトのレイアウト ネゴシエーションを完了します。グラフィック階層のすべてのオブジェクトにレイアウト サイズが代入された後で階層のレイアウト ネゴシエーションが完了します。
lc: このレイアウト ネゴシエーションに対して有効な LayoutContext
bounds: このオブジェクトの境界ボックスの左右および上下の範囲をオブジェクトの起点から相対的に示す GRect

プログラミング注意事項

このメソッドは、オブジェクトのグラフィカルな親によって呼び出されます。

オーバーライド

既定のメソッド Graphic.set-size は何も行ないません。Graphicのサブクラスはこのメソッドをオーバーライドして、ここで提供した情報をインターセプトできます。


setup-item (メソッド)
public abstract {ListBoxUI.setup-item i:int}:void

ListBox に追加された ListItem のビジュアル表現を設定します。

i: 設定されるアイテムの位置。

説明

このメソッドは、ListBox がすでに ListItem を作成してそれを配列の i の位置に追加した後で呼び出されます。このメソッドでは、ListItem を視覚的に表示するためのあらゆる処理が実行されます。


teardown-item (メソッド)
public abstract {ListBoxUI.teardown-item i:int}:void

ListBox から削除される ListItem のビジュアル表現を削除します。

説明

このメソッドは、ListBox がアイテム配列の i の位置から ListItem を削除する前に呼び出されます。このメソッドでは、ListItem を視覚的に消去するためのあらゆる処理が実行されます。