equal
deleted
inserted
replaced
83 * getComponentBefore have already built the list before determining |
83 * getComponentBefore have already built the list before determining |
84 * that they need to invoke getFirstComponent or getLastComponent, the |
84 * that they need to invoke getFirstComponent or getLastComponent, the |
85 * list should be reused if possible. |
85 * list should be reused if possible. |
86 */ |
86 */ |
87 transient private Container cachedRoot; |
87 transient private Container cachedRoot; |
88 transient private List cachedCycle; |
88 transient private List<Component> cachedCycle; |
89 |
89 |
90 /* |
90 /* |
91 * We suppose to use getFocusTraversalCycle & getComponentIndex methods in order |
91 * We suppose to use getFocusTraversalCycle & getComponentIndex methods in order |
92 * to divide the policy into two parts: |
92 * to divide the policy into two parts: |
93 * 1) Making the focus traversal cycle. |
93 * 1) Making the focus traversal cycle. |
109 } |
109 } |
110 /*protected*/ private int getComponentIndex(List<Component> cycle, Component aComponent) { |
110 /*protected*/ private int getComponentIndex(List<Component> cycle, Component aComponent) { |
111 return cycle.indexOf(aComponent); |
111 return cycle.indexOf(aComponent); |
112 } |
112 } |
113 |
113 |
114 private void enumerateCycle(Container container, List cycle) { |
114 private void enumerateCycle(Container container, List<Component> cycle) { |
115 if (!(container.isVisible() && container.isDisplayable())) { |
115 if (!(container.isVisible() && container.isDisplayable())) { |
116 return; |
116 return; |
117 } |
117 } |
118 |
118 |
119 cycle.add(container); |
119 cycle.add(container); |