Package org.gnome.gtk
Class CellRendererProgress.Builder<B extends CellRendererProgress.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.CellRenderer.Builder<B>
org.gnome.gtk.CellRendererProgress.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Orientable.Builder<B>
- Enclosing class:
CellRendererProgress
public static class CellRendererProgress.Builder<B extends CellRendererProgress.Builder<B>>
extends CellRenderer.Builder<B>
implements Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCellRendererProgress
object.setInverted
(boolean inverted) Whether progess is inverted.setPulse
(int pulse) Setting this to a non-negative value causes the cell renderer to enter "activity mode", where a block bounces back and forth to indicate that some progress is made, without specifying exactly how much.The "text" property determines the label which will be drawn over the progress bar.setTextXalign
(float textXalign) The "text-xalign" property controls the horizontal alignment of the text in the progress bar.setTextYalign
(float textYalign) The "text-yalign" property controls the vertical alignment of the text in the progress bar.setValue
(int value) The "value" property determines the percentage to which the progress bar will be "filled in".Methods inherited from class org.gnome.gtk.CellRenderer.Builder
onEditingCanceled, onEditingStarted, setCellBackground, setCellBackgroundRgba, setCellBackgroundSet, setHeight, setIsExpanded, setIsExpander, setMode, setSensitive, setVisible, setWidth, setXalign, setXpad, setYalign, setYpad
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theCellRendererProgress
object. 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 toCellRendererProgress
.- Overrides:
build
in classCellRenderer.Builder<B extends CellRendererProgress.Builder<B>>
- Returns:
- a new instance of
CellRendererProgress
with the properties that were set in the Builder object.
-
setInverted
Whether progess is inverted.- Parameters:
inverted
- the value for theinverted
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPulse
Setting this to a non-negative value causes the cell renderer to enter "activity mode", where a block bounces back and forth to indicate that some progress is made, without specifying exactly how much.Each increment of the property causes the block to move by a little bit.
To indicate that the activity has not started yet, set the property to zero. To indicate completion, set the property to
G_MAXINT
.- Parameters:
pulse
- the value for thepulse
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setText
The "text" property determines the label which will be drawn over the progress bar. Setting this property tonull
causes the default label to be displayed. Setting this property to an empty string causes no label to be displayed.- Parameters:
text
- the value for thetext
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTextXalign
The "text-xalign" property controls the horizontal alignment of the text in the progress bar. Valid values range from 0 (left) to 1 (right). Reserved for RTL layouts.- Parameters:
textXalign
- the value for thetext-xalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTextYalign
The "text-yalign" property controls the vertical alignment of the text in the progress bar. Valid values range from 0 (top) to 1 (bottom).- Parameters:
textYalign
- the value for thetext-yalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setValue
The "value" property determines the percentage to which the progress bar will be "filled in".- Parameters:
value
- the value for thevalue
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-