ReactiveLabel (クラス)
public ReactiveLabel {inherits Label}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-LOGICAL.

コントロールに使用されるユーザー定義ラベルのセットをカプセル化し、操作の状態の変化に応じてラベルも変化できるようにします。

注意事項

現在、これらはボタン形式のコントールでのみ使用できます。
このオブジェクトは、"ReactiveLabel"のスタイル ルールを記述することによってスタイル化することが出来ます。

コンストラクタ
default:ボタン形式のコントロールによりオプションで表示されるさまざまな状態のラベルを保存します。
コンストラクタ public {ReactiveLabel.default mnemonic:char = Label.no-mnemonic, ...}

プロパティ
current-label:この ReactiveLabel 内に現在表示されているラベル。
フィールド public-get private-set ReactiveLabel.current-label:#Visual =null
label:既定で表示されるラベル。
ローカル オプション public ReactiveLabel.label:#Visual ={text}
label-checked:CheckButton の値が true になったときなど、コントロールがチェックされると表示されるラベル。
ローカル オプション public ReactiveLabel.label-checked:#Visual =null
label-disabled:コントロールが無効なときに表示されるラベル。
ローカル オプション public ReactiveLabel.label-disabled:#Visual =null
label-disabled-checked:コントロールが無効で、そのコントロールの値が true のときに表示されるラベル。
ローカル オプション public ReactiveLabel.label-disabled-checked:#Visual =null
label-pressed:コントロールが押されたときに表示されるラベル。
ローカル オプション public ReactiveLabel.label-pressed:#Visual =null
label-pressed-checked:コントロールが押され、そのコントロールの値が true のときに表示されるラベル。
ローカル オプション public ReactiveLabel.label-pressed-checked:#Visual =null
label-rollover:ポインタがそのコントロールをロールオーバーすると表示されるラベル。
ローカル オプション public ReactiveLabel.label-rollover:#Visual =null
label-rollover-checked:ポインタがそのコントロールをロールオーバーし、そのコントロールの値が true のときに表示されるラベル。
ローカル オプション public ReactiveLabel.label-rollover-checked:#Visual =null
style-element:スタイリングの目的のための、この Visual の "要素" や "型" です。
アクセサ public ReactiveLabel.style-element:String
プロパティ 継承 Label: clonable-class?, mnemonic
プロパティ 継承 Frame: halign, halign-spec, hstretch?, hstretch?-spec, valign, valign-spec, vstretch?, vstretch?-spec
プロパティ 継承 BaseFrame: child, completely-clonable-children?, graphical-children, ordered-children, reverse-ordered-children, width-first?
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 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, 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, 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
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 OptionListInterface: option-register-proc, options-present-here, registered-option-keys

メソッド
get-text:可視オブジェクトの内容を表す文字列を取得します。
public {ReactiveLabel.get-text}:String
show-label:既定のラベルを表示します。
public {ReactiveLabel.show-label}:void
show-label-checked:チェックされたラベルを表示します。
public {ReactiveLabel.show-label-checked}:void
show-label-disabled:無効なラベルを表示します。
public {ReactiveLabel.show-label-disabled}:void
show-label-disabled-checked:無効にされてチェックされているラベルを表示します。
public {ReactiveLabel.show-label-disabled-checked}:void
show-label-pressed:押されたラベルを表示します。
public {ReactiveLabel.show-label-pressed}:void
show-label-pressed-checked:押されてチェックされているラベルを表示します。
public {ReactiveLabel.show-label-pressed-checked}:void
show-label-rollover:ロールオーバー ラベルを表示します。
public {ReactiveLabel.show-label-rollover}:void
show-label-rollover-checked:チェックされたロールオーバー ラベルを表示します。
public {ReactiveLabel.show-label-rollover-checked}:void
メソッド 継承 Label: clone-appearance-helper
メソッド 継承 Frame: add, remove-child
メソッド 継承 BaseFrame: add-internal, after-reposition, allocate-layout-object, attempt-revalidate-layout, before-reposition, compute-child-bounds, compute-parent-elastic, constrain-height, constrain-width, draw, end-pagination, get-height-preference, 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
メソッド 継承 BasicBox: contains-point?, find-graphic-at, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, request-layout, validate-layout
メソッド 継承 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
メソッド 継承 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
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 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-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-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-event, 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-changed, 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
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 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
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {ReactiveLabel.default mnemonic:char = Label.no-mnemonic, ...}

ボタン形式のコントロールによりオプションで表示されるさまざまな状態のラベルを保存します。

説明

ボタン形式のコントロールの場合、ラベルおよびリアクティブ ラベルを指定すると (その labelreactive-label プロパティを使用して)、リアクティブ ラベル自体の label= プロパティ値が使用されます。指定したラベルは無視されます。
mnemonic: label から何も抽出できなかった場合にニーモニックとして使用される文字。
...: 以下のラベル関連の設定を含む各種のオプション設定。この設定には、任意の Visual オブジェクトを指定できます。


{CheckButton
    enabled? = true,
    || The following is ignored since reactive-label is also
    || specified and its own label= argument is set
    label = "The button &ignores this label",
    reactive-label =
        {ReactiveLabel
            label = {Label "&Send to All "},
            label-rollover = {Label color = "orange", "&Send to All!"},
            label-pressed = {Label font-weight = "bold", color = "red", "&Send to All!"},
            label-disabled = {Label color="black", "&Send to All"},
            label-checked = {Label color="purple", "&Send to All"},
            label-rollover-checked = {Label color="orange", "&Send to All!"},
            label-pressed-checked = {Label color = "red", "&Send to All"},
            label-disabled-checked = {Label color="black", "&Send to All"}
        }
}



