Package org.gnome.gtk
Interface TreeView.RowActivatedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
TreeView
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
RowActivatedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(TreePath path, @Nullable TreeViewColumn column) The "row-activated" signal is emitted when the methodTreeView.rowActivated(org.gnome.gtk.TreePath, org.gnome.gtk.TreeViewColumn)
is called.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceTreeView, MemorySegment path, MemorySegment column) Theupcall
method is called from native code.
-
Method Details
-
run
The "row-activated" signal is emitted when the methodTreeView.rowActivated(org.gnome.gtk.TreePath, org.gnome.gtk.TreeViewColumn)
is called.This signal is emitted when the user double-clicks a treeview row with the
Gtk.TreeView:activate-on-single-click
property set tofalse
, or when the user single-clicks a row when that property set totrue
.This signal is also emitted when a non-editable row is selected and one of the keys:
Space
,Shift
+Space
,Return
orEnter
is pressed.For selection handling refer to the tree widget conceptual overview as well as
GtkTreeSelection
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreePath, org.gnome.gtk.TreeViewColumn)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-