Would it be possible to add getChildren as although we have GetAllViewsRecursive, that tends to return too many items.
eg:
GetAllViewsRecursive on rootpane returns
Whereas getChildren for the same rootpane returns
eg:
GetAllViewsRecursive on rootpane returns
Button@1f57448b[styleClass=button]'Text'
Text[text="Text", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=14.0], fontSmoothingType=LCD, fill=0x333333ff]
TextField@1b0d7227[styleClass=text-input text-field]
Pane@4b5654f0
Text[text="Prompt", x=0.0, y=16.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xb2b2b2ff]
Path[elements=[], fill=0xccccccff, fillRule=NON_ZERO]
Text[text="", x=0.0, y=16.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0x333333ff]
Group@35e5ef2c
Path[elements=[MoveTo[x=0.0, y=0.0], LineTo[x=0.0, y=21.0]], fill=0x333333ff, fillRule=NON_ZERO, stroke=0x333333ff, strokeWidth=1.0]
Canvas@1518d6ea
TableView@77ed70bf[styleClass=table-view]
TableHeaderRow@2713e13d[styleClass=column-header-background]
Region@5a6d46b1[styleClass=filler]
NestedTableColumnHeader@7e65d1d6[styleClass=nested-column-header]
TableColumnHeader@5b7a9c0f
TableColumnHeader[id=null, styleClass=column-header table-column]
Label@20798eda[styleClass=label]'Column 1'
Text[text="Column 1", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Bold, family=System, style=Bold, size=15.0], fontSmoothingType=LCD, fill=0x333333ff]
TableColumnHeader[id=null, styleClass=column-header table-column]
Label@73b7bfd0[styleClass=label]'Column 2'
Text[text="Column 2", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Bold, family=System, style=Bold, size=15.0], fontSmoothingType=LCD, fill=0x333333ff]
TableColumnHeader[id=null, styleClass=column-header table-column]
Label@37b18b79[styleClass=label]'Column3'
Text[text="Column3", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Bold, family=System, style=Bold, size=15.0], fontSmoothingType=LCD, fill=0x333333ff]
Rectangle[x=0.0, y=0.0, width=4.0, height=30.0, fill=0x00000000]
Rectangle[x=0.0, y=0.0, width=4.0, height=30.0, fill=0x00000000]
Rectangle[x=0.0, y=0.0, width=4.0, height=30.0, fill=0x00000000]
TableHeaderRow$2@3c8f9657[styleClass=show-hide-columns-button]
StackPane@472c700a[styleClass=show-hide-column-image]
StackPane@17fb65bd[styleClass=column-drag-header]
Label@5e16ea0a[styleClass=label]''
Text[text="", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0xffffffff]
VirtualFlow[id=virtual-flow, styleClass=virtual-flow]
VirtualFlow$ClippedContainer@2008c253[styleClass=clipped-container]
Group@5b443a21[styleClass=sheet]
Group@1bf73c35
VirtualScrollBar@cabb7cd[styleClass=scroll-bar]
StackPane@2d9b0c55[styleClass=track-background]
ScrollBarSkin$2@57c1e3cd[styleClass=increment-button]
Region@27aad219[styleClass=increment-arrow]
ScrollBarSkin$3@57eda796[styleClass=decrement-button]
Region@2b6e976[styleClass=decrement-arrow]
StackPane@158845e8[styleClass=track]
ScrollBarSkin$1@60041aa8[styleClass=thumb]
VirtualScrollBar@23ca21fc[styleClass=scroll-bar]
StackPane@3aac77b[styleClass=track-background]
ScrollBarSkin$2@6af23d48[styleClass=increment-button]
Region@3d942c56[styleClass=increment-arrow]
ScrollBarSkin$3@76984adc[styleClass=decrement-button]
Region@50fc44b4[styleClass=decrement-arrow]
StackPane@4473795f[styleClass=track]
ScrollBarSkin$1@11b7ffb5[styleClass=thumb]
StackPane@1e23dd2c[styleClass=corner]
Region@375572e4[styleClass=column-overlay]
Region@7bcf3f3e[styleClass=column-resize-line]
StackPane@63ebc5ba[styleClass=placeholder]
Label@6b9cec5d[styleClass=label]'No content in table'
Text[text="No content in table", x=0.0, y=0.0, alignment=LEFT, origin=BASELINE, boundsType=LOGICAL_VERTICAL_CENTER, font=Font[name=System Regular, family=System, style=Regular, size=15.0], fontSmoothingType=LCD, fill=0x333333ff]
Whereas getChildren for the same rootpane returns
which is much faster to search for an item.Button@1f57448b[styleClass=button]'Text'
TextField@1b0d7227[styleClass=text-input text-field]
Canvas@1518d6ea
TableView@77ed70bf[styleClass=table-view]