BaseMenuPane (クラス)
public abstract BaseMenuPane {inherits Menu, Observable}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.
直接継承しているサブクラス: MenuPane

MenuPane の基本的なインターフェイスを定義します。


コンストラクタ
default:BaseMenuPane オブジェクトを作成します。
コンストラクタ public {BaseMenuPane.default}

プロパティ
icon-height:この BaseMenuPaneMenuItem にアイコンがあれば、その高さです。
ローカル オプション public BaseMenuPane.icon-height:any ={proc {g:Graphic, e:OriginElastic}:OriginElastic {if e.preferred-size <= 1in then {return e} else let f:OriginElastic = {dimension-to-origin-elastic 1in} {return {e.set-preferred-size 1in, dest=f} asa OriginElastic} } }
icon-width:この BaseMenuPaneMenuItem にアイコンがあれば、その幅になります。
ローカル オプション public BaseMenuPane.icon-width:any =9pt
menu-bar:この MenuPane のルートの先祖が BaseMenuBar の場合、それになります。
アクセサ public BaseMenuPane.menu-bar:#BaseMenuBar
セッター public BaseMenuPane.menu-bar:#BaseMenuBar
opened?:BaseMenuPane が開かれているかどうかを示します。
アクセサ public BaseMenuPane.opened?:bool
sub-menu:この BaseMenuPaneが関連する SubMenu があれば、それになります。
アクセサ public BaseMenuPane.sub-menu:#SubMenu
セッター public BaseMenuPane.sub-menu:#SubMenu
view:このメニュー ペインが表示されていれば、これを含む View です。
フィールド public-get protected-set BaseMenuPane.view:#View
view-opacity:この BaseMenuPane がそれ自身の View 内に表示される時の、View の不透明度です。
ローカル オプション public BaseMenuPane.view-opacity:FloatFraction =1
wrap-selection?:上や下の矢印キーを押して選択を覆うことができる場合は、true を返します。既定値では、true です。
アクセサ public BaseMenuPane.wrap-selection?:bool
プロパティ 継承 Menu: always-show-selection?, event-delegate, first-item, for-loop-count, last-item, popup-alongside?, popup-context-visual, size, test-type-name
プロパティ 継承 Observable: has-observers?, notify-observers?
プロパティ 継承 Visual: _style-element, clonable-class?, completely-clonable-children?, cursor, data-source, display-context, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, possibly-displayed?, style-class, style-element, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-visible?, tooltip, user-data, visual-parent
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 OptionListInterface: option-parent, option-register-proc, options-present-here, registered-option-keys

