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

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

導入: バージョン 6.0

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

プロパティ
always-show-selection?:ポインタが MenuPaneMenuBar の境界の外にあっても、メニュー アイテムの選択を表示するかどうかを示します。
アクセサ public BaseMenuBar.always-show-selection?:bool
can-take-menu-focus?:BaseMenuBar がメニュー フォーカスを取得できるかどうかを示します。
アクセサ public BaseMenuBar.can-take-menu-focus?:bool
focus-manager:このオブジェクトに関連付けられた FocusManager です。
非ローカル オプション public BaseMenuBar.focus-manager:#FocusManager
has-menu-focus?:BaseMenuBar が現在メニュー フォーカスを持っているうかどうかを示します。
アクセサ public BaseMenuBar.has-menu-focus?:bool
icon-height:この BaseMenuBarMenuItem にアイコンがあれば、その高さです。
ローカル オプション public BaseMenuBar.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:この BaseMenuBarMenuItem にアイコンがあれば、その幅になります。
ローカル オプション public BaseMenuBar.icon-width:any ={proc {g:Graphic, e:OriginElastic}:OriginElastic {if e.preferred-size <= 0in then {return e} else let f:OriginElastic = {dimension-to-origin-elastic 0in} {return {e.set-preferred-size 0in, dest=f} asa OriginElastic} } }
popup-alongside?:サブメニューが、メニュー アイテムの横ではなく上か下にポップアップされることを示す場合、false を返します。
アクセサ public BaseMenuBar.popup-alongside?:bool
プロパティ 継承 Menu: event-delegate, first-item, for-loop-count, last-item, popup-context-visual, size, test-type-name
プロパティ 継承 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 {BaseMenuBar.add-at-index g:#Graphic, where:any}:void
add-key-accel:このメニューバーにいくつかのアイテムの KeyAccelを追加します。
protected {BaseMenuBar.add-key-accel c:KeyAccel}:void
clear:Menu の全アイテムを削除します。
public {BaseMenuBar.clear}:void
get-key-accel:e に一致する KeyAccel がある場合、それを返します。そうでなければ、null を返します。
public {BaseMenuBar.get-key-accel e:KeyPress}:#KeyAccel
handle-alt-key-release:必要であれば、MenuBar のサブクラスがメニューのトラバースを開始することを許可します。
protected {BaseMenuBar.handle-alt-key-release}:bool
maybe-fire-access-key:この MenuBar にあるメニュー アイテムのアクセラレーターである場合、KeyPress を操作します。
protected {BaseMenuBar.maybe-fire-access-key
kp:KeyPress,
query-only?:bool
}:bool
process-access-char:メニュー アクセス文字を処理します。
public {BaseMenuBar.process-access-char
ch:char,
query-only?:bool = false
}:bool
refresh:BaseMenuBar キー アクセラレータのテーブルを更新します。
public {BaseMenuBar.refresh}:void
remove-key-accel:設定された KeyAccel を、このメニューバーが保持しているテーブルから削除します。
protected {BaseMenuBar.remove-key-accel c:KeyAccel}:void
メソッド 継承 Menu: add, 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
メソッド 継承 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 {BaseMenuBar.default}

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

導入: バージョン 6.0



プロパティ詳細
always-show-selection? (アクセサ)
アクセサ public BaseMenuBar.always-show-selection?:bool

ポインタが MenuPaneMenuBar の境界の外にあっても、メニュー アイテムの選択を表示するかどうかを示します。

導入: バージョン 6.0


can-take-menu-focus? (アクセサ)
アクセサ public BaseMenuBar.can-take-menu-focus?:bool

BaseMenuBar がメニュー フォーカスを取得できるかどうかを示します。

注意事項

FocusManager.request-menu-focus も参照してください。
導入: バージョン 6.0


focus-manager (非ローカル オプション)
public BaseMenuBar.focus-manager:#FocusManager

このオブジェクトに関連付けられた FocusManager です。

注意事項

このオプションは、Curl グラフィック システム内での通信のために使用されます。これは、ユーザー コードで不用意に設定や設定解除を行わないでください。また、ユーザー コードで直接読み取るべきではありません。現在の FocusManager が必要な場合は、Visual.get-focus-manager を呼び出してフェッチしてください。


has-menu-focus? (アクセサ)
アクセサ public BaseMenuBar.has-menu-focus?:bool

BaseMenuBar が現在メニュー フォーカスを持っているうかどうかを示します。

注意事項

FocusManager.request-menu-focusBaseMenuBar.can-take-menu-focus? も参照してください。
導入: バージョン 6.0


icon-height (ローカル オプション)
public BaseMenuBar.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} } }

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

注意事項

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


icon-width (ローカル オプション)
public BaseMenuBar.icon-width:any ={proc {g:Graphic, e:OriginElastic}:OriginElastic {if e.preferred-size <= 0in then {return e} else let f:OriginElastic = {dimension-to-origin-elastic 0in} {return {e.set-preferred-size 0in, dest=f} asa OriginElastic} } }

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

注意事項

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


popup-alongside? (アクセサ)
アクセサ public BaseMenuBar.popup-alongside?:bool

サブメニューが、メニュー アイテムの横ではなく上か下にポップアップされることを示す場合、false を返します。

導入: バージョン 6.0





メソッド詳細
add-at-index (メソッド)
protected {BaseMenuBar.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


add-key-accel (メソッド)
protected {BaseMenuBar.add-key-accel c:KeyAccel}:void

このメニューバーにいくつかのアイテムの KeyAccelを追加します。

説明

c が既にテーブルに存在する場合、効果はありません。
導入: バージョン 6.0


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

Menu の全アイテムを削除します。

注意事項

このメソッドは、全てのアイテムを削除した後に、Menu.note-items-cleared を呼び出します。


get-key-accel (メソッド)
public {BaseMenuBar.get-key-accel e:KeyPress}:#KeyAccel

e に一致する KeyAccel がある場合、それを返します。そうでなければ、null を返します。

導入: バージョン 6.0


handle-alt-key-release (メソッド)
protected {BaseMenuBar.handle-alt-key-release}:bool

必要であれば、MenuBar のサブクラスがメニューのトラバースを開始することを許可します。

戻り値

トラバースが開始されていれば true を返します。
導入: バージョン 6.0


maybe-fire-access-key (メソッド)
protected {BaseMenuBar.maybe-fire-access-key
kp:KeyPress,
query-only?:bool
}:bool

この MenuBar にあるメニュー アイテムのアクセラレーターである場合、KeyPress を操作します。

kp: 操作する KeyPress イベントです。
query-only?: true の場合、呼び出しによって KeyPressがアクセラレータかどうかを知ることができますが、アクションは起動しません。
導入: バージョン 6.0


process-access-char (メソッド)
public {BaseMenuBar.process-access-char
ch:char,
query-only?:bool = false
}:bool

メニュー アクセス文字を処理します。

プログラミング注意事項

FocusManager によってのみ呼び出す必要があります。
query-only?: このメソッドを呼び出すと、実際にアクセス文字を処理してもしなくても true を返しますが、他に何も実行しません。
導入: バージョン 6.0


refresh (メソッド)
public {BaseMenuBar.refresh}:void

BaseMenuBar キー アクセラレータのテーブルを更新します。

注意事項

ルートとしてこの BaseMenuBar を持っている SubMenu の異なる MenuPane を返す場合はいつでも呼び出します。
導入: バージョン 6.0


remove-key-accel (メソッド)
protected {BaseMenuBar.remove-key-accel c:KeyAccel}:void

設定された KeyAccel を、このメニューバーが保持しているテーブルから削除します。

導入: バージョン 6.0