Package ch.bailu.gtk.gtk
Klasse StringFilter
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.Filter
ch.bailu.gtk.gtk.StringFilter
- Alle implementierten Schnittstellen:
PointerInterface
Determines whether to include items by comparing strings to a fixed search term.
The strings are obtained from the items by evaluating an expression
set with [method@Gtk.StringFilter.set_expression], and they are
compared against a search term set with [method@Gtk.StringFilter.set_search].
`GtkStringFilter` has several different modes of comparison - it
can match the whole string, just a prefix, or any substring. Use
[method@Gtk.StringFilter.set_match_mode] choose a mode.
It is also possible to make case-insensitive comparisons, with
[method@Gtk.StringFilter.set_ignore_case].
The strings are obtained from the items by evaluating an expression
set with [method@Gtk.StringFilter.set_expression], and they are
compared against a search term set with [method@Gtk.StringFilter.set_search].
`GtkStringFilter` has several different modes of comparison - it
can match the whole string, just a prefix, or any substring. Use
[method@Gtk.StringFilter.set_match_mode] choose a mode.
It is also possible to make case-insensitive comparisons, with
[method@Gtk.StringFilter.set_ignore_case].
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gtk.Filter
Filter.OnChanged
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gtk.Filter
SIGNAL_ON_CHANGED
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStringFilter
(Expression expression) Creates a new string filter.StringFilter
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
Gets the expression that the string filter uses to
obtain strings from items.boolean
Returns whether the filter ignores case differences.static int
int
Returns the match mode that the filter is using.static long
static TypeSystem.TypeSize
Gets the search term.static long
static TypeSystem.TypeSize
void
setExpression
(Expression expression) Sets the expression that the string filter uses to
obtain strings from items.void
setIgnoreCase
(boolean ignore_case) Sets whether the filter ignores case differences.void
setMatchMode
(int mode) Sets the match mode for the filter.void
Sets the string to search for.void
Sets the string to search for.Von Klasse geerbte Methoden ch.bailu.gtk.gtk.Filter
changed, getStrictness, match, onChanged
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden 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
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
StringFilter
-
StringFilter
Creates a new string filter.
You will want to set up the filter by providing a string to search for
and by providing a property to look up on the item.- Parameter:
expression
- the expression to evaluate
-
-
Methodendetails
-
getClassHandler
-
getExpression
Gets the expression that the string filter uses to
obtain strings from items.- Gibt zurück:
- the expression
-
getIgnoreCase
public boolean getIgnoreCase()Returns whether the filter ignores case differences.- Gibt zurück:
- true if the filter ignores case
-
getMatchMode
public int getMatchMode()Returns the match mode that the filter is using.- Gibt zurück:
- the match mode of the filter
-
getSearch
Gets the search term.- Gibt zurück:
- the search term
-
setExpression
Sets the expression that the string filter uses to
obtain strings from items.
The expression must have a value type of `G_TYPE_STRING`.- Parameter:
expression
- the expression
-
setIgnoreCase
public void setIgnoreCase(boolean ignore_case) Sets whether the filter ignores case differences.- Parameter:
ignore_case
- true to ignore case
-
setMatchMode
public void setMatchMode(int mode) Sets the match mode for the filter.- Parameter:
mode
- the new match mode
-
setSearch
Sets the string to search for.- Parameter:
search
- the string to search for
-
setSearch
Sets the string to search for.- Parameter:
search
- the string to search for
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-