Package org.gnome.gtksourceview
Class Annotations
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gtksourceview.Annotations
- All Implemented Interfaces:
Proxy
Use this object to manage
Annotations. Each View has a single annotation
manager and it is guaranteed to be the same for the lifetime of View.
Add AnnotationProviders with addProvider(org.gnome.gtksourceview.AnnotationProvider) to
display all the annotations added to each AnnotationProvider.
- Since:
- 5.18
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAnnotations.Builder<B extends Annotations.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static interfaceFunctional interface declaration of theChangedCallbackcallback.Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Annotations.Annotations(MemorySegment address) Create a Annotations proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(AnnotationProvider provider) Adds a new annotation provider.protected AnnotationsasParent()Returns this instance as if it were its parent type.static Annotations.Builder<? extends Annotations.Builder> builder()AAnnotations.Builderobject constructs aAnnotationswith the specified properties.voidstatic @Nullable TypegetType()Get the GType of the Annotations classonChanged(Annotations.ChangedCallback handler) booleanremoveProvider(AnnotationProvider provider) Removes a provider.Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getMemoryLayout, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Annotations
Create a Annotations proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Annotations
public Annotations()Creates a new Annotations.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type. -
addProvider
Adds a new annotation provider.- Parameters:
provider- aGtkSourceAnnotationProvider.
-
removeProvider
Removes a provider.- Parameters:
provider- aGtkSourceAnnotationProvider.- Returns:
trueif the provider was found and removed
-
onChanged
- See Also:
-
emitChanged
public void emitChanged() -
builder
AAnnotations.Builderobject constructs aAnnotationswith the specified properties. Use the variousset...()methods to set properties, and finish construction withAnnotations.Builder.build().- Returns:
- the builder object
-