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

Component traversal

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 5.0.4
    • Components
    • None

      https://sourceforge.net/tracker/?func=detail&aid=3066512&group_id=152762&atid=785194

      add a new attribute to traversal method of ZK component
      such as getParent(Component);
      //getNextSibling() , getChild(), .... also could do this

      Example ZUL :
      ...
      <div>
      <grid>
      <row>
      <hlayout>
      <span id="myspan">
      ....
      Usage :
      Div myDiv = myspan.getParent(div);
      //return the first DIV found during getParent()

      Origional :
      Div myDiv = (Div) myspan.getParent().getParent().getParent().getParent();
      //need to get A LOT and cast it to my DIV

            Unassigned Unassigned
            asukachen asukachen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: