{BaseTextControl-of tValue:Type, tDataModel:Type, tRange:Type } (クラス)
package abstract sealed BaseTextControl-of {inherits {MultiUIValueControlFrame-of tValue}, WritableTextSelectionContext}
パッケージ: CURL.GUI.CONTROLS
この項目はサポートされていません。内部使用限定となっています。

プロパティ
can-redo?:redo 操作が実行できるかどうかを示します。
アクセサ public BaseTextControl-of.can-redo?:bool
can-undo?:undo 操作が実行できるかどうかを示します。
アクセサ public BaseTextControl-of.can-undo?:bool
container:この SelectionContext が適用される Graphic
アクセサ public BaseTextControl-of.container:Graphic
data-model:このオブジェクトに関連付けられている StringDataModel
アクセサ public BaseTextControl-of.data-model:tDataModel
セッター public BaseTextControl-of.data-model:tDataModel
form-value:
このコントロールを含む HttpForm の送信時に送信される、このオブジェクトの値。
既定値は value で、必要に応じて String に変換されます。
アクセサ public BaseTextControl-of.form-value:any
has-value?:この Control は値を持っているかどうかを示します。
アクセサ public BaseTextControl-of.has-value?:bool
max-chars:テキスト フィールドに入力される最大文字数。既定値は -1 です。
アクセサ public BaseTextControl-of.max-chars:int
セッター public BaseTextControl-of.max-chars:int
pending-value?:現在ユーザーが値を変更しているどうかを示します。
フィールド public BaseTextControl-of.pending-value?:bool =false
prompt:このオブジェクトに値がない場合に表示される String
アクセサ public BaseTextControl-of.prompt:#tValue
セッター public BaseTextControl-of.prompt:#tValue
record-for-undo?:undo の記録を行うかどうかを示します。
フィールド public BaseTextControl-of.record-for-undo?:bool =true
selected-range:現在選択されている data-model の範囲を表す StringDataModelRange
アクセサ public BaseTextControl-of.selected-range:tRange
selection:プロジェクトにより保持される、現在の Selection
アクセサ public BaseTextControl-of.selection:TextSelection
value:適切な型によるこのコントロールの現在の値。
アクセサ public BaseTextControl-of.value:tValue
セッター public abstract ValueControl-of.value:tValue
プロパティ 継承 WritableTextSelectionContext: writable?
プロパティ 継承 MultiUIControlFrame: _ui-object, _ui-set-locally?, control-appearance-changeable?, display-context, focus-object, look-and-feel, ui-object
プロパティ 継承 ValueControl-of: value-as-any, value-type
プロパティ 継承 ControlFrame: color, control-color, control-content-background, enabled?, font-family, font-size, font-style, font-weight, style-element, text-breakable?, text-line-through?, text-preserve-whitespace?, text-underline?, visible?
プロパティ 継承 SelectionContext: selection-context-active?
プロパティ 継承 BaseFrame: child, clonable-class?, completely-clonable-children?, graphical-children, halign-spec, hstretch?-spec, ordered-children, reverse-ordered-children, valign-spec, vstretch?-spec, width-first?
プロパティ 継承 CommandBinding: bound-command, bound-command-impl
プロパティ 継承 Control: control-container, dialog, focus-skin, form, skin
プロパティ 継承 CommandContext: commands
プロパティ 継承 ActiveTraversor: _active-traversal-container, active-traversal-container, mnemonic, tab-index, takes-focus?, valid?, validation-result
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 Visual: _style-element, cursor, data-source, dragee, input-method-enabled?, input-method-keyboard-mode, name, options, options-present-here, style-class, style-manager, style-options, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
プロパティ 継承 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?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, selection-context, shadow-color, shadow-spec, vorigin, width
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 OptionListInterface: option-register-proc, registered-option-keys

