(クラス)
この項目はサポートされていません。内部使用限定となっています。
コンストラクタ public | {TextEditPanel.default buffer:#TextEditBuffer = null,mode:TextEditMode = text-mode,url:#Url = null,allow-focus?:bool = true,allow-input?:bool = true,logical-cursor-navigation?:bool = false,h-compress-order:int = rigid-compress-order,h-stretch-order:int = rigid-stretch-order,h-min-chars:int = 0,h-max-chars:int = max-int,v-compress-order:int = rigid-compress-order,v-stretch-order:int = rigid-stretch-order,v-min-chars:int = 0,v-max-chars:int = max-int,layout-thunk:#{proc-type {TextEditPanel}:void} = null,activation-thunk:#{proc-type {TextEditPanel, bool}:void} = null,update-status-thunk:#{proc-type {TextEditPanel}:void} = null,status-msg-thunk:#{proc-type {String}:void} = null,update-font-proc:#{proc-type {TextEditPanel}:void} = null,bypass-undo-maintenance?:bool = false,... } |
非ローカル オプション public TextEditPanel.control-content-background:
Background
アクセサ public final inline TextEditPanel.size:
int
アクセサ public TextEditPanel.style-element:
String プロパティ 継承 Graphic:
avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, clip-child-shadows?, discrete-select-in-range?, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visible?, visual-parent, vorigin, width プロパティ 継承 Visual:
_style-element, clonable-class?, completely-clonable-children?, cursor, data-source, dragee, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
protected | {TextEditPanel.compute-height-preference}:Dimension |
draw: | このオブジェクトの可視表現を描画します。 |
public | {TextEditPanel.get-insertion-point}:(row:int, col:int) |
public | {TextEditPanel.get-range-as-selected-text}:void |
public | {TextEditPanel.handle-reconversion-request }:(value:String, handled?:bool) |
public | {TextEditPanel.load-from-url url:Url}:void |
public | {TextEditPanel.note-dragscroll-continued}:void |
public | {TextEditPanel.note-dragscroll-ended}:void |
public | {TextEditPanel.on-composition-change-event}:void |
public | {TextEditPanel.on-composition-result-event}:void |
public | {TextEditPanel.on-end-composition-event}:void |
public | {TextEditPanel.on-start-composition-event}:void |
public | {TextEditPanel.paginate}:(PaginationState, PaginationQuality) |
public | {TextEditPanel.search-next-here}:(pattern-start:#GuiMark, pattern-end:#GuiMark) |
public | {TextEditPanel.search-prev-here}:(#GuiMark, #GuiMark) |
public | {TextEditPanel.set-insertion-point row:int, col:int}:void |
protected | {TextEditPanel.update-font-metrics}:void |
public | {TextEditPanel.update-syntax to-row:int}:void |
メソッド 継承 Graphic:
after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, constrain-width, contains-point?, create-pagination-state, detach, draw-range-as-selected, draw-shadow, end-pagination, find-ancestor, find-graphic-at, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, graphical-child-visible-at, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paint-with-decorations, pointer-enter-occurred, pointer-leave-occurred, replace-with, request-draw, request-draw-rect, request-layout, request-pointer-trace, search-next, search-prev, set-layout, start-pagination, xy-offset-to メソッド 継承 GuiEventTarget:
handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drop, on-focus-event, 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-key-event, on-pointer-button, on-pointer-crossing, on-pointer-event, 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-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-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, animate, change-cursor, clear, clonable-appearance?, clone-appearance, clone-appearance-helper, find-test-children, get-focus-manager, get-gui-path-to-child, get-layout-context, get-test-parent, get-test-property, get-text, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-attached, note-caret-position, note-detaching, on-drag-leave, on-pointer-envelope-event, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, 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 メソッド 継承 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-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
(コンストラクタ)
public | {TextEditPanel.default buffer:#TextEditBuffer = null,mode:TextEditMode = text-mode,url:#Url = null,allow-focus?:bool = true,allow-input?:bool = true,logical-cursor-navigation?:bool = false,h-compress-order:int = rigid-compress-order,h-stretch-order:int = rigid-stretch-order,h-min-chars:int = 0,h-max-chars:int = max-int,v-compress-order:int = rigid-compress-order,v-stretch-order:int = rigid-stretch-order,v-min-chars:int = 0,v-max-chars:int = max-int,layout-thunk:#{proc-type {TextEditPanel}:void} = null,activation-thunk:#{proc-type {TextEditPanel, bool}:void} = null,update-status-thunk:#{proc-type {TextEditPanel}:void} = null,status-msg-thunk:#{proc-type {String}:void} = null,update-font-proc:#{proc-type {TextEditPanel}:void} = null,bypass-undo-maintenance?:bool = false,... } |
この項目はサポートされていません。内部使用限定となっています。
(非ローカル オプション)
public TextEditPanel.control-content-background:
Background このオプションは、コントロール内容が背景を持つ場合にその色を制御します。
例
例:
control-content-background の指定 |
|
{HBox valign="bottom", spacing=4pt,
control-appearance-changeable?=true,
control-content-background="yellow",
{ComboBox width=1.2in, prompt="Choose One", "First", "Second"},
{TextField width=1.0in, value="Sample text"}
}
| |
(アクセサ)
アクセサ public final inline TextEditPanel.size:
int
この項目はサポートされていません。内部使用限定となっています。
(アクセサ)
アクセサ public TextEditPanel.style-element:
String スタイリングの目的のための、この Visual の "要素" や "型" です。
説明
オーバーライド
Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入:
バージョン 6.0
(メソッド)
protected | {TextEditPanel.compute-height-preference}:Dimension |
この TextEditPanel の高さ設定を算出します。
説明
TextEditPanel が、垂直スクロール バーを持ち伸長性に関するフラッグが適切に設定 (vstrech? = true) されている
ScrollBox の内部にある場合、この値は垂直スクロール ボックスを表示するかどうか決定し、さらに表示する場合はスライダの大きさを決定するためだけに使われます。結果は通常、この TextEditPanel のバッファ内の行数に基づいて決まります。
(メソッド)
このオブジェクトの可視表現を描画します。
オーバーライド
(メソッド)
この Graphic の高さ設定を返します。
戻り値
オーバーライド
このメソッドは、
Graphic のサブクラス内で定義する必要があります。
このメソッドをオーバライドするクラスでは必ず
Dimension を返すようにして、これで必要な垂直軸に沿ったスペースを
そのオブジェクトの起点との関係を含めて表します。実際には、これはこのメソッドが適切な
OriginElastic または
Dimension を返すことを意味します。
Dimension の場合は、「
次元から OriginElastics への変換」で説明する変換規則に従って、適切な
OriginElastic に変換されます。
(メソッド)
public | {TextEditPanel.get-insertion-point}:(row:int, col:int) |
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
public | {TextEditPanel.get-range-as-selected-text}:void |
start-bound と end-bound 間の、このグラフィック内に含まれる選択したテキストを取得します。
start-bound: グラフィック内の開始ポイントを区切る
GuiMark。null の場合、開始ポイントはグラフィックの先頭の端と見なされます。
end-bound: グラフィック内の終了ポイントを区切る
GuiMark。null の場合、終了ポイントは、グラフィックの最後の端と見なされます。
オーバーライド
通常コンテナは再帰的に呼び出しを実行して、適切な区切り文字を挿入します。その他のサブクラスは、直接テキストを提供します。
(メソッド)
この Graphic の幅設定を返します。
戻り値
オーバーライド
このメソッドは、
Graphic のサブクラスで定義する必要があります。
このメソッドをオーバライドするクラスでは必ず
Dimension を返すようにして、これで必要な水平軸に沿ったスペースを
そのオブジェクトの起点との関係を含めて表します。実際には、これはこのメソッドが適切な
OriginElastic または
Dimension を返すことを意味します。
Dimension の場合は、「
次元から OriginElastics への変換」で説明する変換規則に従って、適切な
OriginElastic に変換されます。
(メソッド)
キャレットの位置を提供します。
戻り値
説明
インプット メソッドがキャレットの位置をクエリする必要がよくあります。この一般的な理由は、インプット メソッド ウィンドウをキャレットに近い位置にグラフィック上で合わせるためです。
このリクエストが行われると、クライアント オブジェクトは現在のキャレットの位置を表す InputMethodCaretPosition を返します。位置が返されない場合、インプット メソッドは通常、既定の動作に戻ります (たとえば、キャレットが View の左上隅にあると想定します)。
注意事項
InputMethodCaretPosition の座標は InputMethodClient の座標系にある必要があります。
(メソッド)
public | {TextEditPanel.handle-reconversion-request }:(value:String, handled?:bool) |
再変換する String を提供します。
戻り値
リクエストが処理される場合は、String および true です。それ以外の場合は (既定)、任意の値および false です。
説明
インプット メソッドでは、シーケンスを入れ替えるために以前に入力したテキストを表示することができます。
このリクエストが行われると、クライアント オブジェクトは再変換のための String を返します。これは通常、現在選択されているコンテンツです。クライアント オブジェクトは通常、String をそのコンテンツから削除します。これは、文字列が元のコンテンツとして一度表示され、さらに再変換されたコンテンツとしてもう一度表示されるような、二重表示を避けるためです。
(メソッド)
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
public | {TextEditPanel.load-from-url url:Url}:void |
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
この Graphic を参照する GuiMark を作成する標準的な方法。
戻り値
初期化されてグラフィックの先頭の端に新しく割り当てられた GuiMark。
オーバーライド
GuiMark のカスタム サブクラスが Graphic のコンテンツを参照する必要がある場合、Graphic のサブクラスでこのメソッドをオーバーライドします。
(メソッド)
public | {TextEditPanel.note-dragscroll-continued}:void |
ドラッグスクロール動作が続いていることを記録します。
x: 操作が連続して行われる、水平位置です。
y: 操作が続いている垂直のポイントです。
説明
このメソッドは、マウスが移動するときに呼び出されます。または、自動スクロールのタイマーが開始された場合は、それが発生する定期間隔で呼び出されます。
(メソッド)
public | {TextEditPanel.note-dragscroll-ended}:void |
ドラッグスクロール動作が終了したことを記録します。
(メソッド)
public | {TextEditPanel.on-composition-change-event}:void |
(メソッド)
public | {TextEditPanel.on-composition-result-event}:void |
(メソッド)
(メソッド)
(メソッド)
public | {TextEditPanel.on-end-composition-event}:void |
(メソッド)
(メソッド)
(メソッド)
(メソッド)
(メソッド)
(メソッド)
public | {TextEditPanel.on-start-composition-event}:void |
(メソッド)
public | {TextEditPanel.paginate}:(PaginationState, PaginationQuality) |
グラフィックにパジネーションを適用します。
page-height: グラフィックをページにレンダリングするのに有効な高さ。これには、ボーダーとマージンが占めるスペースは含まれません。
next-page-height: このグラフィックが次のページに移動される場合に、このグラフィックをパジネートするのに有効な高さ。
戻り値
プログラミング注意事項
オーバーライド
Graphic 自身が何らかの具体的な方法でページ間でパジネーションを実行するようにしたい場合は、このメソッドをオーバーライドします。
このメソッドをオーバーライドするときは、以下の規則に従う必要があります。
page-height が負または無視できるほどである場合は、返されたパジネーション状態がオブジェクトの現在のパジネーション状態であり、返されたパジネーションの質が PaginationQuality.clipped-outside でなければなりません。
Box などのコンテナ (パジネーションによってその子をページ間で分割しないようにする場合)。このようなコンテナは、現行ページに子を収容できない場合は、次の 2 つのステップに従う必要があります。
2. 子にパジネーションを依頼し、返された
PaginationQuality が
PaginationQuality.good 以上であれば、現行ページで子のパジネーションを開始する。そうでなければ、コンテナが、
true として渡される
query-only? と、独自の
Graphic.paginate メソッドに渡された
next-page-height として渡される
page-height および
next-page-heightとで
Graphic.paginate メソッドを呼び出して子を次のページに押し込んだ場合に子のパジネーションが少なくとも
PaginationQuality.good になるかどうかを調べる必要があります。PaginationQuality.good である場合は子を次のページに押し込み、そうでない場合は子が現行ページからパジネーションするようにします。
コンテナは、子グラフィックを直接パジネーションさせるのではなく、子グラフィックの
Layout にパジネーションを依頼する必要があるので、注意してください。
以下は、Graphic.paginate がどのようにして実装されるかを示すコードです。
{method public open {paginate
page-height:Distance,
next-page-height:Distance,
query-only?:bool
}:(PaginationState, PaginationQuality)
let pstate:PaginationState =
{self.get-pagination-state query-only?}
let bounds:GRect = pstate.bounds
let constant epsilon:Distance = epsilon-float * 1m
|| All done.
{if {abs bounds.descent - pstate.end-offset} < epsilon then
set pstate.start-offset = pstate.end-offset
{return pstate, PaginationQuality.complete}
}
|| No space left for the graphic.
{if page-height < epsilon then
{return pstate, PaginationQuality.clipped-outside}
}
let new-start-offset:Distance = pstate.min-end-offset
let new-end-offset:Distance =
{min new-start-offset + page-height, bounds.descent}
{return
{pstate.advance-pagination
new-start-offset,
new-end-offset,
quality-if-not-complete = PaginationQuality.poor
}
}
}
注意事項
(メソッド)
public | {TextEditPanel.search-next-here}:(pattern-start:#GuiMark, pattern-end:#GuiMark) |
この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。通常このメソッドは、アプリケーション コードから直接呼び出しません。代わりに Graphic.search-next を呼び出します。
gm: 検索を開始する
GuiMark。指定しない場合は
Graphic の先端から検索を開始します。
gm を指定する場合、
gm.graphic がこのメソッドを呼び出す
Graphic に
等しくなければならない点に注意してください。
戻り値
パターンの開始を定める GuiMark と、終了を定める GuiMark。
説明
searchable? が true であるグラフィカルな子は、この Graphic の内容とともに再帰的に検索されます。
オーバーライド
このメソッドの基本実装は常に null, null を返します。SearchPattern を実際に識別して探し出せる Graphic のサブクラスでは、それを実行するためにこのメソッドをオーバーライドする必要があります。
(メソッド)
public | {TextEditPanel.search-prev-here}:(#GuiMark, #GuiMark) |
この Graphic 内か、その子の 1 つに現れるパターンの境界を返します。通常このメソッドは、アプリケーション コードから直接呼び出しません。代わりに Graphic.search-prev を呼び出します。
gm: 検索を開始する
GuiMark。指定しない場合は
Graphic の左端から検索を開始します。
gm を指定する場合、
gm.graphic がこのメソッドを呼び出す
Graphic に
等しくなければならない点に注意してください。
戻り値
パターンの開始を定める GuiMark と、終了を定める GuiMark。
説明
searchable? が true であるグラフィカルな子は、この Graphic の内容とともに再帰的に検索されます。
オーバーライド
このメソッドの基本実装は常に null, null を返します。SearchPattern を実際に識別して探し出せる Graphic のサブクラスでは、それを実行するためにこのメソッドをオーバーライドする必要があります。
(メソッド)
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
public | {TextEditPanel.set-insertion-point row:int, col:int}:void |
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
このオブジェクトにレイアウト幅と高さを代入します。
説明
このオブジェクトで set-size を呼び出すと、オブジェクトのレイアウト サイズを代入し、オブジェクトのレイアウト ネゴシエーションを完了します。グラフィック階層のすべてのオブジェクトにレイアウト サイズが代入された後で階層のレイアウト ネゴシエーションが完了します。
bounds: このオブジェクトの境界ボックスの左右および上下の範囲をオブジェクトの起点から相対的に示す
GRect。
プログラミング注意事項
このメソッドは、オブジェクトのグラフィカルな親によって呼び出されます。
オーバーライド
(メソッド)
protected | {TextEditPanel.update-font-metrics}:void |
(メソッド)
public | {TextEditPanel.update-syntax to-row:int}:void |
この項目はサポートされていません。内部使用限定となっています。
(メソッド)
この項目はサポートされていません。内部使用限定となっています。