PanedWindow (クラス)
public PanedWindow {inherits OverlayBox}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.

PanedWindow コンテナは、グラフィックを水平または垂直に並べて管理します。各グラフィックは Pane に存在します。ペインの各ペアは、Sash により区切られています。ユーザーは、該当するサッシを選択して目的の場所にドラッグし、PanedWindow 内の各ペインに割り当てられたスペースの量を割り当てなおすことができます。サッシを離すと、PanedWindow はその場所でサッシの直前と直後にあるペインが共有するスペースの量を分割します。

注意事項

Graphicの標準のプロパティは、PanedWindowにも記述することが出来ます。
このオブジェクトは、"PanedWindow"のスタイル ルールを記述することによりスタイル化することが出来ます。

コンストラクタ
default:新しい PanedWindow を作成します。
コンストラクタ public {PanedWindow.default
orientation:Orientation = Orientation.vertical,
...
}

プロパティ
orientation:orientation フィールドは、PanedWindow 内の Pane の配置を定義します。このオプションは、次の 2 つの値のうちのいずれかになります。
  • Orientation.horizontal は、ウィンドウ内でペインが左から右に追加されるように指定します。
  • Orientation.vertical は、ウィンドウ内でペインが上から下に配置されるように指定します。
フィールド public-get protected-set PanedWindow.orientation:Orientation
pane-count-field:pane-count-field フィールドには、PanedWindow にあるペインの数が含まれます。
フィールド protected PanedWindow.pane-count-field:int =0
sash-background:PanedWindow 内の各 Sash で使用される背景色または背景パターン。
非ローカル オプション public PanedWindow.sash-background:Background
sash-border-color:PanedWindow 内の各 Sash で使用されるボーダーの色またはパターン。
非ローカル オプション public PanedWindow.sash-border-color:FillPattern
style-element:スタイリングの目的のための、この Visual の "要素" や "型" です。
アクセサ public PanedWindow.style-element:String
プロパティ 継承 OverlayBox: align-origins?
プロパティ 継承 SequenceBox: child-array, completely-clonable-children?, contains-valid?, graphical-children, invalid-epoch, layouts-have-valid-sequence-number?, option-register-proc, ordered-children, registered-option-keys, reverse-ordered-children
プロパティ 継承 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, clonable-class?, 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: options-present-here

メソッド
add-pane:PanedWindow の終わりに新しいペインを追加します。
public {PanedWindow.add-pane g:Graphic, min:any = 1mm}:void
add-pane-at-index:PanedWindow に N 番目のアイテムとしてペインを挿入します。この場合、N はゼロベースのインデックスです。
public {PanedWindow.add-pane-at-index
g:Graphic,
index:int,
min:any = 1mm
}:void
find:グラフィックを表示するペインのゼロベースのインデックスを返します。
public {PanedWindow.find child:any}:int
find-paned-child-at-point:PanedWindow 内のポイントに位置する Pane または Sash グラフィックを返します。ポイントは、PanedWindow の左下隅の起点に基づいて指定されます。
public {PanedWindow.find-paned-child-at-point}:#Graphic
get:指定したインデックスのペインに表示される子を返します。
public {PanedWindow.get index:int}:#Graphic
get-pane:指定された index の、Pane を返します。
public {PanedWindow.get-pane index:int}:#Pane
move-pane:ペインを PanedWindow 内の新しい位置へ移動します。
public {PanedWindow.move-pane old-index:int, new-index:int}:void
option-changed:PanedWindow の HVBox.option-changed をオーバーライドします。
public {PanedWindow.option-changed key:String, value:any}:void
pane-count:PanedWindow 内のペインの数を返します。
public {PanedWindow.pane-count}:int
remove-pane-at-index:PanedWindow の N 番目のペインを削除します。この場合、N はゼロベースのインデックスです。
public {PanedWindow.remove-pane-at-index index:int}:#Graphic
set-pane-sizes:全ペインのサイズを一度に設定します。
public {PanedWindow.set-pane-sizes sizes:{Array-of double}}:void
メソッド 継承 OverlayBox: allocate-layout-object, constrain-height, constrain-width, get-height-preference, get-width-preference, set-size
メソッド 継承 SequenceBox: add, add-at-index, add-at-index-with-layout, after-reposition, attempt-revalidate-layout, before-reposition, clear, compare-children, draw, end-pagination, graphical-child-visible-at, internal-remove-child, note-attached, note-detaching, notify-option-children, pick-child, propagate-request-layout, register-options, request-draw, request-pointer-trace, swap-children, validate-layout-sequence-numbers
メソッド 継承 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: find-test-children, get-delimited-child-text-selection, get-gui-path-to-child, get-range-as-selected-text, get-visible-rect-in-root-into, 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, paginate, paint-with-decorations, replace-with, request-draw-rect, search-next, search-prev, set-layout, start-pagination, xy-offset-to
メソッド 継承 Visual: add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, clone-appearance-helper, get-focus-manager, get-layout-context, get-test-parent, get-test-property, get-text, 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 {PanedWindow.default
orientation:Orientation = Orientation.vertical,
...
}

