クラス
javafx.scene.input.ContextMenuEventの使用
-
ContextMenuEventを使用するパッケージ パッケージ 説明 javafx.scene JavaFXシーン・グラフAPIのベース・クラスのコア・セットを提供します。javafx.scene.input マウスおよびキーボード入力イベント処理のクラスのセットを提供します。 -
-
javafx.sceneのContextMenuEventの使用
ContextMenuEvent型の引数を持つ型を返すjavafx.sceneのメソッド 修飾子と型 メソッド 説明 EventHandler<? super ContextMenuEvent>
Node. getOnContextMenuRequested()
プロパティonContextMenuRequestedの値を取得します。EventHandler<? super ContextMenuEvent>
Scene. getOnContextMenuRequested()
プロパティonContextMenuRequestedの値を取得します。ObjectProperty<EventHandler<? super ContextMenuEvent>>
Node. onContextMenuRequestedProperty()
このNode
でコンテキスト・メニューがリクエストされたときに呼び出される関数を定義します。ObjectProperty<EventHandler<? super ContextMenuEvent>>
Scene. onContextMenuRequestedProperty()
このScene
でマウス・ボタンがクリックされた(押されて放された)ときに呼び出される関数を定義します。ContextMenuEvent型の型引数を持つjavafx.sceneのメソッド・パラメータ 修飾子と型 メソッド 説明 void
Node. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
プロパティonContextMenuRequestedの値を設定します。void
Scene. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
プロパティonContextMenuRequestedの値を設定します。 -
javafx.scene.inputのContextMenuEventの使用
ContextMenuEvent型の型パラメータを持つjavafx.scene.inputのフィールド 修飾子と型 フィールド 説明 static EventType<ContextMenuEvent>
ContextMenuEvent. ANY
すべてのコンテキスト・メニュー・イベント・タイプに共通のスーパータイプ。static EventType<ContextMenuEvent>
ContextMenuEvent. CONTEXT_MENU_REQUESTED
このイベントは、コンテキスト・メニューが要求されたときに発生します。ContextMenuEventを返すjavafx.scene.inputのメソッド 修飾子と型 メソッド 説明 ContextMenuEvent
ContextMenuEvent. copyFor(Object newSource, EventTarget newTarget)
ContextMenuEvent型の引数を持つ型を返すjavafx.scene.inputのメソッド 修飾子と型 メソッド 説明 EventType<ContextMenuEvent>
ContextMenuEvent. getEventType()
ContextMenuEvent型の型引数を持つjavafx.scene.inputのコンストラクタ・パラメータ コンストラクタ 説明 ContextMenuEvent(Object source, EventTarget target, EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult)
新しいContextMenuイベントを構築します。ContextMenuEvent(EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult)
空のソースおよびターゲットを使用した新しいContextMenuイベントを構築します。
-