Package org.gnome.gtk
Class ConstraintGuide.Builder<B extends ConstraintGuide.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ConstraintGuide.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ConstraintGuide
public static class ConstraintGuide.Builder<B extends ConstraintGuide.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theConstraintGuideobject.setMaxHeight(int maxHeight) The maximum height of the guide.setMaxWidth(int maxWidth) The maximum width of the guide.setMinHeight(int minHeight) The minimum height of the guide.setMinWidth(int minWidth) The minimum width of the guide.A name that identifies theGtkConstraintGuide, for debugging.setNatHeight(int natHeight) The preferred, or natural, height of the guide.setNatWidth(int natWidth) The preferred, or natural, width of the guide.setStrength(ConstraintStrength strength) TheGtkConstraintStrengthto be used for the constraint on the natural size of the guide.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theConstraintGuideobject. 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 toConstraintGuide.- Overrides:
buildin classGObject.Builder<B extends ConstraintGuide.Builder<B>>- Returns:
- a new instance of
ConstraintGuidewith the properties that were set in the Builder object.
-
setMaxHeight
The maximum height of the guide.- Parameters:
maxHeight- the value for themax-heightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMaxWidth
The maximum width of the guide.- Parameters:
maxWidth- the value for themax-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMinHeight
The minimum height of the guide.- Parameters:
minHeight- the value for themin-heightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMinWidth
The minimum width of the guide.- Parameters:
minWidth- the value for themin-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setName
-
setNatHeight
The preferred, or natural, height of the guide.- Parameters:
natHeight- the value for thenat-heightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setNatWidth
The preferred, or natural, width of the guide.- Parameters:
natWidth- the value for thenat-widthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setStrength
TheGtkConstraintStrengthto be used for the constraint on the natural size of the guide.- Parameters:
strength- the value for thestrengthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-