メソッド
become-active-from-traversal:トラバースによるアクティブ化に応答します。
public {BaseTextControl-of.become-active-from-traversal
forward?:bool = true
}:bool
clear-undo-stack:このオブジェクトの undo スタックをリセットします。
public {BaseTextControl-of.clear-undo-stack}:void
delete-selection:現在の選択の内容を削除します。
public {BaseTextControl-of.delete-selection}:void
end-undo-typing-sequence:現在の undo タイピング シーケンスを終了します。
public {BaseTextControl-of.end-undo-typing-sequence}:void
handle-observer-message:監視対象のオブジェクトがメッセージを送信するときにこのメソッドを呼び出します。Observer はこのメソッドを実装して、変更が発生したときに処理を実行する必要があります。
protected {BaseTextControl-of.handle-observer-message
sender:Observable,
message:any
}:void
note-selection-context-activated:この SelectionContext がアクティブになっていることに注意してください。
public {BaseTextControl-of.note-selection-context-activated}:void
note-selection-context-deactivated:この SelectionContext が非アクティブになっていることに注意してください。
public {BaseTextControl-of.note-selection-context-deactivated}:void
on-focus-out:FocusOut イベントのスタティック イベント ハンドラ
public {BaseTextControl-of.on-focus-out e:FocusOut}:void
record-typing-deletion-for-undo:undo のスタックに削除のタイピング操作を記録します。
public {BaseTextControl-of.record-typing-deletion-for-undo
num-chars:int,
forward?:bool = false
}:void
record-typing-for-undo:undo のスタックに入力操作を記録します。
public {BaseTextControl-of.record-typing-for-undo ch:char}:void
redo:SelectionContextで最も最近発生した undo 操作の効果を元に戻します。
public {BaseTextControl-of.redo}:void
replace-selection-with-string:現在の選択の内容を text で置き換えます。
public {BaseTextControl-of.replace-selection-with-string
text-to-insert:StringInterface
}:void
request-undo-stack-depth-limit:undo スタックの深さ制限をリクエストします。
public final {BaseTextControl-of.request-undo-stack-depth-limit
val:int
}:void
select-all:コンテキスト内のテキストをすべて選択します。
public {BaseTextControl-of.select-all}:void
select-nothing:このコンテキストの選択をクリアします。
public {BaseTextControl-of.select-nothing}:void
set-value-with-events:インタラクティブに値を設定するユーザーをシミュレーションします。
public {BaseTextControl-of.set-value-with-events val:tValue}:void
undo:SelectionContextで最も最近発生した操作の効果を元に戻します。
public {BaseTextControl-of.undo}:void
unset-value:値をコントロールの既定値に戻すか、初期化されていない状態があればその状態に戻します。
public {BaseTextControl-of.unset-value}:void
メソッド 継承 MultiUIValueControlFrame-of: unset-property
メソッド 継承 WritableTextSelectionContext: create-command
メソッド 継承 MultiUIControlFrame: create-default-ui-object, generate-ui-object, handle-look-and-feel-change, on-focus-in, option-changed, option-lookup-here, option-propagate-notify, react-to-state-change, react-to-visual-change, request-key-focus, set-layout
メソッド 継承 ControlFrame: become-active, clear
メソッド 継承 SelectionContext: on-selection-changed, overdraw-selection, selection-context-request-activate
メソッド 継承 BaseFrame: add-internal, after-reposition, allocate-layout-object, attempt-revalidate-layout, before-reposition, clone-appearance-helper, 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, set-size
メソッド 継承 Control: on-pointer-press
メソッド 継承 GuiEventTarget: 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-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-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
メソッド 継承 BasicBox: contains-point?, find-graphic-at, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 StandardActiveTraversor: fire-event-at-container, handle-mnemonic, on-key-press
メソッド 継承 Observer: observe, stop-observing
メソッド 継承 ActiveTraversor: mark-invalid, mark-valid
メソッド 継承 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
メソッド 継承 Visual: add, add-from-init-args, add-option, add-style-option, 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, release-key-focus, remove-option, remove-style-option, 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
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 Box: compare-children, find-test-children, get-delimited-child-text-selection, get-range-as-selected-text, get-visible-rect-in-root-into, graphical-child-visible-at, make-gui-mark, search-next-here, search-prev-here
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 Graphic: create-pagination-state, detach, draw-range-as-selected, draw-shadow, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, 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, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, start-pagination, xy-offset-to
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, update-data-binding, validate-data-binding
メソッド 継承 OptionListInterface: 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-set?, propagate-option-change, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize




プロパティ詳細
can-redo? (アクセサ)
アクセサ public BaseTextControl-of.can-redo?:bool

redo 操作が実行できるかどうかを示します。

導入: バージョン 6.0


can-undo? (アクセサ)
アクセサ public BaseTextControl-of.can-undo?:bool

undo 操作が実行できるかどうかを示します。

導入: バージョン 6.0


container (アクセサ)
アクセサ public BaseTextControl-of.container:Graphic

この SelectionContext が適用される Graphic

説明

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


data-model (アクセサ)
アクセサ public BaseTextControl-of.data-model:tDataModel
セッター public BaseTextControl-of.data-model:tDataModel

このオブジェクトに関連付けられている StringDataModel

注意事項

データ モデルを設定すると、その新規データ モデルの内容に一致するよう value が変更されます。この値を設定すると、現在のデータ モデルの内容が変更されます。


form-value (アクセサ)
アクセサ public BaseTextControl-of.form-value:any

このコントロールを含む HttpForm の送信時に送信される、このオブジェクトの値。
既定値は value で、必要に応じて String に変換されます。



