Proxy.Icons
public static interface Proxy.IconsRO
node.icons
- read-only.Modifier and Type | Method | Description |
---|---|---|
boolean |
contains(String name) |
returns true if the node has an icon of this name.
|
String |
getAt(int index) |
returns the name of the icon at the given index (starting at 0) or null if
index >= size . |
String |
getFirst() |
returns the name of the first icon if the node has an icon assigned or null otherwise.
|
List<String> |
getIcons() |
returns a read-only list of the names of the icons the node has.
|
List<URL> |
getUrls() |
returns a list of the urls of the icons the node has.
|
Iterator<String> |
iterator() |
allows application of Groovy collection methods like each(), collect(), ...
|
int |
size() |
returns the number of icons the node has.
|
String getAt(int index)
index >= size
.
Use it like this: def secondIconName = node.icons[1]
String getFirst()
node.icons[0]
.boolean contains(String name)
int size()
List<String> getIcons()
node.icons.first
or node.icons[0]
instead of
node.icons.icons[0]
. Perhaps you could also use iteration over icons, see.