Package org.gnome.gtksourceview
Class Tag.Builder<B extends Tag.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.TextTag.Builder<B>
org.gnome.gtksourceview.Tag.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Tag
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theTagobject.setDrawSpaces(boolean drawSpaces) Whether to draw white spaces.setDrawSpacesSet(boolean drawSpacesSet) Whether theTag:draw-spacesproperty is set and must be taken into account.Methods inherited from class org.gnome.gtk.TextTag.Builder
setAccumulativeMargin, setAllowBreaks, setAllowBreaksSet, setBackground, setBackgroundFullHeight, setBackgroundFullHeightSet, setBackgroundRgba, setBackgroundSet, setDirection, setEditable, setEditableSet, setFallback, setFallbackSet, setFamily, setFamilySet, setFont, setFontDesc, setFontFeatures, setFontFeaturesSet, setForeground, setForegroundRgba, setForegroundSet, setIndent, setIndentSet, setInsertHyphens, setInsertHyphensSet, setInvisible, setInvisibleSet, setJustification, setJustificationSet, setLanguage, setLanguageSet, setLeftMargin, setLeftMarginSet, setLetterSpacing, setLetterSpacingSet, setLineHeight, setLineHeightSet, setName, setOverline, setOverlineRgba, setOverlineRgbaSet, setOverlineSet, setParagraphBackground, setParagraphBackgroundRgba, setParagraphBackgroundSet, setPixelsAboveLines, setPixelsAboveLinesSet, setPixelsBelowLines, setPixelsBelowLinesSet, setPixelsInsideWrap, setPixelsInsideWrapSet, setRightMargin, setRightMarginSet, setRise, setRiseSet, setScale, setScaleSet, setSentence, setSentenceSet, setShowSpaces, setShowSpaces, setShowSpacesSet, setSize, setSizePoints, setSizeSet, setStretch, setStretchSet, setStrikethrough, setStrikethroughRgba, setStrikethroughRgbaSet, setStrikethroughSet, setStyle, setStyleSet, setTabs, setTabsSet, setTextTransform, setTextTransformSet, setUnderline, setUnderlineRgba, setUnderlineRgbaSet, setUnderlineSet, setVariant, setVariantSet, setWeight, setWeightSet, setWord, setWordSet, setWrapMode, setWrapModeSetMethods 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 theTagobject. 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 toTag.- Overrides:
buildin classTextTag.Builder<B extends Tag.Builder<B>>- Returns:
- a new instance of
Tagwith the properties that were set in the Builder object.
-
setDrawSpaces
Whether to draw white spaces.This property takes precedence over the value defined by the
SpaceDrawer'sSpaceDrawer:matrixproperty (only where the tag is applied).Setting this property also changes
Tag:draw-spaces-settotrue.- Parameters:
drawSpaces- the value for thedraw-spacesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDrawSpacesSet
Whether theTag:draw-spacesproperty is set and must be taken into account.- Parameters:
drawSpacesSet- the value for thedraw-spaces-setproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-