Class IconView.Builder<B extends IconView.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,Scrollable.Builder<B>,BuilderInterface
- Enclosing class:
IconView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theIconViewobject.AGtk.SignalActionwhich gets emitted when the user activates the currently focused item.The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called, when the user double clicks an item with the "activate-on-single-click" property set tofalse, or when the user single clicks an item when the "activate-on-single-click" property set totrue.onMoveCursor(IconView.MoveCursorCallback handler) The ::move-cursor signal is aGtk.SignalActionwhich gets emitted when the user initiates a cursor movement.onSelectAll(IconView.SelectAllCallback handler) AGtk.SignalActionwhich gets emitted when the user selects all items.AGtk.SignalActionwhich gets emitted when the user selects the item that is currently focused.The ::selection-changed signal is emitted when the selection (i.e.AGtk.SignalActionwhich gets emitted when the user toggles whether the currently focused item is selected or not.AGtk.SignalActionwhich gets emitted when the user unselects all items.setActivateOnSingleClick(boolean activateOnSingleClick) The activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click.setCellArea(CellArea cellArea) TheGtkCellAreaused to layout cell renderers for this view.setColumns(int columns) The columns property contains the number of the columns in which the items should be displayed.setColumnSpacing(int columnSpacing) The column-spacing property specifies the space which is inserted between the columns of the icon view.setItemOrientation(Orientation itemOrientation) The item-orientation property specifies how the cells (i.e.setItemPadding(int itemPadding) The item-padding property specifies the padding around each of the icon view's item.setItemWidth(int itemWidth) The item-width property specifies the width to use for each item.setMargin(int margin) The margin property specifies the space which is inserted at the edges of the icon view.setMarkupColumn(int markupColumn) The ::markup-column property contains the number of the model column containing markup information to be displayed.The model of the icon view.setPixbufColumn(int pixbufColumn) The ::pixbuf-column property contains the number of the model column containing the pixbufs which are displayed.setReorderable(boolean reorderable) The reorderable property specifies if the items can be reordered by DND.setRowSpacing(int rowSpacing) The row-spacing property specifies the space which is inserted between the rows of the icon view.setSelectionMode(SelectionMode selectionMode) The ::selection-mode property specifies the selection mode of icon view.setSpacing(int spacing) The spacing property specifies the space which is inserted between the cells (i.e.setTextColumn(int textColumn) The ::text-column property contains the number of the model column containing the texts which are displayed.setTooltipColumn(int tooltipColumn) The column of the icon view model which is being used for displaying tooltips on it's rows.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface org.gnome.gtk.Scrollable.Builder
setHadjustment, setHscrollPolicy, setVadjustment, setVscrollPolicy
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theIconViewobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toIconView.- Overrides:
buildin classWidget.Builder<B extends IconView.Builder<B>>- Returns:
- a new instance of
IconViewwith the properties that were set in the Builder object.
-
setActivateOnSingleClick
The activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click.- Parameters:
activateOnSingleClick- the value for theactivate-on-single-clickproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setCellArea
TheGtkCellAreaused to layout cell renderers for this view.If no area is specified when creating the icon view with gtk_icon_view_new_with_area() a
GtkCellAreaBoxwill be used.- Parameters:
cellArea- the value for thecell-areaproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumnSpacing
The column-spacing property specifies the space which is inserted between the columns of the icon view.- Parameters:
columnSpacing- the value for thecolumn-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setColumns
The columns property contains the number of the columns in which the items should be displayed. If it is -1, the number of columns will be chosen automatically to fill the available area.- Parameters:
columns- the value for thecolumnsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setItemOrientation
The item-orientation property specifies how the cells (i.e. the icon and the text) of the item are positioned relative to each other.- Parameters:
itemOrientation- the value for theitem-orientationproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setItemPadding
The item-padding property specifies the padding around each of the icon view's item.- Parameters:
itemPadding- the value for theitem-paddingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setItemWidth
The item-width property specifies the width to use for each item. If it is set to -1, the icon view will automatically determine a suitable item size.- Parameters:
itemWidth- the value for theitem-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMargin
The margin property specifies the space which is inserted at the edges of the icon view.- Parameters:
margin- the value for themarginproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMarkupColumn
The ::markup-column property contains the number of the model column containing markup information to be displayed. The markup column must be of typeG_TYPE_STRING. If this property and the :text-column property are both set to column numbers, it overrides the text column. If both are set to -1, no texts are displayed.- Parameters:
markupColumn- the value for themarkup-columnproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModel
-
setPixbufColumn
The ::pixbuf-column property contains the number of the model column containing the pixbufs which are displayed. The pixbuf column must be of typeGDK_TYPE_PIXBUF. Setting this property to -1 turns off the display of pixbufs.- Parameters:
pixbufColumn- the value for thepixbuf-columnproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setReorderable
The reorderable property specifies if the items can be reordered by DND.- Parameters:
reorderable- the value for thereorderableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRowSpacing
The row-spacing property specifies the space which is inserted between the rows of the icon view.- Parameters:
rowSpacing- the value for therow-spacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSelectionMode
The ::selection-mode property specifies the selection mode of icon view. If the mode isSelectionMode.MULTIPLE, rubberband selection is enabled, for the other modes, only keyboard selection is possible.- Parameters:
selectionMode- the value for theselection-modeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSpacing
The spacing property specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.- Parameters:
spacing- the value for thespacingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTextColumn
The ::text-column property contains the number of the model column containing the texts which are displayed. The text column must be of typeG_TYPE_STRING. If this property and the :markup-column property are both set to -1, no texts are displayed.- Parameters:
textColumn- the value for thetext-columnproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTooltipColumn
The column of the icon view model which is being used for displaying tooltips on it's rows.- Parameters:
tooltipColumn- the value for thetooltip-columnproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onActivateCursorItem
AGtk.SignalActionwhich gets emitted when the user activates the currently focused item.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control activation programmatically.
The default bindings for this signal are Space, Return and Enter.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onItemActivated
The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called, when the user double clicks an item with the "activate-on-single-click" property set tofalse, or when the user single clicks an item when the "activate-on-single-click" property set totrue. It is also emitted when a non-editable item is selected and one of the keys: Space, Return or Enter is pressed.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onMoveCursor
The ::move-cursor signal is aGtk.SignalActionwhich gets emitted when the user initiates a cursor movement.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.
The default bindings for this signal include
- Arrow keys which move by individual steps
- Home/End keys which move to the first/last item
- PageUp/PageDown which move by "pages" All of these will extend the selection when combined with the Shift modifier.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onSelectAll
AGtk.SignalActionwhich gets emitted when the user selects all items.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.
The default binding for this signal is Ctrl-a.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onSelectCursorItem
AGtk.SignalActionwhich gets emitted when the user selects the item that is currently focused.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.
There is no default binding for this signal.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onSelectionChanged
The ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onToggleCursorItem
AGtk.SignalActionwhich gets emitted when the user toggles whether the currently focused item is selected or not. The exact effect of this depend on the selection mode.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.
There is no default binding for this signal is Ctrl-Space.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onUnselectAll
AGtk.SignalActionwhich gets emitted when the user unselects all items.Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.
The default binding for this signal is Ctrl-Shift-a.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-