新しい PanedWindow を作成します。

orientation: PanedWindow の Pane の配置を指定します。グラフィックは、horizontal または vertical の方向に並べられます。
rest-args: PanedWindow で設定されるプロパティとイベント ハンドラ



プロパティ詳細
orientation (フィールド)
public-get protected-set PanedWindow.orientation:Orientation

orientation フィールドは、PanedWindow 内の Pane の配置を定義します。このオプションは、次の 2 つの値のうちのいずれかになります。



pane-count-field (フィールド)
protected PanedWindow.pane-count-field:int =0

pane-count-field フィールドには、PanedWindow にあるペインの数が含まれます。



sash-background (非ローカル オプション)
public PanedWindow.sash-background:Background

PanedWindow 内の各 Sash で使用される背景色または背景パターン。



sash-border-color (非ローカル オプション)
public PanedWindow.sash-border-color:FillPattern

PanedWindow 内の各 Sash で使用されるボーダーの色またはパターン。



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

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

説明

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

オーバーライド

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





メソッド詳細
add-pane (メソッド)
public {PanedWindow.add-pane g:Graphic, min:any = 1mm}:void

PanedWindow の終わりに新しいペインを追加します。

g: 新しいペインに配置するグラフィック。
min: PanedWindow の Pane のサイズを変更する際に適用できる最小寸法。このパラメータの既定値は 1mm です。


add-pane-at-index (メソッド)
public {PanedWindow.add-pane-at-index
g:Graphic,
index:int,
min:any = 1mm
}:void

PanedWindow に N 番目のアイテムとしてペインを挿入します。この場合、N はゼロベースのインデックスです。

g: 新しいペインに配置するグラフィック。
index: ウィンドウ内の新しい Pane の位置 (ゼロベース)。
min: PanedWindow の Pane のサイズを変更する際に適用できる最小寸法。このパラメータの既定値は 1mm です。


find (メソッド)
public {PanedWindow.find child:any}:int

グラフィックを表示するペインのゼロベースのインデックスを返します。

child: 検索する子グラフィック。

戻り値

子を表示するペインの、ゼロベースのインデックス。見つからない場合は、-1。


find-paned-child-at-point (メソッド)
public {PanedWindow.find-paned-child-at-point}:#Graphic

PanedWindow 内のポイントに位置する Pane または Sash グラフィックを返します。ポイントは、PanedWindow の左下隅の起点に基づいて指定されます。

戻り値

座標に位置するグラフィック。


get (メソッド)
public {PanedWindow.get index:int}:#Graphic

指定したインデックスのペインに表示される子を返します。

index: pane の 0-起点 のインデックスの値。

戻り値

ペインに表示されるグラフィック。見つからない場合は null。


get-pane (メソッド)
public {PanedWindow.get-pane index:int}:#Pane

指定された index の、Pane を返します。

index: pane の 0-起点 のインデックスの値。

戻り値

指定された indexPane。 もしインデックスが、PanedWindowの、どのPaneにも相当しない場合は、戻り値は null になります。


move-pane (メソッド)
public {PanedWindow.move-pane old-index:int, new-index:int}:void

ペインを PanedWindow 内の新しい位置へ移動します。

old-index: ウィンドウ内の Pane の元の位置 (ゼロベース)。
new-index: ウィンドウ内の Pane の新しい位置 (ゼロベース)。


option-changed (メソッド)
public {PanedWindow.option-changed key:String, value:any}:void

PanedWindow の HVBox.option-changed をオーバーライドします。



pane-count (メソッド)
public {PanedWindow.pane-count}:int

PanedWindow 内のペインの数を返します。

戻り値

PanedWindow 内のペインの数 (整数) です。


remove-pane-at-index (メソッド)
public {PanedWindow.remove-pane-at-index index:int}:#Graphic

PanedWindow の N 番目のペインを削除します。この場合、N はゼロベースのインデックスです。

index: ウィンドウ内の新しい Pane の位置 (ゼロベース)。

戻り値

PanedWindow から削除された Pane。


set-pane-sizes (メソッド)
public {PanedWindow.set-pane-sizes sizes:{Array-of double}}:void

全ペインのサイズを一度に設定します。

sizes: 数値の配列 (各ペインに 1 つ)。各数字は、左から右へ、各ペインの伸長度として割り当てられます。ペインのサイズはそれに合わせて設定されます。