Class ColumnViewRow
- All Implemented Interfaces:
Proxy
GtkColumnViewRow
is used by ColumnView
to allow configuring
how rows are displayed.
It is not used to set the widgets displayed in the individual cells. For that
see GtkColumnViewColumn#setFactory
and GtkColumnViewCell
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ColumnViewRow.Builder<B extends ColumnViewRow.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.static class
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionColumnViewRow
(MemorySegment address) Create a ColumnViewRow proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected ColumnViewRow
asParent()
Returns this instance as if it were its parent type.static ColumnViewRow.Builder
<? extends ColumnViewRow.Builder> builder()
AColumnViewRow.Builder
object constructs aColumnViewRow
with the specified properties.Gets the accessible description of this ColumnViewRow.Gets the accessible label of this ColumnViewRow.boolean
Checks if the row has been set to be activatable via gtk_column_view_row_set_activatable().boolean
Checks if a row item has been set to be focusable via gtk_column_view_row_set_focusable().getItem()
Gets the model item that associated with this ColumnViewRow.int
Gets the position in the model that this ColumnViewRow currently displays.boolean
Checks if the row has been set to be selectable via gtk_column_view_row_set_selectable().boolean
Checks if the item is selected that this row corresponds to.static Type
getType()
Get the GType of the ColumnViewRow classvoid
setAccessibleDescription
(String description) Sets the accessible description for the row, which may be used by e.g.void
setAccessibleLabel
(String label) Sets the accessible label for the row, which may be used by e.g.void
setActivatable
(boolean activatable) Sets this ColumnViewRow to be activatable.void
setFocusable
(boolean focusable) Sets this ColumnViewRow to be focusable.void
setSelectable
(boolean selectable) Sets this ColumnViewRow to be selectable.Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getMemoryLayout, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ColumnViewRow
Create a ColumnViewRow proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
getAccessibleDescription
Gets the accessible description of this ColumnViewRow.- Returns:
- the accessible description
-
getAccessibleLabel
Gets the accessible label of this ColumnViewRow.- Returns:
- the accessible label
-
getActivatable
public boolean getActivatable()Checks if the row has been set to be activatable via gtk_column_view_row_set_activatable().- Returns:
true
if the row is activatable
-
getFocusable
public boolean getFocusable()Checks if a row item has been set to be focusable via gtk_column_view_row_set_focusable().- Returns:
true
if the row is focusable
-
getItem
Gets the model item that associated with this ColumnViewRow.If this ColumnViewRow is unbound, this function returns
null
.- Returns:
- The item displayed
-
getPosition
public int getPosition()Gets the position in the model that this ColumnViewRow currently displays.If this ColumnViewRow is unbound,
GTK_INVALID_LIST_POSITION
is returned.- Returns:
- The position of this row
-
getSelectable
public boolean getSelectable()Checks if the row has been set to be selectable via gtk_column_view_row_set_selectable().Do not confuse this function with
getSelected()
.- Returns:
true
if the row is selectable
-
getSelected
public boolean getSelected()Checks if the item is selected that this row corresponds to.The selected state is maintained by the list widget and its model and cannot be set otherwise.
- Returns:
true
if the item is selected.
-
setAccessibleDescription
Sets the accessible description for the row, which may be used by e.g. screen readers.- Parameters:
description
- the description
-
setAccessibleLabel
Sets the accessible label for the row, which may be used by e.g. screen readers.- Parameters:
label
- the label
-
setActivatable
public void setActivatable(boolean activatable) Sets this ColumnViewRow to be activatable.If a row is activatable, double-clicking on the row, using the Return key or calling gtk_widget_activate() will activate the row. Activating instructs the containing columnview to emit the
Gtk.ColumnView::activate
signal.By default, row are activatable.
- Parameters:
activatable
- if the row should be activatable
-
setFocusable
public void setFocusable(boolean focusable) Sets this ColumnViewRow to be focusable.If a row is focusable, it can be focused using the keyboard. This works similar to
Widget.setFocusable(boolean)
.Note that if row are not focusable, the contents of cells can still be focused if they are focusable.
By default, rows are focusable.
- Parameters:
focusable
- if the row should be focusable
-
setSelectable
public void setSelectable(boolean selectable) Sets this ColumnViewRow to be selectable.If a row is selectable, clicking on the row or using the keyboard will try to select or unselect the row. Whether this succeeds is up to the model to determine, as it is managing the selected state.
Note that this means that making a row non-selectable has no influence on the selected state at all. A non-selectable row may still be selected.
By default, rows are selectable.
- Parameters:
selectable
- if the row should be selectable
-
builder
AColumnViewRow.Builder
object constructs aColumnViewRow
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withColumnViewRow.Builder.build()
.
-