(クラス)
SingleTabControl および MultiTabControl の共通基本クラスです。
注意事項
BaseTabControl を実装する場合、複数のクラスが組み合わされます。それぞれの役割は次のとおりです。
BaseTabControl : コントロール自体の API です。一連の TabPane を所有しています。ユーザー インターフェイスを介して一度に 1 つ表示できます。
TabPane :
BaseTabControl のメイン コンテンツ領域に表示できる、1 つの "ページ" です。
BaseTabControlUI : UI デリゲートです。マウスおよびキーボードのイベントを処理し、一度に 1 つのペインを表示します。また、目的のペインを選択できるようにします。
BaseTabControlUI は抽象クラスです。サブクラスは特定の UI を実装します。
コンストラクタ public | {BaseTabControl.default} |
ローカル オプション public BaseTabControl.show-focus?:
bool =true
フィールド public constant BaseTabControl.tab-panes:{
Array-of TabPane} ={{Array-of TabPane}}
プロパティ 継承 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? プロパティ 継承 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
public | {BaseTabControl.add g:any, ...}:#Visual |
public | {BaseTabControl.add-pane}:bool |
public | {BaseTabControl.add-pane-at-index}:bool |
clear: | ボックスのグラフィカルな子を削除します。 |
public | {BaseTabControl.clear}:void |
public | {BaseTabControl.get-test-property name:String}:any |
protected | {BaseTabControl.note-pane-modified pane:TabPane}:void |
public | {BaseTabControl.remove-all-panes}:void |
public abstract | {BaseTabControl.remove-pane-at-index index:int}:bool |
public | {BaseTabControl.show-first}:bool |
public | {BaseTabControl.show-last}:bool |
public abstract | {BaseTabControl.show-pane pane:TabPane}:bool |
public abstract | {BaseTabControl.show-pane-at-index index:int}:bool |
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 メソッド 継承 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-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, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, 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-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 | {BaseTabControl.default} |
BaseTabControl を初期化します。
ui-object: UI 代理です。
...: 追加するオプション設定、イベント ハンドラ、または
TabPane。
(ローカル オプション)
public BaseTabControl.show-focus?:
bool =true
ボタンがキー フォーカスを視覚的に表示するかどうかを指定します。
(フィールド)
public constant BaseTabControl.tab-panes:{
Array-of TabPane} ={{Array-of TabPane}}
(メソッド)
public | {BaseTabControl.add g:any, ...}:#Visual |
BaseTabControl に子 Graphic を追加します。
注意事項
このメソッドは次の 3 つのキーワード パラメータも受け入れます。
- tab-label=label は、追加する TabPane の label プロパティとして設定する Visual を指定します。
- index=where は、BaseTabControl.add-pane-at-index に渡す index 引数を指定します。index 引数を指定しないと、この BaseTabControl 内のすべての既存ペインの末尾に新しい TabPane が追加されます。
- show?=true-or-false は、追加する TabPane の show? プロパティの値を指定します。
戻り値
g が Graphic の場合、戻り値は g になります。そうでない場合、戻り値は g を Graphic にキャストした結果であり、このメソッド呼び出しによって作成された TabPane の子である実際の Graphic になります。
(メソッド)
public | {BaseTabControl.add-pane}:bool |
BaseTabControl に TabPane を追加します。
pane: 追加される TabPane。
before: non-null の場合、この前に新しい TabPane を挿入します。before と after の両方が指定されている場合、このパラメータが優先します。
after: non-null の場合、この後に新しい TabPane を挿入します。before と after の両方が指定されている場合、before パラメータが優先します。
show?: true の場合は、追加された TabPane は追加された後も表示されています。TabPane で同じ名前を持つプロパティの値を既定値として使用します。
説明
pane の
TabPane.label プロパティが
null の場合は、このメソッドが自動的に生成されたラベルをこのプロパティに割り当てます。
戻り値
TabPane が正常に追加された場合は true。
オーバーライド
(メソッド)
public | {BaseTabControl.add-pane-at-index}:bool |
TabPane をこの BaseTabControl の指定された位置に追加します。
pane: 追加される TabPane。
index: 新しく挿入されたペインの位置。最初のペインは 0 です。
show?: true の場合は、追加された TabPane は追加された後も表示されています。TabPane で同じ名前を持つプロパティの値を既定値として使用します。
説明
pane の
TabPane.label プロパティが
null の場合は、このメソッドが自動的に生成されたラベルをこのプロパティに割り当てます。
戻り値
TabPane が正常に追加された場合は true。そうでない場合は false になります。
オーバーライド
このメソッドの既定実装が、
BaseTabControl.tab-panes コレクションへペインを追加するブックキーピングを遂行し、必要に応じてラベルを生成し、UI オブジェクトに通知します。したがって、このブックキーピングが確実に実行されるために、実装ではスーパー実装を呼び出す必要があります。
(メソッド)
public | {BaseTabControl.clear}:void |
(メソッド)
public | {BaseTabControl.get-test-property name:String}:any |
このオブジェクトのテスト プロパティ値を返します。
説明
既定の実装では、リフレクションを使用してオブジェクトの実行時プロパティの値を取得します。プロパティを実行時のインターフェイスではなくテスト環境に追加する場合は、サブクラスでこのメソッドをオーバーライドする必要があります。
注意事項
(メソッド)
protected | {BaseTabControl.note-pane-modified pane:TabPane}:void |
BaseTabControl に、ペインの 1 つが変更したことを通知します。
説明
オーバーライド
通常は、実装によって、このメソッドのスーパー実装を呼び出す必要があります。
(メソッド)
public | {BaseTabControl.remove-all-panes}:void |
この BaseTabControl からすべての TabPane を削除します。
注意事項
(メソッド)
このコンテナから TabPane を削除します。
pane: 削除される TabPane。
説明
指定された TabPane がこの BaseTabControl に存在する場合は削除されます。
戻り値
TabPane が正常に削除された場合は true、そうでない場合は false になります。
オーバーライド
(メソッド)
public abstract | {BaseTabControl.remove-pane-at-index index:int}:bool |
このコンテナから TabPane を削除します。
index: 削除される TabPane の位置。
説明
指定されたインデックスがこの
BaseTabControl の範囲内である場合は、対応する
TabPane が削除されます。
戻り値
TabPane が正常に削除された場合は true、そうでない場合は false になります。
(メソッド)
public | {BaseTabControl.show-first}:bool |
最初の TabPane が表示されます。
戻り値
最初のペインが正常に表示された場合は true。そうでない場合は false になります。
説明
(メソッド)
public | {BaseTabControl.show-last}:bool |
最後の TabPane が表示されます。
戻り値
最後のペインが正常に表示された場合は true。
説明
(メソッド)
public abstract | {BaseTabControl.show-pane pane:TabPane}:bool |
指定した TabPane が表示されます。
pane: 表示される TabPane。
戻り値
TabPane が正常に表示された場合は true。そうでない場合は false になります。
(メソッド)
public abstract | {BaseTabControl.show-pane-at-index index:int}:bool |
指定した TabPane が表示されます。
index: current-pane になるペインの位置。最初のペインのインデックスは 0 です。
戻り値
TabPane が正常に表示された場合は true。そうでない場合は false になります。
(メソッド)
public abstract | {BaseTabControl.showing? pane:TabPane}:bool |
これは現在表示されている TabPane ですか?