Interface IconsRO
- All Known Subinterfaces:
Icons, Proxy.Icons, Proxy.IconsRO
public interface IconsRO
Node's icons:
node.icons - read-only.-
Method Summary
Modifier and TypeMethodDescriptionbooleanreturns true if the node has an icon of this name.getAt(int index) returns the name of the icon at the given index (starting at 0) or null ifindex >= size.getFirst()returns the name of the first icon if the node has an icon assigned or null otherwise.getIcons()returns a read-only list of the names of the icons the node has.getUrls()returns a list of the urls of the icons the node has.iterator()allows application of Groovy collection methods like each(), collect(), ...intsize()returns the number of icons the node has.
-
Method Details
-
getAt
returns the name of the icon at the given index (starting at 0) or null ifindex >= size. Use it like this:def secondIconName = node.icons[1]
- Since:
- 1.2
-
getFirst
String getFirst()returns the name of the first icon if the node has an icon assigned or null otherwise. Equivalent:node.icons[0].- Since:
- 1.2
-
contains
-
size
int size()returns the number of icons the node has.- Since:
- 1.2
-
getIcons
-
getUrls
-
iterator
-