(クラス)
コンストラクタ public | {BaseMenuPane.default} |
ローカル オプション 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}
}
}
ローカル オプション public BaseMenuPane.icon-width:
any =9pt
アクセサ public BaseMenuPane.opened?:
bool
アクセサ public BaseMenuPane.sub-menu:#
SubMenu セッター public BaseMenuPane.sub-menu:#
SubMenu
フィールド public-get protected-set BaseMenuPane.view:#
View
アクセサ public BaseMenuPane.wrap-selection?:
bool プロパティ 継承 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
public | {BaseMenuPane.close}:void |
public | {BaseMenuPane.hide}:void |
protected abstract | {BaseMenuPane.pointer-exited-contents?}:bool |
public | {BaseMenuPane.show-adjacent}: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 メソッド 継承 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 メソッド 継承 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 メソッド 継承 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
(コンストラクタ)
public | {BaseMenuPane.default} |
(ローカル オプション)
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}
}
}
この BaseMenuPane の MenuItem にアイコンがあれば、その高さです。
注意事項
このオプションの既定値は、オブジェクト自身に設定された最大 1in の高さを返すプロシージャです。アイコン自身に設定された高さを使用するために、アイコンが何であってもnull をオプションに設定してください。
導入:
バージョン 6.0
(ローカル オプション)
public BaseMenuPane.icon-width:
any =9pt
この BaseMenuPane の MenuItem にアイコンがあれば、その幅になります。
注意事項
このオプションの既定値は、9pt です。アイコン自身に設定された幅を使用するために、null をオプションに設定してください。
導入:
バージョン 6.0
(アクセサ)
(アクセサ)
アクセサ public BaseMenuPane.opened?:
bool
(アクセサ)
アクセサ public BaseMenuPane.sub-menu:#
SubMenu セッター public BaseMenuPane.sub-menu:#
SubMenu
(フィールド)
public-get protected-set BaseMenuPane.view:#
View このメニュー ペインが表示されていれば、これを含む View です。
導入:
バージョン 6.0
(ローカル オプション)
この BaseMenuPane がそれ自身の View 内に表示される時の、View の不透明度です。
view-opacity:
このメニュー ペインの View の不透明度です。
0 (完全な透明) から 1 (不透明)の範囲となります。0 より小さい場合は、0 として扱われ、1 より大きい場合は、1 として扱われます。
非特権アプレットにおいては、不透明度は常に 0.50 以上になります。
注意事項
これは、WindowsXP 以上のプラットフォームと Macintosh のプラットフォームでのみサポートされます。全てのプラットフォームでは、効果がありません。
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseMenuPane.wrap-selection?:
bool 上や下の矢印キーを押して選択を覆うことができる場合は、true を返します。既定値では、true です。
導入:
バージョン 6.0
(メソッド)
Graphicを設定されたインデックスで Menu に挿入します。
g: 追加する Graphic。
where:
g が挿入される
Menu 内の場所です。有効な場所の値は次の通りです: "default" 、 "last" 、 "first" 、または
Menu.for-loop-count 以下の整数。 それ以外の場合は、エラーがスローされます。
"default" または "last" の場合は、g は Menu の子のリストの最後に追加されます。"first" の場合は、g がリストの最初に挿入されます。
注意事項
導入:
バージョン 6.0
(メソッド)
public | {BaseMenuPane.close}:void |
(メソッド)
public | {BaseMenuPane.hide}:void |
メニューのトラバースを終了させることで開かれている MenuPane を閉じます。
導入:
バージョン 6.0
(メソッド)
protected abstract | {BaseMenuPane.pointer-exited-contents?}:bool |
ポインタが以前 BaseMenuPane 内にあり、その後外に出た場合、true を返します。
x, y: BaseMenuPane に関連するポインタの座標です。
オーバーライド
BaseMenuPane のサブクラスはこのメソッドをオーバーライドしなければなりません。
導入:
バージョン 6.0
(メソッド)
Visual 上に MenuPane を表示します。
visual:
MenuPane のポップアップ先である
Visual。
x, y: MenuPane のポップアップ先である visual の原点に対する位置。
導入:
バージョン 6.0
(メソッド)
(メソッド)
public | {BaseMenuPane.show-adjacent}:void |
Visual およびそれが占有する四角形が指定された場合、その上下左右のいずれかに隣接してこの BaseMenuPane を表示します。
source: この BaseMenuPane を関連付ける表示可能なオブジェクト。この Visual を含む View が、メニュー ペインのオーナーです。
rectangle: ソース オブジェクトが占有する四角形。
alongside?: この MenuPane をいずれかの側に、あるいは一番上または一番下に沿って表示するかどうかを示します。
start-traversal?: true の場合は、この MenuPane のトラバースが直ちに開始されます。
説明
alongside?=true の場合、このペインは、
MenuPane サブメニュー用の四角形の左または右に配置されます。右側に余裕がない場合は、左側に配置されます。
alongside?=false の場合、この
BaseMenuPane は、サブメニュー用の四角形の一番下 (下に余裕がない場合は上) に配置されます。この配置は、
MenuBar または
DropdownList に適しています。
導入:
バージョン 6.0