DiscreteSelectionContext (クラス)
public abstract DiscreteSelectionContext {inherits SelectionContext}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.
直接継承しているサブクラス: DiscreteGraphicSelectionContext

個別オブジェクトの順序付けられていない選択を管理する選択コンテキストのスーパークラス。

説明

このクラスは、SelectableAdded および SelectableRemoved イベントを、それ自体と、その選択内容が代わったときに影響を受ける Selectable で発生させます。

コンストラクタ
default:この DiscreteSelectionContext を作成します。
コンストラクタ public {DiscreteSelectionContext.default}

プロパティ
multiple-selection-enabled?:このコンテキストで複数アイテムの選択が可能であるかどうかを調べます。
アクセサ public DiscreteSelectionContext.multiple-selection-enabled?:bool
セッター public DiscreteSelectionContext.multiple-selection-enabled?:bool
selection:プロジェクトにより保持される、現在の Selection
アクセサ public DiscreteSelectionContext.selection:DiscreteSelection
プロパティ 継承 SelectionContext: can-redo?, can-undo?, container, selection-context-active?
プロパティ 継承 CommandContext: commands
プロパティ 継承 EventTarget: event-handlers

メソッド
deselect:現在の選択からアイテムを削除します。
public {DiscreteSelectionContext.deselect s:Selectable}:void
internal-fire-event-at-selectable:Selectable をターゲットとする SelectionEvent を発生させます。
protected {DiscreteSelectionContext.internal-fire-event-at-selectable}:void
note-selection-context-activated:この SelectionContext がアクティブになっていることに注意してください。
public {DiscreteSelectionContext.note-selection-context-activated
}:void
note-selection-context-deactivated:この SelectionContext が非アクティブになっていることに注意してください。
public {DiscreteSelectionContext.note-selection-context-deactivated
}:void
select:現在の選択にアイテムを追加します。
public {DiscreteSelectionContext.select
s:Selectable,
additive?:bool = false
}:void
select-nothing:このコンテキストの選択をクリアします。
public {DiscreteSelectionContext.select-nothing}:void
swap-selection:このオブジェクトの選択プロパティを、新しい DiscreteSelection に変更します。
protected {DiscreteSelectionContext.swap-selection
new-selection:DiscreteSelection
}:void
メソッド 継承 SelectionContext: create-command, on-selection-changed, overdraw-selection, redo, selection-context-request-activate, undo
メソッド 継承 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-enter, on-drag-leave, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, 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-inspection, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-enter, on-pointer-envelope-event, on-pointer-event, on-pointer-leave, on-pointer-motion, on-pointer-press, 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-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
メソッド 継承 CommandContext: add-command, command-enabled?, command-supported?, do-command, get-command, request-update-commands
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



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

この DiscreteSelectionContext を作成します。




プロパティ詳細
multiple-selection-enabled? (アクセサ)
アクセサ public DiscreteSelectionContext.multiple-selection-enabled?:bool
セッター public DiscreteSelectionContext.multiple-selection-enabled?:bool

このコンテキストで複数アイテムの選択が可能であるかどうかを調べます。



selection (アクセサ)
アクセサ public DiscreteSelectionContext.selection:DiscreteSelection

プロジェクトにより保持される、現在の Selection






メソッド詳細
deselect (メソッド)
public {DiscreteSelectionContext.deselect s:Selectable}:void

現在の選択からアイテムを削除します。

s: Selectable オブジェクト。

説明

このメソッドは、セットに追加またはセットから除外されるすべての Selectable をターゲットとする、SelectableAdded イベントと SelectableRemoved イベントを発生させます。コンテキスト自身をターゲットとする 1 つの SelectionChanged イベントが発生します。

s が現在の選択の中にない場合、このメソッドは何もせずに終了します。


internal-fire-event-at-selectable (メソッド)
protected {DiscreteSelectionContext.internal-fire-event-at-selectable}:void

Selectable をターゲットとする SelectionEvent を発生させます。

オーバーライド

これらのイベントを発生させる前または後に処理を追加したい場合は、サブクラスでこのメソッドをオーバーライドします。


note-selection-context-activated (メソッド)
public {DiscreteSelectionContext.note-selection-context-activated
}:void

この SelectionContext がアクティブになっていることに注意してください。

オーバーライド

このメソッドをオーバーライドするサブクラスは、必ずスーパークラスの実装を呼び出す必要があります。


note-selection-context-deactivated (メソッド)
public {DiscreteSelectionContext.note-selection-context-deactivated
}:void

この SelectionContext が非アクティブになっていることに注意してください。

オーバーライド

このメソッドをオーバーライドするサブクラスは、必ずスーパークラスの実装を呼び出す必要があります。


select (メソッド)
public {DiscreteSelectionContext.select
s:Selectable,
additive?:bool = false
}:void

現在の選択にアイテムを追加します。

s: Selectable オブジェクト。
additive?: アイテムを現在の選択に追加する (true) のか、アイテムで現在の選択を置き換えるのか (false) を示す bool

説明

このメソッドは、セットに追加またはセットから削除されるすべての Selectable をターゲットとする、SelectableAdded イベントと SelectableRemoved イベントを発生させます。コンテキスト自身をターゲットとする 1 つの SelectionChanged イベントが発生します。

additive? が true で、sが現在の選択の中にすでにある場合、このメソッドは何もせずに終了します。


select-nothing (メソッド)
public {DiscreteSelectionContext.select-nothing}:void

このコンテキストの選択をクリアします。



swap-selection (メソッド)
protected {DiscreteSelectionContext.swap-selection
new-selection:DiscreteSelection
}:void

このオブジェクトの選択プロパティを、新しい DiscreteSelection に変更します。

説明

このメソッドは、新旧両方の Selectable および自分自身をターゲットとする、必要な通知イベントをすべて生成し、発生させます。