StandardRichTextAreaUI (クラス)
public StandardRichTextAreaUI {inherits {StandardMultiLineTextControlUI-of RichTextArea, RichTextString, RichTextStringGraphic }, GenericRichTextAreaUI}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-UI-STANDARD.

RichTextArea の標準 look-and-feel を実装します。

説明

詳細については RichTextAreaUI を参照してください。

コンストラクタ
default:このオブジェクトを作成します。
コンストラクタ public {StandardRichTextAreaUI.default ...}

プロパティ
control-appearance-changeable?:look-and-feel または標準のオプション親のどちらがコントロールの外観の基準になるかを決定します。
非ローカル オプション public StandardRichTextAreaUI.control-appearance-changeable?:bool
control-color:このオプションで、コントロールのボタン部分の主な色を設定します。
非ローカル オプション public StandardRichTextAreaUI.control-color:FillPattern
control-content-background:このオプションは、コントロール内容が背景を持つ場合にその色を制御します。
非ローカル オプション public StandardRichTextAreaUI.control-content-background:Background
プロパティ 継承 GenericRichTextAreaUI: edit-panel, formatting-panel, formatting-panel-elements, point-for-style-override, style-override
プロパティ 継承 BaseMultiLineTextControlUI-of: enabled?, scrollbox
プロパティ 継承 StandardBaseTextControlUI-of: grapheme-cluster-boundary-locator, paragraph-boundary-locator, prepared-test-recording, word-boundary-locator
プロパティ 継承 BaseTextControlUIImpl: bias-backwards?, draw-as-prompt?, input-method-info
プロパティ 継承 BaseMultiLineTextControlUI: updating-range-for-same-home-position?
プロパティ 継承 BaseTextControlUI-of: string-graphic
プロパティ 継承 ContainerDragScroller: ctrl-mode?, dragscrolling?, inner-scroll-buffer
プロパティ 継承 InputMethodClient: supports-inline-mode?
プロパティ 継承 Frame: clonable-class?, halign, halign-spec, hstretch?, hstretch?-spec, style-element, valign, valign-spec, vstretch?, vstretch?-spec
プロパティ 継承 ControlUI: color, control, copy-options, focus-skin, font-family, font-style, font-weight, skin, text-breakable?, text-line-through?, text-preserve-whitespace?, text-underline?
プロパティ 継承 BaseFrame: child, completely-clonable-children?, graphical-children, ordered-children, reverse-ordered-children, width-first?
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 OptionListInterface: option-register-proc, options-present-here, registered-option-keys
プロパティ 継承 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?, display-context, 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, cursor, data-source, dragee, font-size, 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

メソッド
create-contents:テキスト コントロールの Visual コンテンツを作成します。
protected {StandardRichTextAreaUI.create-contents}:Visual
create-main-panel:StandardRichTextAreaUI のユーザー インターフェイス パネルをコンテナ パネルに配置します。
protected {StandardRichTextAreaUI.create-main-panel
formatting-panel:#Graphic,
edit-panel:Graphic
}:Graphic
create-string-graphic:テキスト コントロールの文字コンテンツを表示する StringGraphic を作成します。
protected {StandardRichTextAreaUI.create-string-graphic
}:RichTextStringGraphic
draw-caret:挿入ポイントにキャレットを描画します。
public {StandardRichTextAreaUI.draw-caret renderer2d:Renderer2d}:void
get-caret-rectangle:キャレットをレンダリングするのに使用される四角形を取得します。
public {StandardRichTextAreaUI.get-caret-rectangle
index:int,
bias-backwards?:bool = self.bias-backwards?
}:(left:Distance, top:Distance, width:Distance, height:Distance)
get-value-display-string:表示される String を返します。
protected {StandardRichTextAreaUI.get-value-display-string
}:RichTextString
on-composition-result-event:CompositionResultEvent イベントのスタティック イベント ハンドラ
public {StandardRichTextAreaUI.on-composition-result-event}:void
react-to-state-change:コントロールの状態が変更された場合に、コントロールの外観を変更します。
public {StandardRichTextAreaUI.react-to-state-change}:void
メソッド 継承 GenericRichTextAreaUI: create-formatting-panel, create-formatting-panel-elements, get-rich-text-value-display-string, handle-style-override-after-insertion, set-style-override-attribute, test-set-attribute, test-splice-string
メソッド 継承 BaseMultiLineTextControlUI-of: get-end-of-line-for-caret-index, get-start-of-line-for-caret-index, shift-caret-index-by-lines, update-point-for-x-home
メソッド 継承 StandardBaseTextControlUI-of: constrain-height, draw, get-width-preference, on-drag-over, on-drag-started, on-drop, on-focus-out, on-key-press, on-pointer-press, on-pointer-release, on-start-composition-event, overdraw-control
メソッド 継承 BaseTextControlUIImpl: fire-action-at-control
メソッド 継承 BaseTextControlUI-of: attempt-revalidate-layout, get-caret-index-for-position, get-position-for-caret-index, handle-caret-position-request, handle-reconversion-request, internal-start-composition, note-dragscroll-continued, on-composition-change-event, on-end-composition-event, on-focus-in, reset-caret-alarm, set-size, start-caret-alarm, stop-caret-alarm
メソッド 継承 BaseTextControlUI: on-context-menu-event
メソッド 継承 ContainerDragScroller: note-dragscroll-ended, note-dragscroll-started, on-grab-release, on-pointer-motion, start-dragscroll
メソッド 継承 InputMethodClient: handle-font-request
メソッド 継承 Frame: add, clone-appearance-helper, remove-child
メソッド 継承 ControlUI: fire-event-at-control, react-to-visual-change
メソッド 継承 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-pointer, 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
メソッド 継承 BaseFrame: add-internal, after-reposition, allocate-layout-object, before-reposition, compute-child-bounds, compute-parent-elastic, constrain-width, end-pagination, get-height-preference, get-text, install-child-bounds, internal-remove-child, note-attached, note-detaching, notify-option-children, paginate, pick-child, propagate-request-layout, register-options
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 BasicBox: contains-point?, find-graphic-at, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, request-layout, validate-layout
メソッド 継承 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, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, 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
メソッド 継承 Box: clear, compare-children, find-test-children, get-delimited-child-text-selection, get-gui-path-to-child, get-range-as-selected-text, get-visible-rect-in-root-into, graphical-child-visible-at, make-gui-mark, search-next-here, search-prev-here
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Graphic: create-pagination-state, detach, draw-range-as-selected, draw-shadow, find-ancestor, 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, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, set-layout, start-pagination, xy-offset-to
メソッド 継承 Visual: add-from-init-args, 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, 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
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {StandardRichTextAreaUI.default ...}

このオブジェクトを作成します。

...: 追加オプションを指定します。



プロパティ詳細
control-appearance-changeable? (非ローカル オプション)
public StandardRichTextAreaUI.control-appearance-changeable?:bool

look-and-feel または標準のオプション親のどちらがコントロールの外観の基準になるかを決定します。

説明

詳細は、control-appearance-changeable? を参照してください。


control-color (非ローカル オプション)
public StandardRichTextAreaUI.control-color:FillPattern

このオプションで、コントロールのボタン部分の主な色を設定します。

説明

これは効果がありません。ただし、ノンローカルオプション ControlFrame.control-appearance-changeable? が true で、標準のルック アンド フィールが使用されている場合は別です。バージョン7.0の既定であるスキンが適用可能なルック アンド フィールでは、コントロールの色は、スキンによって決定されます。
7.0 以上のアプレットでは、標準のルック アンド フィールは明示的に指定する必要があります。install-standard-look-and-feel を呼び出すことによって、アプレット全体に StandardLookAndFeel を適用することが出来ます。また、以下のサンプルに示されるように、 install-style-sheet-on-Graphic プロシージャを使うことも出来ます。標準のルック アンド フィールは、6.0 以前のアプレットでは既定です。ただし、Macintosh プラットフォームは除きます。


{def samples = 
    {HBox valign="bottom", spacing = 4pt,
        control-appearance-changeable? = true, 
        control-color = "cornflowerblue",
        {CommandButton label = "Sample Button"},
        {CheckButton label = "Sample"},
        {Scrollbar width = .8in, direction = "horizontal"},
        {ComboBox width = 1.2in, prompt = "Choose One", 
            "First", "Second", "Third"
        },
        {TextField width = 1.0in, value = "Sample text"}
    }
}
{install-style-sheet-on-Graphic samples, null,
    look-and-feel = the-standard-look-and-feel
}


control-content-background (非ローカル オプション)
public StandardRichTextAreaUI.control-content-background:Background

このオプションは、コントロール内容が背景を持つ場合にその色を制御します。


