GuiRangeSelectionContext (クラス)
public abstract GuiRangeSelectionContext {inherits TextSelectionContext, BaseGuiRangeSelectionContext, ContainerDragScroller, OptionListInterface}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.
直接継承しているサブクラス: View, GuiRangeSelectionFrame

クロス階層の範囲を選択する場合の標準の SelectionContext

説明

このクラスは、そのグラフィカルな子で行われた選択操作を解釈し、GuiRangeSelection を保持して表示します。

使用するには Box に組み込みます。

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

プロパティ
container:この SelectionContext が適用される Graphic
アクセサ public GuiRangeSelectionContext.container:Graphic
range-selection-ui-enabled?:このインスタンスで選択動作が有効になっているかどうかを示します。
アクセサ public GuiRangeSelectionContext.range-selection-ui-enabled?:bool
セッター public GuiRangeSelectionContext.range-selection-ui-enabled?:bool
selection:プロジェクトにより保持される、現在の Selection
アクセサ public GuiRangeSelectionContext.selection:GuiRangeSelection
プロパティ 継承 ContainerDragScroller: ctrl-mode?, dragscrolling?, inner-scroll-buffer
プロパティ 継承 OptionListInterface: option-parent, option-register-proc, options, options-present-here, registered-option-keys, style-options
プロパティ 継承 SelectionContext: can-redo?, can-undo?, selection-context-active?
プロパティ 継承 CommandContext: commands
プロパティ 継承 EventTarget: event-handlers

メソッド
create-command:時間をかけてコマンドを作成します。
public {GuiRangeSelectionContext.create-command name:String}:#Command
note-dragscroll-continued:ドラッグスクロール動作が続いていることを記録します。
public {GuiRangeSelectionContext.note-dragscroll-continued}:void
note-dragscroll-started:ドラッグスクロール動作が開始されたことを記録します。
public {GuiRangeSelectionContext.note-dragscroll-started}:void
note-selection-context-activated:この SelectionContext がアクティブになっていることに注意してください。
public {GuiRangeSelectionContext.note-selection-context-activated
}:void
note-selection-context-deactivated:この SelectionContext が非アクティブになっていることに注意してください。
public {GuiRangeSelectionContext.note-selection-context-deactivated
}:void
on-drag-started:DragStarted イベントのスタティック イベント ハンドラ
public {GuiRangeSelectionContext.on-drag-started e:DragStarted}:void
on-pointer-press:PointerPress イベントのスタティック イベント ハンドラ
public {GuiRangeSelectionContext.on-pointer-press e:PointerPress}:void
on-pointer-release:PointerRelease イベントのスタティック イベント ハンドラ
public {GuiRangeSelectionContext.on-pointer-release}:void
overdraw-selected-leaf:アフォーダンスを描画して、現在 leaf が範囲内で選択されていることを示します。
protected {GuiRangeSelectionContext.overdraw-selected-leaf}:void
overdraw-selection:この選択コンテキストに存在する g の上に、選択アフォーダンスを描画します。
public {GuiRangeSelectionContext.overdraw-selection}:void
select:選択アンカーを設定し、指定された場所を参照します。
public {GuiRangeSelectionContext.select
anchor:GuiMark,
point:GuiMark
}:void
select-all:コンテキスト内のテキストをすべて選択します。
public {GuiRangeSelectionContext.select-all}:void
select-nothing:このコンテキストの選択をクリアします。
public {GuiRangeSelectionContext.select-nothing}:void
メソッド 継承 ContainerDragScroller: note-dragscroll-ended, on-grab-release, on-pointer-motion, start-dragscroll
メソッド 継承 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, notify-option-children, option-change-notify, option-changed, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, 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
メソッド 継承 SelectionContext: on-selection-changed, 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-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-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-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
メソッド 継承 InitRestArgParser: non-keyword-init-arg, process-rest-args
メソッド 継承 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 {GuiRangeSelectionContext.default}

GuiRangeSelectionContext を作成します。




プロパティ詳細
container (アクセサ)
アクセサ public GuiRangeSelectionContext.container:Graphic

この SelectionContext が適用される Graphic

説明

ネストされた SelectionContext のメンバではない、この Graphic の内容 (グラフィカルな子を含む) は、いずれもオブジェクトによる選択候補になります。


