Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1013

Component.queryAll() shall return Iterable<Component> instead of List<Component> for better performance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1
    • None
    • None

      In other words, queryAll shall not tranverse the whole component tree, until the caller iterates throught the returned collection. Thus, it can be used to implement filter and other function effectively. For example,

      for (Component c in comp.queryAll("textbox"))
        if (matches(c)) {
          //do something
          break; //strop the tree  traversal.
        }
      

            Unassigned Unassigned
            tomyeh tomyeh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m