Class ColumnViewRow
- All Implemented Interfaces:
Proxy
ColumnView.
It is not used to set the widgets displayed in the individual cells. For that
see GtkColumnViewColumn#setFactory and GtkColumnViewCell.
- Since:
- 4.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classColumnViewRow.Builder<B extends ColumnViewRow.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ColumnViewRow.ColumnViewRow(MemorySegment address) Create a ColumnViewRow proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected ColumnViewRowasParent()Returns this instance as if it were its parent type.static ColumnViewRow.Builder<? extends ColumnViewRow.Builder> builder()AColumnViewRow.Builderobject constructs aColumnViewRowwith the specified properties.Gets the accessible description ofself.Gets the accessible label ofself.booleanChecks if the row has been set to be activatable via gtk_column_view_row_set_activatable().booleanChecks if a row item has been set to be focusable via gtk_column_view_row_set_focusable().@Nullable GObjectgetItem()Gets the model item that associated withself.intGets the position in the model that this ColumnViewRow currently displays.booleanChecks if the row has been set to be selectable via gtk_column_view_row_set_selectable().booleanChecks if the item is selected that this row corresponds to.static @Nullable TypegetType()Get the GType of the ColumnViewRow classvoidsetAccessibleDescription(String description) Sets the accessible description for the row, which may be used by e.g.voidsetAccessibleLabel(String label) Sets the accessible label for the row, which may be used by e.g.voidsetActivatable(boolean activatable) Sets this ColumnViewRow to be activatable.voidsetFocusable(boolean focusable) Sets this ColumnViewRow to be focusable.voidsetSelectable(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, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.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
-
ColumnViewRow
public ColumnViewRow()Creates a new ColumnViewRow.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, 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 ofself.- Returns:
- the accessible description
- Since:
- 4.12
-
getAccessibleLabel
Gets the accessible label ofself.- Returns:
- the accessible label
- Since:
- 4.12
-
getActivatable
public boolean getActivatable()Checks if the row has been set to be activatable via gtk_column_view_row_set_activatable().- Returns:
trueif the row is activatable- Since:
- 4.12
-
getFocusable
public boolean getFocusable()Checks if a row item has been set to be focusable via gtk_column_view_row_set_focusable().- Returns:
trueif the row is focusable- Since:
- 4.12
-
getItem
Gets the model item that associated withself.If this ColumnViewRow is unbound, this function returns
null.- Returns:
- The item displayed
- Since:
- 4.12
-
getPosition
public int getPosition()Gets the position in the model that this ColumnViewRow currently displays.If this ColumnViewRow is unbound,
GTK_INVALID_LIST_POSITIONis returned.- Returns:
- The position of this row
- Since:
- 4.12
-
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:
trueif the row is selectable- Since:
- 4.12
-
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:
trueif the item is selected.- Since:
- 4.12
-
setAccessibleDescription
Sets the accessible description for the row, which may be used by e.g. screen readers.- Parameters:
description- the description- Since:
- 4.12
-
setAccessibleLabel
Sets the accessible label for the row, which may be used by e.g. screen readers.- Parameters:
label- the label- Since:
- 4.12
-
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::activatesignal.By default, row are activatable.
- Parameters:
activatable- if the row should be activatable- Since:
- 4.12
-
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- Since:
- 4.12
-
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- Since:
- 4.12
-
builder
AColumnViewRow.Builderobject constructs aColumnViewRowwith the specified properties. Use the variousset...()methods to set properties, and finish construction withColumnViewRow.Builder.build().- Returns:
- the builder object
-