プロパティ詳細
current-label (フィールド)
public-get private-set ReactiveLabel.current-label:#Visual =null

この ReactiveLabel 内に現在表示されているラベル。

説明

コンストラクタに渡されるラベルが Label の場合、そのニーモニックはこの ReactiveLabel のニーモニックになります。これは定数であり、変更できないことに注意してください。

プログラミング注意事項

ラベルの内容に関する情報が必要な ControlUI クラスで必ず使用されます。たとえば、現在のラベルに null が設定されている CheckButton は、フォーカス ボックスの描画を行なってはいけないという場合です。


label (ローカル オプション)
public ReactiveLabel.label:#Visual ={text}

既定で表示されるラベル。



label-checked (ローカル オプション)
public ReactiveLabel.label-checked:#Visual =null

CheckButton の値が true になったときなど、コントロールがチェックされると表示されるラベル。

プログラミング注意事項

CheckButton および RadioButton のみに関連します。

例については、ReactiveLabel.default を参照してください。


label-disabled (ローカル オプション)
public ReactiveLabel.label-disabled:#Visual =null

コントロールが無効なときに表示されるラベル。


{RadioButton
    || set this to true/false to see the different labels.
    enabled? = false,
    reactive-label =
        {ReactiveLabel
            label = {text radio button},
            label-disabled = {text this radio button is disabled}
        }
}


label-disabled-checked (ローカル オプション)
public ReactiveLabel.label-disabled-checked:#Visual =null

コントロールが無効で、そのコントロールの値が true のときに表示されるラベル。

プログラミング注意事項

CheckButton および RadioButton のみに関連します。


label-pressed (ローカル オプション)
public ReactiveLabel.label-pressed:#Visual =null

コントロールが押されたときに表示されるラベル。

例については、ReactiveLabel.default を参照してください。


label-pressed-checked (ローカル オプション)
public ReactiveLabel.label-pressed-checked:#Visual =null

コントロールが押され、そのコントロールの値が true のときに表示されるラベル。

プログラミング注意事項

CheckButton および RadioButton のみに関連します。


label-rollover (ローカル オプション)
public ReactiveLabel.label-rollover:#Visual =null

ポインタがそのコントロールをロールオーバーすると表示されるラベル。

例については、ReactiveLabel.default を参照してください。


label-rollover-checked (ローカル オプション)
public ReactiveLabel.label-rollover-checked:#Visual =null

ポインタがそのコントロールをロールオーバーし、そのコントロールの値が true のときに表示されるラベル。

プログラミング注意事項

CheckButton および RadioButton のみに関連します。

例については、ReactiveLabel.default を参照してください。


style-element (アクセサ)
アクセサ public ReactiveLabel.style-element:String

スタイリングの目的のための、この Visual の "要素" や "型" です。

説明

この実装によって Visual._style-elementの値が返されますが、通常は定数を返すためにオーバーライドされます。

オーバーライド

Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入: バージョン 6.0





メソッド詳細
get-text (メソッド)
public {ReactiveLabel.get-text}:String

可視オブジェクトの内容を表す文字列を取得します。

戻り値

テキスト文字列です。

オーバーライド

Visual のこのメソッドの既定定義は、単純に空文字列を返します。この要求への応答において役立つテキスト文字列を提供できる Visual のサブクラスは、このメソッドをそのような文字列を返すメソッドでオーバーライドするようにします。

注意事項

このメソッドにより返される文字列は、記述的な性質を持ち、目次またはその他の要約リストへ含まれるのに適切なものでなくてはなりません。この文字列は、Curl オブジェクトを作成するために評価されることを予測されていません。


show-label (メソッド)
public {ReactiveLabel.show-label}:void

既定のラベルを表示します。



show-label-checked (メソッド)
public {ReactiveLabel.show-label-checked}:void

チェックされたラベルを表示します。

説明

チェックされたラベルがない場合、既定のラベルを表示します。


show-label-disabled (メソッド)
public {ReactiveLabel.show-label-disabled}:void

無効なラベルを表示します。

説明

無効なラベルがない場合、既定のラベルを表示します。


show-label-disabled-checked (メソッド)
public {ReactiveLabel.show-label-disabled-checked}:void

無効にされてチェックされているラベルを表示します。

説明

無効にされてチェックされているラベルがない場合、無効なラベル、チェックされたラベル、既定のラベルの順に表示します。


show-label-pressed (メソッド)
public {ReactiveLabel.show-label-pressed}:void

押されたラベルを表示します。

説明

押されたラベルがない場合、ロールオーバー ラベルを表示します。ロールオーバー ラベルがない場合、既定のラベルを表示します。


show-label-pressed-checked (メソッド)
public {ReactiveLabel.show-label-pressed-checked}:void

押されてチェックされているラベルを表示します。

説明

押されてチェックされているラベルがない場合、チェックされたラベル、押されたラベル、既定のラベルの順に表示します。


show-label-rollover (メソッド)
public {ReactiveLabel.show-label-rollover}:void

ロールオーバー ラベルを表示します。

説明

ロールオーバー ラベルがない場合、既定のラベルを表示します。


show-label-rollover-checked (メソッド)
public {ReactiveLabel.show-label-rollover-checked}:void

チェックされたロールオーバー ラベルを表示します。

説明

チェックされたロールオーバー ラベルがない場合、チェックされたラベル、ロールオーバー ラベル、既定のラベルの順に表示します。