(クラス)
BaseFrame 内に視覚的に含まれる、相互に排他的な RadioButton のセットを実装します。
説明
RadioFrame では、相互に排他的な (ボタンをクリックすると以前に選択されていたボタンの選択が解除される)2 つの状態を持つボタンのセットによる多肢選択をユーザーに提供します。
RadioFrame に含まれている
RadioButton は、(他の RadioFrame を除く) 他の
Visual オブジェクト内にネストされている場合でもその RadioFrame に関連付けられています。RadioFrame には、他のコンテナ、スペーサー、説明テキスト、グラフィックなど、Frame と同様の要素を物理的に含めることができます。
RadioFrame の標準的な使用法では、次のように RadioFrame に
VBox を配置し、VBox に少数の
RadioButton を配置します。
アンパサンド文字 ('&') をボタンのニーモニック接頭辞として認識する、String から
Label への自動変換があることに注意してください。
例 |
|
{RadioFrame
{VBox
{RadioButton radio-value = "Antelope"},
{RadioButton radio-value = "Lizard"},
{RadioButton radio-value = "Vulture"}
},
value = "Antelope"
}
| |
RadioFrame の値は、現在選択されている
RadioButton がある場合はその
RadioButton.radio-value になります。ラジオ ボタンが選択されていない場合もあり、その場合の
RadioFrame.has-value? は false になり、
RadioFrame.value プロパティによって返される値は、
null になります。
注意事項
RadioFrame は、基本的に
Frame と同様の外観で動作します。唯一の違いは、RadioFrame に含まれている
RadioButton が相互に排他的に動作する点です。含まれている
RadioButton と無関係なビジュアルがないので、UI デリゲート オブジェクトを持たず、look-and-feel 間での違いはありません。
このオブジェクトは、"RadioFrame"のスタイル ルールを記述することによってスタイル化されます。
コンストラクタ public | {RadioFrame.default value:any = null, ...} |
アクセサ public RadioFrame.form-value:
any
has-value?: | このゲッターは、RadioFrame 内のボタンが選択されているかどうかを判断します。 |
アクセサ public RadioFrame.has-value?:
bool
アクセサ public RadioFrame.pending-value?:
bool
アクセサ public RadioFrame.style-element:
String
value: | 適切な型によるこのコントロールの現在の値。 |
アクセサ public RadioFrame.value:
any セッター public RadioFrame.value:
any プロパティ 継承 ControlFrame:
color, control-appearance-changeable?, control-color, control-content-background, enabled?, font-family, font-size, font-style, font-weight, 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, 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 プロパティ 継承 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, visual-parent, vorigin, width
add: | この RadioFrame にグラフィカルな子を追加します。 |
public | {RadioFrame.become-active forward?:bool = true}:bool |
clear: | ボックスのグラフィカルな子を削除します。 |
public | {RadioFrame.clear}:void |
public | {RadioFrame.set-value-with-events val:any}:void |
public | {RadioFrame.unset-value}:void |
メソッド 継承 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-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-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-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-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 メソッド 継承 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, 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-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 メソッド 継承 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
(コンストラクタ)
public | {RadioFrame.default value:any = null, ...} |
このオブジェクトを作成します。
value: 最初に選択されているボタンがある場合は、それを示す RadioFrame の値。
(アクセサ)
アクセサ public RadioFrame.form-value:
any
(アクセサ)
アクセサ public RadioFrame.has-value?:
bool このゲッターは、RadioFrame 内のボタンが選択されているかどうかを判断します。
説明
このアクセッサの使用法をいくつか示します。プログラムでコントロールの値を取得できるかどうか、あるいは取得する必要があるかどうかを決定するためにこの値を取得します。RadioFrame を含むダイアログ ボックスは、コミットされるときに、RadioFrame.has-value? を使用する場合があります。Web フォームは、送信時にこれを使用する場合があります。
(アクセサ)
アクセサ public RadioFrame.pending-value?:
bool 現在ユーザーが値を変更しているどうかを示します。
説明
RadioFrame の場合はその値が即座に変更されるので、常に false。
(アクセサ)
(アクセサ)
アクセサ public RadioFrame.style-element:
String スタイリングの目的のための、この Visual の "要素" や "型" です。
説明
オーバーライド
Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入:
バージョン 6.0
(アクセサ)
アクセサ public RadioFrame.value:
any セッター public RadioFrame.value:
any
(メソッド)
この項目はサポートされていません。内部使用限定となっています。
この RadioFrame にグラフィカルな子を追加します。
説明
(メソッド)
public | {RadioFrame.become-active forward?:bool = true}:bool |
RadioFrame がアクティブにならないように、常に false を返します。
(メソッド)
public | {RadioFrame.clear}:void |
(メソッド)
プログラムまたは手動で値が切り換えられたことをこのフレームに通知するために、メンバ RadioButton で使用されます。
説明
ボタンの値が切り換えられた後でこのメソッドが呼び出されることに注意してください。
(メソッド)
public | {RadioFrame.set-value-with-events val:any}:void |
RadioFrame の値を設定し、後で ValueChanged および ValueFinished のイベントを発生させます。インタラクティブに値を設定するユーザーをビジュアルなしでシミュレーションします。
val: RadioFrame に設定される値。
説明
このメソッドは、最初に set でコントロールの値を設定し、次にイベントを発生させます。新しい値が現在の値と同じ場合、このメソッドは何も実行しません。
(メソッド)
public | {RadioFrame.unset-value}:void |
このフレーム内のすべての RadioButton をオフ状態にリセットします。