メソッド
add-at-index:Graphicを設定されたインデックスで Menu に挿入します。
protected {BaseMenuPane.add-at-index g:#Graphic, where:any}:void
close:開かれている BaseMenuPane を閉じます。
public {BaseMenuPane.close}:void
hide:メニューのトラバースを終了させることで開かれている MenuPane を閉じます。
public {BaseMenuPane.hide}:void
pointer-exited-contents?:ポインタが以前 BaseMenuPane 内にあり、その後外に出た場合、true を返します。
protected abstract {BaseMenuPane.pointer-exited-contents?}:bool
popup:Visual 上に MenuPane を表示します。
public {BaseMenuPane.popup visual:Visual, x:Distance, y:Distance}:void
show:SubMenu のメニュー アイテムから MenuPane を取り出します。
public {BaseMenuPane.show item:SubMenu}:void
show-adjacent:Visual およびそれが占有する四角形が指定された場合、その上下左右のいずれかに隣接してこの BaseMenuPane を表示します。
public {BaseMenuPane.show-adjacent
source:Visual,
rectangle:GRect,
alongside?:bool = true,
start-traversal?:bool = false
}:void
メソッド 継承 Menu: add, clear, get, get-access-items, get-test-property, item-after, item-before, note-item-added, note-item-removed, note-items-cleared, on-pointer-event, record-traversals, remove, test-run, to-Iterator, walk-items, walk-items-proc
メソッド 継承 Observable: add-observer, notify-observers, remove-observer
メソッド 継承 Visual: add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, clone-appearance-helper, find-graphical-ancestor, find-test-children, get-focus-manager, get-graphical-root, get-gui-path, get-gui-path-to-child, get-layout-context, get-origin-in-graphical-ancestor, get-origin-in-root, get-test-parent, get-text, get-top-left-in-ancestor, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-attached, note-caret-position, note-detaching, on-drag-enter, on-drag-leave, on-pointer-enter, on-pointer-envelope-event, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-draw, request-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, xy-offset-to
メソッド 継承 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-inspection, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, 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, notify-option-children, option-change-notify, option-changed, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, 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 {BaseMenuPane.default}

BaseMenuPane オブジェクトを作成します。

導入: バージョン 6.0



プロパティ詳細
icon-height (ローカル オプション)
public BaseMenuPane.icon-height:any ={proc {g:Graphic, e:OriginElastic}:OriginElastic {if e.preferred-size <= 1in then {return e} else let f:OriginElastic = {dimension-to-origin-elastic 1in} {return {e.set-preferred-size 1in, dest=f} asa OriginElastic} } }

この BaseMenuPaneMenuItem にアイコンがあれば、その高さです。

注意事項

このオプションの既定値は、オブジェクト自身に設定された最大 1in の高さを返すプロシージャです。アイコン自身に設定された高さを使用するために、アイコンが何であってもnull をオプションに設定してください。
Graphic.height で許容される値を設定することができます。
導入: バージョン 6.0


icon-width (ローカル オプション)
public BaseMenuPane.icon-width:any =9pt

この BaseMenuPaneMenuItem にアイコンがあれば、その幅になります。

注意事項

このオプションの既定値は、9pt です。アイコン自身に設定された幅を使用するために、null をオプションに設定してください。
Graphic.width で許容される値を設定することができます。
導入: バージョン 6.0


menu-bar (アクセサ)
アクセサ public BaseMenuPane.menu-bar:#BaseMenuBar
セッター public BaseMenuPane.menu-bar:#BaseMenuBar

この MenuPane のルートの先祖が BaseMenuBar の場合、それになります。

導入: バージョン 6.0


opened? (アクセサ)
アクセサ public BaseMenuPane.opened?:bool

BaseMenuPane が開かれているかどうかを示します。

導入: バージョン 6.0


sub-menu (アクセサ)
アクセサ public BaseMenuPane.sub-menu:#SubMenu
セッター public BaseMenuPane.sub-menu:#SubMenu

この BaseMenuPaneが関連する SubMenu があれば、それになります。

導入: バージョン 6.0


view (フィールド)
public-get protected-set BaseMenuPane.view:#View

このメニュー ペインが表示されていれば、これを含む View です。

導入: バージョン 6.0


view-opacity (ローカル オプション)
public BaseMenuPane.view-opacity:FloatFraction =1

この BaseMenuPane がそれ自身の View 内に表示される時の、View の不透明度です。

view-opacity:
このメニュー ペインの View の不透明度です。
0 (完全な透明) から 1 (不透明)の範囲となります。0 より小さい場合は、0 として扱われ、1 より大きい場合は、1 として扱われます。
非特権アプレットにおいては、不透明度は常に 0.50 以上になります。

注意事項

これは、WindowsXP 以上のプラットフォームと Macintosh のプラットフォームでのみサポートされます。全てのプラットフォームでは、効果がありません。
導入: バージョン 6.0


wrap-selection? (アクセサ)
アクセサ public BaseMenuPane.wrap-selection?:bool

上や下の矢印キーを押して選択を覆うことができる場合は、true を返します。既定値では、true です。

導入: バージョン 6.0





メソッド詳細
add-at-index (メソッド)
protected {BaseMenuPane.add-at-index g:#Graphic, where:any}:void

Graphicを設定されたインデックスで Menu に挿入します。

g: 追加する Graphic
where:
g が挿入される Menu 内の場所です。有効な場所の値は次の通りです: "default" 、 "last" 、 "first" 、または Menu.for-loop-count 以下の整数。 それ以外の場合は、エラーがスローされます。
"default" または "last" の場合は、gMenu の子のリストの最後に追加されます。"first" の場合は、g がリストの最初に挿入されます。

注意事項

このメソッドは、g を挿入した後に、Menu.note-item-added を呼び出します。
導入: バージョン 6.0


close (メソッド)
public {BaseMenuPane.close}:void

開かれている BaseMenuPane を閉じます。

説明

BaseMenuPane.opened?true の場合、この BaseMenuPane に関連する View が閉じられます。MenuNotification.close が BaseMenuPane の全オブザーバーに送られます。

注意事項

BaseMenuPane.hide を呼び出すと、このメソッドが呼び出されます。
導入: バージョン 6.0


hide (メソッド)
public {BaseMenuPane.hide}:void

メニューのトラバースを終了させることで開かれている MenuPane を閉じます。

導入: バージョン 6.0


pointer-exited-contents? (メソッド)
protected abstract {BaseMenuPane.pointer-exited-contents?}:bool

ポインタが以前 BaseMenuPane 内にあり、その後外に出た場合、true を返します。

x, y: BaseMenuPane に関連するポインタの座標です。

オーバーライド

BaseMenuPane のサブクラスはこのメソッドをオーバーライドしなければなりません。
MenuPane は、この問い合わせをそのユーザー インターフェイス オブジェクトである MenuPaneUI にデリゲートします。
導入: バージョン 6.0


popup (メソッド)
public {BaseMenuPane.popup visual:Visual, x:Distance, y:Distance}:void

Visual 上に MenuPane を表示します。

visual: MenuPane のポップアップ先である Visual
x, y: MenuPane のポップアップ先である visual の原点に対する位置。
導入: バージョン 6.0


show (メソッド)
public {BaseMenuPane.show item:SubMenu}:void

SubMenu のメニュー アイテムから MenuPane を取り出します。

item: MenuPane が表示される SubMenu です。

説明

これは、SubMenuMenu に関連しない場合、何も行いません。
Menu.popup-alongside? プロパティは、SubMenuMenuPane が、SubMenu が属する Menuの側に表示されるか、その下に表示されるかを決めるために使用されます。
導入: バージョン 6.0


show-adjacent (メソッド)
public {BaseMenuPane.show-adjacent
source:Visual,
rectangle:GRect,
alongside?:bool = true,
start-traversal?:bool = false
}:void

Visual およびそれが占有する四角形が指定された場合、その上下左右のいずれかに隣接してこの BaseMenuPane を表示します。

source: この BaseMenuPane を関連付ける表示可能なオブジェクト。この Visual を含む View が、メニュー ペインのオーナーです。
rectangle: ソース オブジェクトが占有する四角形。
alongside?: この MenuPane をいずれかの側に、あるいは一番上または一番下に沿って表示するかどうかを示します。
start-traversal?: true の場合は、この MenuPane のトラバースが直ちに開始されます。

説明

alongside?=true の場合、このペインは、MenuPane サブメニュー用の四角形の左または右に配置されます。右側に余裕がない場合は、左側に配置されます。alongside?=false の場合、この BaseMenuPane は、サブメニュー用の四角形の一番下 (下に余裕がない場合は上) に配置されます。この配置は、MenuBar または DropdownList に適しています。
導入: バージョン 6.0