Package org.gnome.gtksourceview
Class MarkAttributes.Builder<B extends MarkAttributes.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.MarkAttributes.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
MarkAttributes
public static class MarkAttributes.Builder<B extends MarkAttributes.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 theMarkAttributesobject.The code should connect to this signal to provide a tooltip for givenmark.The tooltip can contain a markup.The code should connect to this signal to provide a tooltip for givenmark.The tooltip should be just a plain text.setBackground(RGBA background) A color used for background of a line.AGIconthat may be a base of a rendered icon.setIconName(String iconName) An icon name that may be a base of a rendered icon.AGdkPixbufthat may be a base of a rendered icon.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 theMarkAttributesobject. 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 toMarkAttributes.- Overrides:
buildin classGObject.Builder<B extends MarkAttributes.Builder<B>>- Returns:
- a new instance of
MarkAttributeswith the properties that were set in the Builder object.
-
setBackground
-
setGicon
-
setIconName
-
setPixbuf
-
onQueryTooltipMarkup
The code should connect to this signal to provide a tooltip for givenmark.The tooltip can contain a markup.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onQueryTooltipText
The code should connect to this signal to provide a tooltip for givenmark.The tooltip should be just a plain text.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-