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

SingleTabControl および MultiTabControl の共通基本クラスです。

注意事項

BaseTabControl を実装する場合、複数のクラスが組み合わされます。それぞれの役割は次のとおりです。
BaseTabControl : コントロール自体の API です。一連の TabPane を所有しています。ユーザー インターフェイスを介して一度に 1 つ表示できます。
TabPaneBaseTabControl のメイン コンテンツ領域に表示できる、1 つの "ページ" です。
BaseTabControlUI : UI デリゲートです。マウスおよびキーボードのイベントを処理し、一度に 1 つのペインを表示します。また、目的のペインを選択できるようにします。
BaseTabControlUI は抽象クラスです。サブクラスは特定の UI を実装します。

予期されたイベント

CurrentPaneChanged: 新しいペインが表示されると、BaseTabControl で起動されます。

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

プロパティ
show-focus?:ボタンがキー フォーカスを視覚的に表示するかどうかを指定します。
ローカル オプション public BaseTabControl.show-focus?:bool =true
tab-panes:この BaseTabControl 内の TabPane
フィールド public constant BaseTabControl.tab-panes:{Array-of TabPane} ={{Array-of TabPane}}
プロパティ 継承 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-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?, 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

メソッド
add:BaseTabControl に子 Graphic を追加します。
public {BaseTabControl.add g:any, ...}:#Visual
add-pane:BaseTabControlTabPane を追加します。
public {BaseTabControl.add-pane
pane:TabPane,
before:#TabPane = null,
after:#TabPane = null,
show?:bool = pane.show?
}:bool
add-pane-at-index:TabPane をこの BaseTabControl の指定された位置に追加します。
public {BaseTabControl.add-pane-at-index
pane:TabPane,
index:int,
show?:bool = pane.show?
}:bool
clear:ボックスのグラフィカルな子を削除します。
public {BaseTabControl.clear}:void
get-test-property:このオブジェクトのテスト プロパティ値を返します。
public {BaseTabControl.get-test-property name:String}:any
note-pane-modified:BaseTabControl に、ペインの 1 つが変更したことを通知します。
protected {BaseTabControl.note-pane-modified pane:TabPane}:void
remove-all-panes:この BaseTabControl からすべての TabPane を削除します。
public {BaseTabControl.remove-all-panes}:void
remove-pane:このコンテナから TabPane を削除します。
public {BaseTabControl.remove-pane pane:TabPane}:bool
remove-pane-at-index:このコンテナから TabPane を削除します。
public abstract {BaseTabControl.remove-pane-at-index index:int}:bool
show-first:最初の TabPane が表示されます。
public {BaseTabControl.show-first}:bool
show-last:最後の TabPane が表示されます。
public {BaseTabControl.show-last}:bool
show-pane:指定した TabPane が表示されます。
public abstract {BaseTabControl.show-pane pane:TabPane}:bool
show-pane-at-index:指定した TabPane が表示されます。
public abstract {BaseTabControl.show-pane-at-index index:int}:bool
showing?:これは現在表示されている TabPane ですか?
public abstract {BaseTabControl.showing? pane:TabPane}:bool
メソッド 継承 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, test-run, 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 {BaseTabControl.default
ui-object:#BaseTabControlUI = null,
...
}

BaseTabControl を初期化します。

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



プロパティ詳細
show-focus? (ローカル オプション)
public BaseTabControl.show-focus?:bool =true

ボタンがキー フォーカスを視覚的に表示するかどうかを指定します。



tab-panes (フィールド)
public constant BaseTabControl.tab-panes:{Array-of TabPane} ={{Array-of TabPane}}

この BaseTabControl 内の TabPane

説明

このコレクションは直接変更できません。代わりに、BaseTabControl.add-paneBaseTabControl.add-pane-at-indexBaseTabControl.remove-pane、または BaseTabControl.remove-pane-at-index を使用してください。





メソッド詳細
add (メソッド)
public {BaseTabControl.add g:any, ...}:#Visual

BaseTabControl に子 Graphic を追加します。

g: 追加する項目。gTabPane の場合、BaseTabControl.add-pane-at-index メソッドが呼び出され、それを追加します。その他の場合、g をコンテンツとする新しい TabPane オブジェクトが 作成され、この新しいペインが BaseTabControl.add-pane-at-index によって追加されます。

注意事項

このメソッドは次の 3 つのキーワード パラメータも受け入れます。

戻り値

gGraphic の場合、戻り値は g になります。そうでない場合、戻り値は gGraphic にキャストした結果であり、このメソッド呼び出しによって作成された TabPane の子である実際の Graphic になります。