has-value? (アクセサ)
アクセサ public BaseTextControl-of.has-value?:bool

この Control は値を持っているかどうかを示します。

説明

ValueControl は通常はこのゲッターに true を返し、これはこのメソッドの既定の実装になります。ただし特定のタイプの ValueControlfalse を返して、最初の値のない状態にあることを示します。

たとえば、TextFieldComboBox はそれらの値がプログラミングで、またはインタラクティブに設定されておらず、プロンプト を示している場合に false を返します。

RadioButton が選択されていない RadioFramefalse を返す必要があります。

一方、RadioButtonCheckButton などの多くのコントロールは、そのような初期化されていない状態ではないため、つねに true を返します。

has-value? が false のときに ValueControl.value-as-any ゲッターが返す値はクラスに依存することに注意してください。詳細については、各クラスのドキュメントを参照してください。


max-chars (アクセサ)
アクセサ public BaseTextControl-of.max-chars:int
セッター public BaseTextControl-of.max-chars:int

テキスト フィールドに入力される最大文字数。既定値は -1 です。

説明

上限に達すると、テキスト フィールドに文字の入力や貼り付けができなくなります。値 -1 は、入力できる文字数の制約がないことを表します。

注意事項

このプロパティを設定した結果として、unset-value によりコントロールの値が設定解除されます。


pending-value? (フィールド)
public BaseTextControl-of.pending-value?:bool =false

現在ユーザーが値を変更しているどうかを示します。

説明

つまり、pending-value? はユーザーがテキスト コントロールに入力している間は true で、それ以外のときは false です。

pending-value? が false のコントロールにユーザーが初めて入力すると、そのコントロールの pending-value? は true に設定され、ValueChanged イベントが送信されます。ユーザーが値の入力を完了して ValueFinished イベントが送信されるまで、pending-value? は false に戻りません。

このプロパティには Curl 言語に必要な特定の意味構造があるため、決してアプリケーションで設定しないでください。


prompt (アクセサ)
アクセサ public BaseTextControl-of.prompt:#tValue
セッター public BaseTextControl-of.prompt:#tValue

このオブジェクトに値がない場合に表示される String

説明

プロンプトは、"ここに名前を入力してください" などのように、ユーザーに手順を示す場合に便利です。プロンプトを指定しない場合、has-value?false のときにはコントロールは空欄です。


record-for-undo? (フィールド)
public BaseTextControl-of.record-for-undo?:bool =true

undo の記録を行うかどうかを示します。

説明

このフィールドの目的は、次のコンストラクタで一時的に undo の記録を停止することです。:
{with tf.record-for-undo? = false do ...}
どのような状況でも undo の記録を停止するためには、パラメータを 0 にして request-undo-stack-depth-limit を呼び出してください。
導入: バージョン 6.0


selected-range (アクセサ)
アクセサ public BaseTextControl-of.selected-range:tRange

現在選択されている data-model の範囲を表す StringDataModelRange

注意事項

Selection を変更する標準インターフェイスは、SelectionContext のメソッドと Command を使用することに注意してください。このアクセッサでは、直接的なプログラム操作を行なうために選択範囲に直接アクセスできるようにします。


selection (アクセサ)
アクセサ public BaseTextControl-of.selection:TextSelection

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



value (アクセサ)
アクセサ public BaseTextControl-of.value:tValue
セッター public abstract ValueControl-of.value:tValue

適切な型によるこのコントロールの現在の値。






メソッド詳細
become-active-from-traversal (メソッド)
public {BaseTextControl-of.become-active-from-traversal
forward?:bool = true
}:bool

トラバースによるアクティブ化に応答します。

説明

このクラスの既定の実装では、ActiveTraversor.become-active が呼び出されます。トラバースとその以外のアクティブ化方法とを区別する必要がある場合にのみ、既定の実装をオーバーライドします。
forward?: トラバースが前方に移動する場合 (Tab キー) は true、後方に移動する場合 (Shift + Tab キー) は false です。一般にユーザー コードでは既定値 true を使用します。

戻り値

このオブジェクトがアクティブになる予定であれば true、それ以外の場合は false です。


clear-undo-stack (メソッド)
public {BaseTextControl-of.clear-undo-stack}:void

このオブジェクトの undo スタックをリセットします。

説明

このメソッドは、このオブジェクトが現在の値を初期値として生成されたかのように undo スタックから全てのエントリを取り除きます。
導入: バージョン 6.0


delete-selection (メソッド)
public {BaseTextControl-of.delete-selection}:void

現在の選択の内容を削除します。

説明

選択が空でない場合、選択の内容は削除されます。選択が空の場合、このメソッドは何ら影響を与えません。いずれの場合も、結果の選択は空になりますが、有効なロケーションを持ちます。