例: control-content-background の指定
{HBox valign="bottom", spacing=4pt,
    control-appearance-changeable?=true,
    control-content-background="yellow",
    {CommandButton label="Sample Button"},
    {CheckButton label="Sample"},
    {Scrollbar width=.8in, direction=Orientation.horizontal},
    {ComboBox width=1.2in, prompt="Choose One", "First", "Second"},
    {TextField width=1.0in, value="Sample text"}
}





メソッド詳細
create-contents (メソッド)
protected {StandardRichTextAreaUI.create-contents}:Visual

テキスト コントロールの Visual コンテンツを作成します。

説明

このクラスのデフォルト コンストラクタによって呼び出されます。
導入: バージョン 6.0


create-main-panel (メソッド)
protected {StandardRichTextAreaUI.create-main-panel
formatting-panel:#Graphic,
edit-panel:Graphic
}:Graphic

StandardRichTextAreaUI のユーザー インターフェイス パネルをコンテナ パネルに配置します。

formatting-panel:
RichTextArea.display-formatting-panel? が true の場合、このパネルにユーザ インターフェイス要素が含まれ、これによりエンド ユーザーは様々なフォーマット属性を変更することができます。display-formatting-panel? が false の場合、これは null になります。
この値は、通常 create-formatting-panel を呼び出した結果になります。
edit-panel: テキストの編集可能領域があるパネル。

戻り値

edit-panel を含む Graphic。null 以外の場合は formatting-panel

説明

StandardRichTextAreaUI のプロパティや他の要素が変更されると常に、このメソッドが呼び出されます。そのような場合、ユーザ インターフェイス要素を再生成しなければならない場合があります。通常、これは、react-to-state-change の間に発生します。


create-string-graphic (メソッド)
protected {StandardRichTextAreaUI.create-string-graphic
}:RichTextStringGraphic

テキスト コントロールの文字コンテンツを表示する StringGraphic を作成します。

説明

このクラスのデフォルト コンストラクタによって呼び出されます。
導入: バージョン 6.0

オーバーライド

実装では、最初に StringGraphic のタイプが作成することを決定する LookAndFeel オブジェクトを考慮するべきです。例えば、以下は TextFieldUI の実装コードです。
def type = {self.look-and-feel.get-string-graphic {type-of self}} {if-non-null type then {if-non-null maker = {type.get-instance-maker "default"} then ||"" {return {maker.new ""} asa StringGraphic} } } || Fallback {return {StringGraphic ""}}


draw-caret (メソッド)
public {StandardRichTextAreaUI.draw-caret renderer2d:Renderer2d}:void

挿入ポイントにキャレットを描画します。

renderer2d: この操作の Renderer2d
導入: バージョン 7.0


get-caret-rectangle (メソッド)
public {StandardRichTextAreaUI.get-caret-rectangle
index:int,
bias-backwards?:bool = self.bias-backwards?
}:(left:Distance, top:Distance, width:Distance, height:Distance)

キャレットをレンダリングするのに使用される四角形を取得します。

index: キャレットのインデックスです。 最初の文字の直前のインデックスは、0 です。最後の文字の直後のインデックスは、{self.get-text}.size です。インデックス 1 は 1 番目の文字と 2 番目の文字の間です。
bias-backwards?: index が 2 つのグラフィック位置を参照できる場合、true であればこの値は最初の位置が使用されるべきです。そうでなければ(既定)、2 番目の位置が使用されます。

戻り値

キャレットの四角形の左、右、幅、高さです。
導入: バージョン 7.0


get-value-display-string (メソッド)
protected {StandardRichTextAreaUI.get-value-display-string
}:RichTextString

表示される String を返します。

説明

これは、StringGraphicの値を得るために react-to-state-change から呼び出されます。
導入: バージョン 6.0


on-composition-result-event (メソッド)
public {StandardRichTextAreaUI.on-composition-result-event}:void

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

説明

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


react-to-state-change (メソッド)
public {StandardRichTextAreaUI.react-to-state-change}:void

コントロールの状態が変更された場合に、コントロールの外観を変更します。

オーバーライド

サブクラスは、ロールオーバー、押される、無効化、チェック、またはこれらの組み合わせなどオブジェクトの状態が変更されたときに必要な動作を実行するように、これをオーバーライドする必要があります。オブジェクトはこのクラスのすべてのオブジェクトと、enabled? などの既存のプロパティにアクセスして、何を実行すべきかを想定します。