Package ch.bailu.gtk.gtk
Class BookmarkList
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.BookmarkList
- All Implemented Interfaces:
PointerInterface
`GtkBookmarkList` is a list model that wraps `GBookmarkFile`.
It presents a `GListModel` and fills it asynchronously with the
`GFileInfo`s returned from that function.
The `GFileInfo`s in the list have some attributes in the recent
namespace added: `recent::private` (boolean) and `recent:applications`
(stringv).
It presents a `GListModel` and fills it asynchronously with the
`GFileInfo`s returned from that function.
The `GFileInfo`s in the list have some attributes in the recent
namespace added: `recent::private` (boolean) and `recent:applications`
(stringv).
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
ConstructorsConstructorDescriptionBookmarkList(PointerContainer pointer) BookmarkList(Str filename, Str attributes) Creates a new `GtkBookmarkList` with the given @attributes.BookmarkList(String filename, String attributes) Creates a new `GtkBookmarkList` with the given @attributes. -
Method Summary
Modifier and TypeMethodDescriptionImplements interfaceListModel.Gets the attributes queried on the children.static ClassHandlerReturns the filename of the bookmark file that
this list is loading.static intintGets the IO priority to use while loading file.static longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizebooleanReturns %TRUE if the files are currently being loaded.voidsetAttributes(Str attributes) Sets the @attributes to be enumerated and starts the enumeration.voidsetAttributes(String attributes) Sets the @attributes to be enumerated and starts the enumeration.voidsetIoPriority(int io_priority) Sets the IO priority to use while loading files.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
BookmarkList
-
BookmarkList
Creates a new `GtkBookmarkList` with the given @attributes.- Parameters:
filename- The bookmark file to loadattributes- The attributes to query
-
BookmarkList
Creates a new `GtkBookmarkList` with the given @attributes.- Parameters:
filename- The bookmark file to loadattributes- The attributes to query
-
-
Method Details
-
getClassHandler
-
getAttributes
Gets the attributes queried on the children.- Returns:
- The queried attributes
-
getFilename
Returns the filename of the bookmark file that
this list is loading.- Returns:
- the filename of the .xbel file
-
getIoPriority
public int getIoPriority()Gets the IO priority to use while loading file.- Returns:
- The IO priority.
-
isLoading
public boolean isLoading()Returns %TRUE if the files are currently being loaded.
Files will be added to @self from time to time while loading is
going on. The order in which are added is undefined and may change
in between runs.- Returns:
- %TRUE if @self is loading
-
setAttributes
Sets the @attributes to be enumerated and starts the enumeration.
If @attributes is %NULL, no attributes will be queried, but a list
of `GFileInfo`s will still be created.- Parameters:
attributes- the attributes to enumerate
-
setAttributes
Sets the @attributes to be enumerated and starts the enumeration.
If @attributes is %NULL, no attributes will be queried, but a list
of `GFileInfo`s will still be created.- Parameters:
attributes- the attributes to enumerate
-
setIoPriority
public void setIoPriority(int io_priority) Sets the IO priority to use while loading files.
The default IO priority is %G_PRIORITY_DEFAULT.- Parameters:
io_priority- IO priority to use
-
asListModel
Implements interfaceListModel. Call this to get access to interface functions.- Returns:
ListModel
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-