1 7 package java.awt; 8 9 53 public abstract class FocusTraversalPolicy { 54 55 70 public abstract Component getComponentAfter(Container aContainer, 71 Component aComponent); 72 73 88 public abstract Component getComponentBefore(Container aContainer, 89 Component aComponent); 90 91 102 public abstract Component getFirstComponent(Container aContainer); 103 104 115 public abstract Component getLastComponent(Container aContainer); 116 117 128 public abstract Component getDefaultComponent(Container aContainer); 129 130 148 public Component getInitialComponent(Window window) { 149 Component def = getDefaultComponent(window); 150 if (def == null && window.isFocusableWindow()) { 151 def = window; 152 } 153 return def; 154 } 155 } 156 | Popular Tags |