90 lines
1.9 KiB
Markdown
90 lines
1.9 KiB
Markdown
# UIStringListComponent.UIStringListComponent
|
|
|
|
[← UIStringListComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/3 · [önceki](UIStringListComponent.md) · [sonraki](UIStringListComponent-3.md)
|
|
|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
|
|
|
Field Detail
|
|
values
|
|
|
|
public java.util.List<java.lang.String> values
|
|
|
|
selected
|
|
|
|
public java.lang.Integer selected
|
|
|
|
background
|
|
|
|
public java.lang.Integer background
|
|
|
|
Constructor Detail
|
|
UIStringListComponent
|
|
|
|
|
|
|
|
public UIStringListComponent()
|
|
|
|
Method Detail
|
|
values
|
|
|
|
public UIStringListComponent values(java.lang.String... values)
|
|
|
|
Replace values within this string list.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|
|
// Replace values in strings
|
|
uiContext.get("strings").values("Tomato", "Cucumber", "Pepper", "Cabbage");
|
|
|
|
|
|
values
|
|
|
|
public UIStringListComponent values(java.util.List<java.lang.String> values)
|
|
|
|
Replace values within this string list.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
var vegetables = ["Tomato", "Cucumber", "Pepper", "Cabbage"];
|
|
|
|
// Replace values in strings
|
|
uiContext.get("strings").values(vegetables);
|
|
|
|
|
|
setValues
|
|
|
|
public UIStringListComponent setValues(java.util.List<java.lang.String> values)
|
|
|
|
Replace values within this string list.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
var vegetables = ["Tomato", "Cucumber", "Pepper", "Cabbage"];
|
|
|
|
// Replace values in strings
|
|
uiContext.get("strings").setValues(vegetables);
|
|
|
|
|
|
getValues
|
|
|
|
public java.util.List<java.lang.String> getValues()
|
|
|
|
Returns values of this string list.
|
|
|
|
var values = uiContext.get("strings").getValues();
|
|
|
|
for (var i in values)
|
|
{
|
|
c.send(values[i]);
|
|
}
|
|
|
|
|
|
selected
|
|
|
|
public UIStringListComponent selected(int selected)
|
|
|
|
Set the currently selected element.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|