add-pane (メソッド)
public {BaseTabControl.add-pane
pane:TabPane,
before:#TabPane = null,
after:#TabPane = null,
show?:bool = pane.show?
}:bool

BaseTabControlTabPane を追加します。

pane: 追加される TabPane
before: non-null の場合、この前に新しい TabPane を挿入します。beforeafter の両方が指定されている場合、このパラメータが優先します。
after: non-null の場合、この後に新しい TabPane を挿入します。beforeafter の両方が指定されている場合、before パラメータが優先します。
show?: true の場合は、追加された TabPane は追加された後も表示されています。TabPane で同じ名前を持つプロパティの値を既定値として使用します。

説明

paneTabPane.label プロパティが null の場合は、このメソッドが自動的に生成されたラベルをこのプロパティに割り当てます。

戻り値

TabPane が正常に追加された場合は true

オーバーライド

通常はオーバーライドされません。このメソッドの既定実装は、適切な引数と共に BaseTabControl.add-pane-at-index を呼び出します。サブクラスはこのメソッドをオーバーライドする必要があります。


add-pane-at-index (メソッド)
public {BaseTabControl.add-pane-at-index
pane:TabPane,
index:int,
show?:bool = pane.show?
}:bool

TabPane をこの BaseTabControl の指定された位置に追加します。

pane: 追加される TabPane
index: 新しく挿入されたペインの位置。最初のペインは 0 です。
show?: true の場合は、追加された TabPane は追加された後も表示されています。TabPane で同じ名前を持つプロパティの値を既定値として使用します。

説明

paneTabPane.label プロパティが null の場合は、このメソッドが自動的に生成されたラベルをこのプロパティに割り当てます。

戻り値

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

オーバーライド

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


clear (メソッド)
public {BaseTabControl.clear}:void

ボックスのグラフィカルな子を削除します。



get-test-property (メソッド)
public {BaseTabControl.get-test-property name:String}:any

このオブジェクトのテスト プロパティ値を返します。

説明

既定の実装では、リフレクションを使用してオブジェクトの実行時プロパティの値を取得します。プロパティを実行時のインターフェイスではなくテスト環境に追加する場合は、サブクラスでこのメソッドをオーバーライドする必要があります。

注意事項

参照:canonical-test-value


note-pane-modified (メソッド)
protected {BaseTabControl.note-pane-modified pane:TabPane}:void

BaseTabControl に、ペインの 1 つが変更したことを通知します。

pane: 変更された TabPane

説明

TabPane のプロパティの変更時に呼び出されます。TabPane.labelTabPane.tab-button-tooltip、および TabPane.first-active-control といった、TabPane に固有なプロパティが含まれるので、注意してください。継承されたグラフィック オプションやレイアウト設定 (これらは共に通常の手段で通知されます) の変更に対しては呼び出されません。
このメソッドの既定実装では、BaseTabControlUI.note-pane-modified が呼び出され、変更が通知されます。

オーバーライド

通常は、実装によって、このメソッドのスーパー実装を呼び出す必要があります。


remove-all-panes (メソッド)
public {BaseTabControl.remove-all-panes}:void

この BaseTabControl からすべての TabPane を削除します。

注意事項

BaseTabControl.clear は、このメソッドを呼び出すことで実装されます。


remove-pane (メソッド)
public {BaseTabControl.remove-pane pane:TabPane}:bool

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

pane: 削除される TabPane

説明

指定された TabPane がこの BaseTabControl に存在する場合は削除されます。

戻り値

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

オーバーライド

このメソッドの既定実装は、適切な引数と共に単に BaseTabControl.remove-pane-at-index を呼び出すだけです。タブが削除されたときにカスタム アクションを実行したいサブクラスは通常、このメソッドではなく BaseTabControl.remove-pane-at-index をオーバーライドする必要があります。


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

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

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

説明

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

戻り値

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


show-first (メソッド)
public {BaseTabControl.show-first}:bool

最初の TabPane が表示されます。

戻り値

最初のペインが正常に表示された場合は true。そうでない場合は false になります。

説明

このメソッドは、BaseTabControl.show-pane-at-index を呼び出す便利なメソッドです。


show-last (メソッド)
public {BaseTabControl.show-last}:bool

最後の TabPane が表示されます。

戻り値

最後のペインが正常に表示された場合は true

説明

このメソッドは、BaseTabControl.show-pane-at-index を呼び出す便利なメソッドです。


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

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

pane: 表示される TabPane

戻り値

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


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

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

index: current-pane になるペインの位置。最初のペインのインデックスは 0 です。

戻り値

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


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

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