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
ConstructorDescriptionBookmarkList
(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 ClassHandler
Returns the filename of the bookmark file that
this list is loading.static int
int
Gets the IO priority to use while loading file.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Returns %TRUE if the files are currently being loaded.void
setAttributes
(Str attributes) Sets the @attributes to be enumerated and starts the enumeration.void
setAttributes
(String attributes) Sets the @attributes to be enumerated and starts the enumeration.void
setIoPriority
(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, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-