(クラス)
この項目はサポートされていません。内部使用限定となっています。
アクセサ public BaseTextControl-of.can-redo?:
bool
アクセサ public BaseTextControl-of.can-undo?:
bool
アクセサ public BaseTextControl-of.container:
Graphic
アクセサ public BaseTextControl-of.data-model:tDataModel
セッター public BaseTextControl-of.data-model:tDataModel
| form-value: | このコントロールを含む HttpForm の送信時に送信される、このオブジェクトの値。
既定値は value で、必要に応じて String に変換されます。 |
アクセサ public BaseTextControl-of.form-value:
any
アクセサ public BaseTextControl-of.has-value?:
bool
アクセサ public BaseTextControl-of.max-chars:
int セッター public BaseTextControl-of.max-chars:
int
フィールド public BaseTextControl-of.pending-value?:
bool =false
アクセサ public BaseTextControl-of.prompt:#tValue
セッター public BaseTextControl-of.prompt:#tValue
フィールド public BaseTextControl-of.record-for-undo?:
bool =true
アクセサ public BaseTextControl-of.selected-range:tRange
| value: | 適切な型によるこのコントロールの現在の値。 |
アクセサ public BaseTextControl-of.value:tValue
セッター public abstract ValueControl-of.value:tValue
プロパティ 継承 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? プロパティ 継承 BaseFrame:
child, clonable-class?, completely-clonable-children?, graphical-children, halign-spec, hstretch?-spec, ordered-children, reverse-ordered-children, valign-spec, vstretch?-spec, width-first? プロパティ 継承 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 プロパティ 継承 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
| public | {BaseTextControl-of.become-active-from-traversal}:bool |
| public | {BaseTextControl-of.clear-undo-stack}:void |
| public | {BaseTextControl-of.delete-selection}:void |
| public | {BaseTextControl-of.end-undo-typing-sequence}:void |
| protected | {BaseTextControl-of.handle-observer-message}:void |
| public | {BaseTextControl-of.note-selection-context-activated}:void |
| public | {BaseTextControl-of.note-selection-context-deactivated}:void |
| public | {BaseTextControl-of.record-typing-deletion-for-undo num-chars:int,forward?:bool = false }:void |
| public | {BaseTextControl-of.record-typing-for-undo ch:char}:void |
| public | {BaseTextControl-of.redo}:void |
| public | {BaseTextControl-of.replace-selection-with-string}:void |
| public final | {BaseTextControl-of.request-undo-stack-depth-limit}:void |
| public | {BaseTextControl-of.select-all}:void |
| public | {BaseTextControl-of.select-nothing}:void |
| public | {BaseTextControl-of.set-value-with-events val:tValue}:void |
| public | {BaseTextControl-of.undo}:void |
| public | {BaseTextControl-of.unset-value}:void |
メソッド 継承 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 メソッド 継承 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 メソッド 継承 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 メソッド 継承 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 メソッド 継承 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 メソッド 継承 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
(アクセサ)
アクセサ public BaseTextControl-of.can-redo?:
bool redo 操作が実行できるかどうかを示します。
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseTextControl-of.can-undo?:
bool undo 操作が実行できるかどうかを示します。
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseTextControl-of.container:
Graphic この SelectionContext が適用される Graphic。
説明
ネストされた
SelectionContext のメンバではない、この
Graphic の内容 (グラフィカルな子を含む) は、いずれもオブジェクトによる選択候補になります。
(アクセサ)
アクセサ public BaseTextControl-of.data-model:tDataModel
セッター public BaseTextControl-of.data-model:tDataModel
このオブジェクトに関連付けられている StringDataModel。
注意事項
データ モデルを設定すると、その新規データ モデルの内容に一致するよう
value が変更されます。この値を設定すると、現在のデータ モデルの内容が変更されます。
(アクセサ)
アクセサ public BaseTextControl-of.form-value:
any このコントロールを含む HttpForm の送信時に送信される、このオブジェクトの値。
既定値は
value で、必要に応じて String に変換されます。
(アクセサ)
アクセサ public BaseTextControl-of.has-value?:
bool この Control は値を持っているかどうかを示します。
説明
ValueControl は通常はこのゲッターに
true を返し、これはこのメソッドの既定の実装になります。ただし特定のタイプの
ValueControl は
false を返して、最初の値のない状態にあることを示します。
たとえば、
TextField と
ComboBox はそれらの値がプログラミングで、またはインタラクティブに設定されておらず、
プロンプト を示している場合に
false を返します。
RadioButton が選択されていない
RadioFrame も
false を返す必要があります。
一方、
RadioButton や
CheckButton などの多くのコントロールは、そのような初期化されていない状態ではないため、つねに
true を返します。
has-value? が false のときに
ValueControl.value-as-any ゲッターが返す値はクラスに依存することに注意してください。詳細については、各クラスのドキュメントを参照してください。
(アクセサ)
アクセサ public BaseTextControl-of.max-chars:
int セッター public BaseTextControl-of.max-chars:
int テキスト フィールドに入力される最大文字数。既定値は -1 です。
説明
上限に達すると、テキスト フィールドに文字の入力や貼り付けができなくなります。値 -1 は、入力できる文字数の制約がないことを表します。
注意事項
(フィールド)
public BaseTextControl-of.pending-value?:
bool =false
現在ユーザーが値を変更しているどうかを示します。
説明
つまり、
pending-value? はユーザーがテキスト コントロールに入力している間は true で、それ以外のときは false です。
pending-value? が
false のコントロールにユーザーが初めて入力すると、そのコントロールの pending-value? は
true に設定され、
ValueChanged イベントが送信されます。ユーザーが値の入力を完了して
ValueFinished イベントが送信されるまで、pending-value? は
false に戻りません。
このプロパティには Curl 言語に必要な特定の意味構造があるため、決してアプリケーションで設定しないでください。
(アクセサ)
アクセサ public BaseTextControl-of.prompt:#tValue
セッター public BaseTextControl-of.prompt:#tValue
このオブジェクトに値がない場合に表示される String。
説明
プロンプトは、"ここに名前を入力してください" などのように、ユーザーに手順を示す場合に便利です。プロンプトを指定しない場合、
has-value? が
false のときにはコントロールは空欄です。
(フィールド)
public BaseTextControl-of.record-for-undo?:
bool =true
undo の記録を行うかどうかを示します。
説明
このフィールドの目的は、次のコンストラクタで一時的に undo の記録を停止することです。:
{with tf.record-for-undo? = false do ...}
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseTextControl-of.selected-range:tRange
(アクセサ)
プロジェクトにより保持される、現在の Selection。
(アクセサ)
アクセサ public BaseTextControl-of.value:tValue
セッター public abstract ValueControl-of.value:tValue
(メソッド)
| public | {BaseTextControl-of.become-active-from-traversal}:bool |
トラバースによるアクティブ化に応答します。
説明
forward?: トラバースが前方に移動する場合 (Tab キー) は true、後方に移動する場合 (Shift + Tab キー) は false です。一般にユーザー コードでは既定値 true を使用します。
戻り値
このオブジェクトがアクティブになる予定であれば true、それ以外の場合は false です。
(メソッド)
| public | {BaseTextControl-of.clear-undo-stack}:void |
このオブジェクトの undo スタックをリセットします。
説明
このメソッドは、このオブジェクトが現在の値を初期値として生成されたかのように undo スタックから全てのエントリを取り除きます。
導入:
バージョン 6.0
(メソッド)
| public | {BaseTextControl-of.delete-selection}:void |
現在の選択の内容を削除します。
説明
選択が空でない場合、選択の内容は削除されます。選択が空の場合、このメソッドは何ら影響を与えません。いずれの場合も、結果の選択は空になりますが、有効なロケーションを持ちます。
(メソッド)
| public | {BaseTextControl-of.end-undo-typing-sequence}:void |
現在の undo タイピング シーケンスを終了します。
説明
このメソッドはプロセスにおける現在のあらゆるシーケンスを終了させます。
導入:
バージョン 6.0
(メソッド)
| protected | {BaseTextControl-of.handle-observer-message}:void |
監視対象のオブジェクトがメッセージを送信するときにこのメソッドを呼び出します。Observer はこのメソッドを実装して、変更が発生したときに処理を実行する必要があります。
sender: 変更があった Observable オブジェクトです。
message: これは、Observer からの変更に関する詳細情報が含まれています。詳細情報がない場合は NULL になります。
(メソッド)
| public | {BaseTextControl-of.note-selection-context-activated}:void |
この SelectionContext がアクティブになっていることに注意してください。
オーバーライド
このメソッドをオーバーライドするサブクラスは、必ずスーパークラスの実装を呼び出す必要があります。
(メソッド)
| public | {BaseTextControl-of.note-selection-context-deactivated}:void |
この SelectionContext が非アクティブになっていることに注意してください。
オーバーライド
このメソッドをオーバーライドするサブクラスは、必ずスーパークラスの実装を呼び出す必要があります。
(メソッド)
(メソッド)
| public | {BaseTextControl-of.record-typing-deletion-for-undo num-chars:int,forward?:bool = false }:void |
undo のスタックに削除のタイピング操作を記録します。
num-chars: 削除される
char の数です。
forward?: 削除する方向です。false(既定)は backspace キーのように後方に削除します。true は delete キーのように前方に削除します。
説明
undo がユニットとして全シーケンスを扱えるように、このメソッドは一連のタイピング操作を結合させようとします。
注意事項
導入:
バージョン 6.0
(メソッド)
| public | {BaseTextControl-of.record-typing-for-undo ch:char}:void |
undo のスタックに入力操作を記録します。
ch: タイプされた文字。
説明
undo がユニットとして全シーケンスを扱えるように、このメソッドは一連のタイピング操作を結合させようとします。
注意事項
導入:
バージョン 6.0
(メソッド)
| public | {BaseTextControl-of.redo}:void |
(メソッド)
| public | {BaseTextControl-of.replace-selection-with-string}:void |
現在の選択の内容を text で置き換えます。
説明
選択が空でない場合、選択の内容は削除され、その場所に text が挿入されます。選択は空であるが、有効なロケーションにある場合 (例:これが編集可能なテキスト コントロールの点滅キャレットを表す場合)、空の選択のロケーションに text が挿入されます。いずれの場合も、挿入されるテキストは、操作が完了してから選択されます。
選択が、有効なロケーションを持たない場合、エラーが発生します。
(メソッド)
| public final | {BaseTextControl-of.request-undo-stack-depth-limit}:void |
undo スタックの深さ制限をリクエストします。
説明
値がマイナスの場合、undo スタックの制限はありません。値が 0 の場合は、undo が発生しません。そうでなければ、undo スタックはアイテムのこの数に制限されます。既定値は 100 です。
Curl® の将来のバージョンでは、undo スタックはこのオブジェクトの直接的な制御下にない可能性があります。そうであれば、このオブジェクトによって完全にリクエストを満たせないことがあるかもしれません。それでも、このクラスのオブジェクトができるだけそのリクエストを操作すべきです。特に、マイナスの値のリクエストによって undo スタックの深さが解除され、0 の値によって他のオブジェクトではなくこのオブジェクトの undo が止められ、正の値のリクエストによって少なくとも多くのレベルの undo が利用できるようになるべきです。
導入:
バージョン 6.0
(メソッド)
| public | {BaseTextControl-of.select-all}:void |
(メソッド)
| public | {BaseTextControl-of.select-nothing}:void |
(メソッド)
| public | {BaseTextControl-of.set-value-with-events val:tValue}:void |
インタラクティブに値を設定するユーザーをシミュレーションします。
説明
注意事項
(メソッド)
| public | {BaseTextControl-of.undo}:void |
(メソッド)
| public | {BaseTextControl-of.unset-value}:void |
値をコントロールの既定値に戻すか、初期化されていない状態があればその状態に戻します。
説明