Class ColumnViewRow

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ColumnViewRow extends GObject

Configures how rows are displayed in a ColumnView.

It is not used to set the widgets displayed in the individual cells. For that see GtkColumnViewColumn.setFactory and GtkColumnViewCell.

Since:
4.12
  • Constructor Details

    • ColumnViewRow

      public ColumnViewRow(MemorySegment address)
      Create a ColumnViewRow instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ColumnViewRow

      public ColumnViewRow()
      Create a new ColumnViewRow.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ColumnViewRow class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ColumnViewRow asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getAccessibleDescription

      public String getAccessibleDescription()
      Gets the accessible description of self.
      Returns:
      the accessible description
      Since:
      4.12
    • getAccessibleLabel

      public String getAccessibleLabel()
      Gets the accessible label of self.
      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:
      true if 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:
      true if the row is focusable
      Since:
      4.12
    • getItem

      public @Nullable GObject getItem()

      Gets the model item that associated with self.

      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_POSITION is 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:
      true if 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:
      true if the item is selected.
      Since:
      4.12
    • setAccessibleDescription

      public void setAccessibleDescription(String description)
      Sets the accessible description for the row, which may be used by e.g. screen readers.
      Parameters:
      description - the description
      Since:
      4.12
    • setAccessibleLabel

      public void setAccessibleLabel(String label)
      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::activate signal.

      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

      public static ColumnViewRow.Builder<? extends ColumnViewRow.Builder> builder()
      A ColumnViewRow.Builder object constructs a ColumnViewRow with the specified properties. Use the various set...() methods to set properties, and finish construction with ColumnViewRow.Builder.build().
      Returns:
      the builder object