Package org.gnome.gtk

Class StringList

java.lang.Object
All Implemented Interfaces:
Proxy, ListModelJavaList<StringObject>, ListModelJavaListMutable<StringObject>, ListModelJavaListSpliceable<StringObject>, Iterable<StringObject>, Collection<StringObject>, List<StringObject>, SequencedCollection<StringObject>, ListModel<StringObject>, Buildable

@Generated("io.github.jwharm.JavaGI") public class StringList extends GObject implements ListModel<StringObject>, Buildable, ListModelJavaListSpliceable<StringObject>
GtkStringList is a list model that wraps an array of strings.

The objects in the model are of type StringObject and have a "string" property that can be used inside expressions.

GtkStringList is well-suited for any place where you would typically use a char*[], but need a list model.

GtkStringList as GtkBuildable
The GtkStringList implementation of the GtkBuildable interface supports adding items directly using the <items> element and specifying <item> elements for each item. Each <item> element supports the regular translation attributes “translatable”, “context” and “comments”.

Here is a UI definition fragment specifying a GtkStringList

<object class="GtkStringList">
   <items>
     <item translatable="yes">Factory</item>
     <item translatable="yes">Home</item>
     <item translatable="yes">Subway</item>
   </items>
 </object>