MultiTabControl (クラス)
public abstract MultiTabControl {inherits BaseTabControl}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.CONTROL-LOGICAL.
直接継承しているサブクラス: MultiTabAccordion

一定時に複数の TabPane を表示可能にするタブ コントロールの共通基本クラスです。

注意事項

このクラスのユーザー インターフェイス デリゲートは MultiTabControlUI で、MultiTabControlUI は抽象クラスです。サブクラスは特定の UI を実装します。

ビジュアル テスト

このクラスは、CurlMultiTab ビジュアル テスト タイプを実装します。
すべての Visual によってサポートされる既定のビジュアル テスト アクションの他に、このクラスのオブジェクトは次のアクションをサポートします。
アクション 引数 説明
Hide item:Stringitem タブ パネルを非表示にします。
Show item:Stringitem タブ パネルを表示します。
すべての Visual によってサポートされる既定のビジュアル テスト プロパティの他に、このクラスのオブジェクトは次のビジュアル テスト プロパティをサポートします。
プロパティ 説明
items count:int選択対象のアイテムの数です。
list:String 現在表示されている、';' で区切られたタブ パネルの名前です。

コンストラクタ
default:MultiTabControl を初期化します。
コンストラクタ public {MultiTabControl.default
ui-object:#MultiTabControlUI = null,
...
}

プロパティ
test-type-name:このオブジェクトをテストのメソッドとプロパティにマッピングするために、ビジュアル テスト インフラストラクチャが使用するタイプ名。
アクセサ public MultiTabControl.test-type-name:#String
プロパティ 継承 BaseTabControl: show-focus?, tab-panes
プロパティ 継承 MultiUIControlFrame: _ui-object, _ui-set-locally?, control-appearance-changeable?, display-context, focus-object, look-and-feel, options-present-here, ui-object
プロパティ 継承 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?
プロパティ 継承 CommandBinding: bound-command, bound-command-impl
プロパティ 継承 Control: control-container, dialog, focus-skin, form, has-value?, skin
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 ActiveTraversor: _active-traversal-container, active-traversal-container, mnemonic, tab-index, takes-focus?, valid?, validation-result
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 Box: clip-child-shadows?
プロパティ 継承 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-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, possibly-displayed?, selection-context, shadow-color, shadow-spec, visual-parent, vorigin, width
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 OptionListInterface: option-register-proc, registered-option-keys

メソッド
hide-pane:指定した TabPane を隠します。
public {MultiTabControl.hide-pane pane:TabPane}:bool
hide-pane-at-index:指定した TabPane を隠します。
public {MultiTabControl.hide-pane-at-index index:int}:bool
remove-pane-at-index:このコンテナから TabPane を削除します。
public {MultiTabControl.remove-pane-at-index index:int}:bool
show-pane:指定した TabPane が表示されます。
public {MultiTabControl.show-pane pane:TabPane}:bool
show-pane-at-index:指定した TabPane が表示されます。
public {MultiTabControl.show-pane-at-index index:int}:bool
showing?:これは現在表示されている TabPane ですか?
public {MultiTabControl.showing? pane:TabPane}:bool
test-run:オブジェクトに対してビジュアル テスト アクションを実行します。
public {MultiTabControl.test-run action:String, args:FastArray}:any
メソッド 継承 BaseTabControl: add, add-pane, add-pane-at-index, clear, get-test-property, note-pane-modified, remove-all-panes, remove-pane, show-first, show-last
メソッド 継承 MultiUIControlFrame: create-default-ui-object, generate-ui-object, handle-look-and-feel-change, handle-observer-message, on-focus-in, option-changed, option-lookup-here, option-propagate-notify, react-to-state-change, react-to-visual-change, request-key-focus, set-layout
メソッド 継承 ControlFrame: become-active
メソッド 継承 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
メソッド 継承 BasicBox: contains-point?, find-graphic-at, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 Control: on-pointer-press
メソッド 継承 StandardActiveTraversor: become-active-from-traversal, fire-event-at-container, handle-mnemonic, on-key-press
メソッド 継承 Observer: observe, stop-observing
メソッド 継承 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
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, request-layout, validate-layout
メソッド 継承 ActiveTraversor: mark-invalid, mark-valid
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 Box: 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
メソッド 継承 Visual: add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, get-focus-manager, get-layout-context, get-test-parent, 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, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 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, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, start-pagination, xy-offset-to
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 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-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
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {MultiTabControl.default
ui-object:#MultiTabControlUI = null,
...
}