end-undo-typing-sequence (メソッド)
public {BaseTextControl-of.end-undo-typing-sequence}:void

現在の undo タイピング シーケンスを終了します。

説明

undo がユニットとして全シーケンスを扱えるように、record-typing-for-undorecord-typing-deletion-for-undo メソッドは一連のタイピング操作を結合させようとします。
このメソッドはプロセスにおける現在のあらゆるシーケンスを終了させます。
導入: バージョン 6.0


handle-observer-message (メソッド)
protected {BaseTextControl-of.handle-observer-message
sender:Observable,
message:any
}:void

監視対象のオブジェクトがメッセージを送信するときにこのメソッドを呼び出します。Observer はこのメソッドを実装して、変更が発生したときに処理を実行する必要があります。

sender: 変更があった Observable オブジェクトです。
message: これは、Observer からの変更に関する詳細情報が含まれています。詳細情報がない場合は NULL になります。


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

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

オーバーライド

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


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

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

オーバーライド

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


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

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

説明

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


record-typing-deletion-for-undo (メソッド)
public {BaseTextControl-of.record-typing-deletion-for-undo
num-chars:int,
forward?:bool = false
}:void

undo のスタックに削除のタイピング操作を記録します。

num-chars: 削除される char の数です。
forward?: 削除する方向です。false(既定)は backspace キーのように後方に削除します。truedelete キーのように前方に削除します。

説明

undo がユニットとして全シーケンスを扱えるように、このメソッドは一連のタイピング操作を結合させようとします。
record-typing-for-undoend-undo-typing-sequence も参照して下さい。

注意事項

このメソッドを呼び出す前に record-for-undo? を確認します。
導入: バージョン 6.0


record-typing-for-undo (メソッド)
public {BaseTextControl-of.record-typing-for-undo ch:char}:void

undo のスタックに入力操作を記録します。

ch: タイプされた文字。

説明

undo がユニットとして全シーケンスを扱えるように、このメソッドは一連のタイピング操作を結合させようとします。

注意事項

このメソッドを呼び出す前に record-for-undo? を確認します。
導入: バージョン 6.0


redo (メソッド)
public {BaseTextControl-of.redo}:void

SelectionContextで最も最近発生した undo 操作の効果を元に戻します。

導入: バージョン 6.0


replace-selection-with-string (メソッド)
public {BaseTextControl-of.replace-selection-with-string
text-to-insert:StringInterface
}:void

現在の選択の内容を text で置き換えます。

text: 現在の選択の置き換えに使用されるテキストの StringInterface です。

説明

選択が空でない場合、選択の内容は削除され、その場所に text が挿入されます。選択は空であるが、有効なロケーションにある場合 (例:これが編集可能なテキスト コントロールの点滅キャレットを表す場合)、空の選択のロケーションに text が挿入されます。いずれの場合も、挿入されるテキストは、操作が完了してから選択されます。

選択が、有効なロケーションを持たない場合、エラーが発生します。


request-undo-stack-depth-limit (メソッド)
public final {BaseTextControl-of.request-undo-stack-depth-limit
val:int
}:void

undo スタックの深さ制限をリクエストします。

説明

値がマイナスの場合、undo スタックの制限はありません。値が 0 の場合は、undo が発生しません。そうでなければ、undo スタックはアイテムのこの数に制限されます。既定値は 100 です。
Curl® の将来のバージョンでは、undo スタックはこのオブジェクトの直接的な制御下にない可能性があります。そうであれば、このオブジェクトによって完全にリクエストを満たせないことがあるかもしれません。それでも、このクラスのオブジェクトができるだけそのリクエストを操作すべきです。特に、マイナスの値のリクエストによって undo スタックの深さが解除され、0 の値によって他のオブジェクトではなくこのオブジェクトの undo が止められ、正の値のリクエストによって少なくとも多くのレベルの undo が利用できるようになるべきです。
導入: バージョン 6.0


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

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



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

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



set-value-with-events (メソッド)
public {BaseTextControl-of.set-value-with-events val:tValue}:void

インタラクティブに値を設定するユーザーをシミュレーションします。

説明

テキスト コントロールの値を設定し、値が実際に変化したときに ValueChangedValueFinished イベントを発生させます。

注意事項

値が変化しなかったときでも ValueFinished が発生する場合があります。


undo (メソッド)
public {BaseTextControl-of.undo}:void

SelectionContextで最も最近発生した操作の効果を元に戻します。

導入: バージョン 6.0


unset-value (メソッド)
public {BaseTextControl-of.unset-value}:void

値をコントロールの既定値に戻すか、初期化されていない状態があればその状態に戻します。

説明

詳細については、ValueControl.has-value? を参照してください。