Package ch.bailu.gtk.gtk
Class StringSorter
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.Sorter
ch.bailu.gtk.gtk.StringSorter
- All Implemented Interfaces:
PointerInterface
`GtkStringSorter` is a `GtkSorter` that compares strings.
It does the comparison in a linguistically correct way using the
current locale by normalizing Unicode strings and possibly case-folding
them before performing the comparison.
To obtain the strings to compare, this sorter evaluates a
[class@Gtk.Expression].
It does the comparison in a linguistically correct way using the
current locale by normalizing Unicode strings and possibly case-folding
them before performing the comparison.
To obtain the strings to compare, this sorter evaluates a
[class@Gtk.Expression].
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.Sorter
Sorter.OnChanged
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.gtk.Sorter
SIGNAL_ON_CHANGED
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionStringSorter
(Expression expression) Creates a new string sorter that compares items using the given
@expression.StringSorter
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
Gets the expression that is evaluated to obtain strings from items.boolean
Gets whether the sorter ignores case differences.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
setExpression
(Expression expression) Sets the expression that is evaluated to obtain strings from items.void
setIgnoreCase
(boolean ignore_case) Sets whether the sorter will ignore case differences.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
-
StringSorter
-
StringSorter
Creates a new string sorter that compares items using the given
@expression.
Unless an expression is set on it, this sorter will always
compare items as invalid.- Parameters:
expression
- The expression to evaluate
-
-
Method Details
-
getClassHandler
-
getExpression
Gets the expression that is evaluated to obtain strings from items.- Returns:
- a `GtkExpression`
-
getIgnoreCase
public boolean getIgnoreCase()Gets whether the sorter ignores case differences.- Returns:
- %TRUE if @self is ignoring case differences
-
setExpression
Sets the expression that is evaluated to obtain strings from items.
The expression must have the type %G_TYPE_STRING.- Parameters:
expression
- a `GtkExpression`
-
setIgnoreCase
public void setIgnoreCase(boolean ignore_case) Sets whether the sorter will ignore case differences.- Parameters:
ignore_case
- %TRUE to ignore case differences
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-