MultiTabControl を初期化します。

ui-object: UI 代理です。
...: 追加するオプション設定、イベント ハンドラ、または TabPane



プロパティ詳細
test-type-name (アクセサ)
アクセサ public MultiTabControl.test-type-name:#String

このオブジェクトをテストのメソッドとプロパティにマッピングするために、ビジュアル テスト インフラストラクチャが使用するタイプ名。

説明

ビジュアル テストを正しく実行するには、テストは次のいずれかのタイプでなければなりません。特定のテスト タイプの詳細については、リストされている実装例の test-run および get-test-property メソッドの説明を参照してください。
オブジェクトのセマンティクスに近い、いずれかの定義済みテスト タイプの使用を検討してください。ただし、テスト タイプを変更せずにオブジェクトにテストのアクションとプロパティを追加する方が簡単な場合もあります。





メソッド詳細
hide-pane (メソッド)
public {MultiTabControl.hide-pane pane:TabPane}:bool

指定した TabPane を隠します。

pane: 非表示となる TabPane

戻り値

TabPane が正常に非表示になった場合は true。そうでない場合は false になります。


hide-pane-at-index (メソッド)
public {MultiTabControl.hide-pane-at-index index:int}:bool

指定した TabPane を隠します。

index: 非表示にするペインの位置。最初のペインのインデックスは 0 です。

戻り値

TabPane が見つかり正常に非表示になった場合は true、そうでない場合は false になります。


remove-pane-at-index (メソッド)
public {MultiTabControl.remove-pane-at-index index:int}:bool

このコンテナから TabPane を削除します。

index: 削除される TabPane の位置。

説明

指定されたインデックスがこの SingleTabControl の範囲内である場合は、対応する TabPane が削除されます。

戻り値

TabPane が正常に削除された場合は true、そうでない場合は false になります。

オーバーライド

このメソッドの既定実装は、BaseTabControl.tab-panes コレクションからペインを削除するブックキーピングを遂行し、必要に応じて UI オブジェクトに通知します。したがって、このブックキーピングが確実に実行されるために、実装ではスーパー実装を呼び出す必要があります。


show-pane (メソッド)
public {MultiTabControl.show-pane pane:TabPane}:bool

指定した TabPane が表示されます。

pane: 表示される TabPane

戻り値

TabPane が正常に表示された場合は true。そうでない場合は false になります。


show-pane-at-index (メソッド)
public {MultiTabControl.show-pane-at-index index:int}:bool

指定した TabPane が表示されます。

index: 表示ペインの位置。最初のペインのインデックスは 0 です。

戻り値

TabPane が正常に表示された場合は true。そうでない場合は false になります。


showing? (メソッド)
public {MultiTabControl.showing? pane:TabPane}:bool

これは現在表示されている TabPane ですか?



test-run (メソッド)
public {MultiTabControl.test-run action:String, args:FastArray}:any

オブジェクトに対してビジュアル テスト アクションを実行します。

action: 実行するアクションの名前。
args: ビジュアル テスト アクションの引数。ビジュアル テスト インフラストラクチャは、引数の数と型をチェックしますが、値はチェックしません。実装では、すべての有効な値を処理し、不正な値に対しては例外またはエラーをスローするようにしてください。

説明

そのクラスによってサポートされたテスト動作のリストについてクラスのドキュメントを御読み下さい。
既定の実装では、RawClick などの一般的な操作を処理し、action が既知のアクションに一致しない場合にはリフレクションを使用してメソッドを呼び出します。

注意事項

QuickTest Property™ のビジュアル テスト環境では、任意の実行時メソッドを直接呼び出せません。代わりに CallMethod アクションを使用して、最初の引数としてメソッド名を渡してください。ビジュアル テスト インフラストラクチャは、CallMethod アクションを実際のアクションに変換してから test-run を呼び出します。

注意事項

参照:canonical-test-value

オーバーライド

新しいテスト アクションを追加するには、action と新しいアクションの名前を照合します。一致する場合は、引数を処理してアクションを実行し、適切なタイプの値 (戻り値がない場合は null) を返します。action が新しいテスト アクションに一致しない場合は、super.test-run を呼び出します。