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

テキストの選択が行われる SelectionContext です。

説明

TextSelectionContext には、選択されたテキスト (編集可能な場合) への操作が含まれます。特に:


プロパティ
selection:プロジェクトにより保持される、現在の Selection
アクセサ public abstract TextSelectionContext.selection:TextSelection
プロパティ 継承 SelectionContext: can-redo?, can-undo?, container, selection-context-active?
プロパティ 継承 CommandContext: commands
プロパティ 継承 EventTarget: event-handlers

メソッド
create-command:時間をかけてコマンドを作成します。
public {TextSelectionContext.create-command name:String}:#Command
select-all:コンテキスト内のテキストをすべて選択します。
public abstract {TextSelectionContext.select-all}:void
メソッド 継承 SelectionContext: note-selection-context-activated, note-selection-context-deactivated, on-selection-changed, overdraw-selection, redo, select-nothing, 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




プロパティ詳細
selection (アクセサ)
アクセサ public abstract TextSelectionContext.selection:TextSelection

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






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

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

説明

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

オーバーライド

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

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


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

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