Class LevelBar.Builder<B extends LevelBar.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,Orientable.Builder<B>
- Enclosing class:
LevelBar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theLevelBar
object.onOffsetChanged
(@Nullable String detail, LevelBar.OffsetChangedCallback handler) Emitted when an offset specified on the bar changes value.setInverted
(boolean inverted) Whether theGtkLeveBar
is inverted.setMaxValue
(double maxValue) Determines the maximum value of the interval that can be displayed by the bar.setMinValue
(double minValue) Determines the minimum value of the interval that can be displayed by the bar.setMode
(LevelBarMode mode) Determines the wayGtkLevelBar
interprets the value properties to draw the level fill area.setValue
(double value) Determines the currently filled value of the level bar.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, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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 org.gnome.gtk.Accessible.Builder
setAccessibleRole
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 theLevelBar
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 toLevelBar
.- Overrides:
build
in classWidget.Builder<B extends LevelBar.Builder<B>>
- Returns:
- a new instance of
LevelBar
with the properties that were set in the Builder object.
-
setInverted
Whether theGtkLeveBar
is inverted.Level bars normally grow from top to bottom or left to right. Inverted level bars grow in the opposite direction.
- Parameters:
inverted
- the value for theinverted
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMaxValue
Determines the maximum value of the interval that can be displayed by the bar.- Parameters:
maxValue
- the value for themax-value
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMinValue
Determines the minimum value of the interval that can be displayed by the bar.- Parameters:
minValue
- the value for themin-value
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMode
Determines the wayGtkLevelBar
interprets the value properties to draw the level fill area.Specifically, when the value is
LevelBarMode.CONTINUOUS
,GtkLevelBar
will draw a single block representing the current value in that area; when the value isLevelBarMode.DISCRETE
, the widget will draw a succession of separate blocks filling the draw area, with the number of blocks being equal to the units separating the integral roundings ofGtk.LevelBar:min-value
andGtk.LevelBar:max-value
.- Parameters:
mode
- the value for themode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setValue
Determines the currently filled value of the level bar.- Parameters:
value
- the value for thevalue
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onOffsetChanged
Emitted when an offset specified on the bar changes value.This typically is the result of a
LevelBar.addOffsetValue(java.lang.String, double)
call.The signal supports detailed connections; you can connect to the detailed signal "changed::x" in order to only receive callbacks when the value of offset "x" changes.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-