SerializableValueList
Object Hierarchy:
Description:
[
Version ( deprecated =
true , deprecated_since =
"0.18" , replacement =
"GXml.GomArrayString" ) ]
public class SerializableValueList :
Object,
SerializableProperty
Warning: SerializableValueList is deprecated since 0.18. Use GXml.GomArrayString.
Represent any value as string but a list of options by default to select from. property to be added as a
GXml.Attribute to a GXml.Element.
All values are stored in an array to get access to it by its position using
SerializableValueList.get_value_at.
Is recommended to initilize your list from a fixed array to avoid to have a list for each object in memory, do it by initialize the
internal variable GXml.SerializableValueList._vals, at construct {}
clause to point a fixed array of strings.
Content:
Creation methods:
Methods:
- public virtual void add_values (string[] vals)
Add a list of string values to select from.
- public string get_serializable_property_value ()
- public virtual string? get_value_at (int index)
Get the string value at a given index. This operation does not change
the actual value.
- public virtual List<string> get_values ()
Return a Gee.List with all possible
selection strings.
- public virtual string[] get_values_array ()
Get an array of string values in list.
- public virtual bool is_value ()
Checks if the actual value is in the values list.
- public virtual void select_value_at (int index)
Sets actual value to the one at a given position.
- public void set_serializable_property_value (string? val)
- public string to_string ()
Fields:
- protected string[] _vals
- protected ArrayList<string> extra
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GXml.SerializableProperty