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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.1
    • Component/s: None

      Description

      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.
        }
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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