range-selection-ui-enabled? (アクセサ)
アクセサ public GuiRangeSelectionContext.range-selection-ui-enabled?:bool
セッター public GuiRangeSelectionContext.range-selection-ui-enabled?:bool

このインスタンスで選択動作が有効になっているかどうかを示します。



selection (アクセサ)
アクセサ public GuiRangeSelectionContext.selection:GuiRangeSelection

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






メソッド詳細
create-command (メソッド)
public {GuiRangeSelectionContext.create-command name:String}:#Command

時間をかけてコマンドを作成します。

説明

通常は直接呼び出されません。代わりに、CommandContext.get-command を呼び出すことを検討してください。

オーバーライド

要求されたときにこの CommandContext で動的にインスタンス化する必要があるコマンドの場合は、このメソッドをオーバーライドします。スーパークラスから動的に作成されたコマンドも同様に継承したい場合は、必ずこのメソッドのスーパークラスの実装も呼び出してください。

なお、コマンドは、クラスのコンストラクタでメソッド CommandContext.add-command を呼び出して指定することもできます。パフォーマンスの理由と、サブクラスでコマンドをオーバーライドできるようにするために、このメソッドを代わりに使用することを推奨します。


note-dragscroll-continued (メソッド)
public {GuiRangeSelectionContext.note-dragscroll-continued}:void

ドラッグスクロール動作が続いていることを記録します。

x: 操作が連続して行われる、水平位置です。
y: 操作が続いている垂直のポイントです。

説明

このメソッドは、マウスが移動するときに呼び出されます。または、自動スクロールのタイマーが開始された場合は、それが発生する定期間隔で呼び出されます。


note-dragscroll-started (メソッド)
public {GuiRangeSelectionContext.note-dragscroll-started}:void

ドラッグスクロール動作が開始されたことを記録します。

x: 操作が開始される、水平位置です。
y: 操作が開始された垂直のポイントです。


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

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

オーバーライド

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


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

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

オーバーライド

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


on-drag-started (メソッド)
public {GuiRangeSelectionContext.on-drag-started e:DragStarted}:void

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

説明

スタティック イベント ハンドラの一般的な情報については、GuiEventTarget.on-pointer-event を参照してください。


on-pointer-press (メソッド)
public {GuiRangeSelectionContext.on-pointer-press e:PointerPress}:void

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

説明

スタティック イベント ハンドラの一般的な情報については、GuiEventTarget.on-pointer-event を参照してください。


on-pointer-release (メソッド)
public {GuiRangeSelectionContext.on-pointer-release}:void

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

説明

スタティック イベント ハンドラの一般的な情報については、GuiEventTarget.on-pointer-event を参照してください。


overdraw-selected-leaf (メソッド)
protected {GuiRangeSelectionContext.overdraw-selected-leaf}:void

アフォーダンスを描画して、現在 leaf が範囲内で選択されていることを示します。

オーバーライド

範囲内の別々に選択されたグラフィックの表示方法を変更するには、このメソッドをオーバーライドします。


overdraw-selection (メソッド)
public {GuiRangeSelectionContext.overdraw-selection}:void

この選択コンテキストに存在する g の上に、選択アフォーダンスを描画します。

説明

このメソッドは、Curl の描画メカニズムにより呼び出されます。通常は、直接呼び出す必要はありません。

オーバーライド

このメソッドの実装では、gc で設定された clipping-rectangle が gセル境界になるように設定される必要があることに注意してください。これにより、SelectionContextg's のボーダーとマージン、ならびに g の境界の上に選択アフォーダンスを描画できるようになります。このメソッドの実装では、特に g で関連する描画メソッドを呼び出す前に、さらにクリップを実行する方が適した場合があります。


select (メソッド)
public {GuiRangeSelectionContext.select
anchor:GuiMark,
point:GuiMark
}:void

選択アンカーを設定し、指定された場所を参照します。

例外のスロー

InvalidGuiRangeException — 入力が有効でない場合、またはこの SelectionContext 内で Graphic を参照しない場合。


select-all (メソッド)
public {GuiRangeSelectionContext.select-all}:void

コンテキスト内のテキストをすべて選択します。



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

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