/[classpath]/classpath/java/awt/Container.java
ViewVC logotype

Diff of /classpath/java/awt/Container.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mkoch, Mon Dec 23 12:45:46 2002 UTC revision 1.15 by mkoch, Sat Feb 15 09:29:17 2003 UTC
# Line 728  public class Container extends Component Line 728  public class Container extends Component
728     * upon this Container. FooListeners are registered using the addFooListener     * upon this Container. FooListeners are registered using the addFooListener
729     * method.     * method.
730     *     *
731       * @exception ClassCastException If listenerType doesn't specify a class or
732       * interface that implements @see java.util.EventListener.
733       *
734     * @since 1.3     * @since 1.3
735     */     */
736    public EventListener[] getListeners(Class listenerType)    public EventListener[] getListeners(Class listenerType)
# Line 994  public class Container extends Component Line 997  public class Container extends Component
997        }        }
998    }    }
999    
1000    public void setFocusTraversalKeys(int id, Set keys)    /**
1001       * Sets the focus traversal keys for a given traversal operation for this
1002       * Container.
1003       *
1004       * @exception IllegalArgumentException If id is not one of
1005       * KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
1006       * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
1007       * KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS,
1008       * or KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS,
1009       * or if keystrokes contains null, or if any Object in keystrokes is not an
1010       * AWTKeyStroke, or if any keystroke represents a KEY_TYPED event, or if any
1011       * keystroke already maps to another focus traversal operation for this
1012       * Container.
1013       *
1014       * @since 1.4
1015       */
1016      public void setFocusTraversalKeys(int id, Set keystrokes)
1017    {    {
1018      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&
1019          id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS &&          id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS &&
1020          id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS &&          id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS &&
1021          id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS)          id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS)
1022        throw new IllegalArgumentException ();        throw new IllegalArgumentException ();
1023    
1024        if (keystrokes == null)
1025          throw new IllegalArgumentException ();
1026    
1027        throw new Error ("not implemented");
1028    }    }
1029        
1030      /**
1031       * Returns the Set of focus traversal keys for a given traversal operation for
1032       * this Container.
1033       *
1034       * @exception IllegalArgumentException If id is not one of
1035       * KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
1036       * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
1037       * KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS,
1038       * or KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS.
1039       *
1040       * @since 1.4
1041       */
1042    public Set getFocusTraversalKeys(int id)    public Set getFocusTraversalKeys(int id)
1043    {    {
1044      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&
# Line 1014  public class Container extends Component Line 1050  public class Container extends Component
1050      return null;      return null;
1051    }    }
1052        
1053      /**
1054       * Returns whether the Set of focus traversal keys for the given focus
1055       * traversal operation has been explicitly defined for this Container.
1056       * If this method returns false, this Container is inheriting the Set from
1057       * an ancestor, or from the current KeyboardFocusManager.
1058       *
1059       * @exception IllegalArgumentException If id is not one of
1060       * KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
1061       * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
1062       * KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS,
1063       * or KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS.
1064       *
1065       * @since 1.4
1066       */
1067    public boolean areFocusTraversalKeysSet(int id)    public boolean areFocusTraversalKeysSet(int id)
1068    {    {
1069      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&      if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&
# Line 1060  public class Container extends Component Line 1110  public class Container extends Component
1110    public void transferFocusDownCycle()    public void transferFocusDownCycle()
1111    {    {
1112    }    }
1113      
1114    public void applyComponentOrientation(ComponentOrientation o)    /**
1115       * Sets the ComponentOrientation property of this container and all components
1116       * contained within it.
1117       *
1118       * @exception NullPointerException If orientation is null
1119       *
1120       * @since 1.4
1121       */
1122      public void applyComponentOrientation (ComponentOrientation orientation)
1123    {    {
1124      if (orientation == null)      if (orientation == null)
1125        throw new NullPointerException ();        throw new NullPointerException ();

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26