harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r443340 - in /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt: ./ datatransfer/
Date Thu, 14 Sep 2006 13:08:19 GMT
Author: hindessm
Date: Thu Sep 14 06:08:18 2006
New Revision: 443340

URL: http://svn.apache.org/viewvc?view=rev&rev=443340
Log:
Marking some awt fields and methods as deprecated.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BorderLayout.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CardLayout.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CheckboxGroup.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dialog.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/FontMetrics.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Menu.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuBar.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuContainer.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuItem.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/datatransfer/DataFlavor.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BorderLayout.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BorderLayout.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BorderLayout.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/BorderLayout.java
Thu Sep 14 06:08:18 2006
@@ -125,6 +125,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void addLayoutComponent(String name, Component comp) {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CardLayout.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CardLayout.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CardLayout.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CardLayout.java
Thu Sep 14 06:08:18 2006
@@ -128,6 +128,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void addLayoutComponent(String name, Component comp) {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CheckboxGroup.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CheckboxGroup.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CheckboxGroup.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/CheckboxGroup.java
Thu Sep 14 06:08:18 2006
@@ -95,6 +95,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void setCurrent(Checkbox box) {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dialog.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dialog.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dialog.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dialog.java
Thu Sep 14 06:08:18 2006
@@ -213,6 +213,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     @Override
     public void hide() {
         toolkit.lockAWT();
@@ -232,6 +236,10 @@
         }
     }
     
+    /**
+     * @deprecated
+     */
+    @Deprecated
     @Override
     public void show() {
         showImpl();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Font.java
Thu Sep 14 06:08:18 2006
@@ -802,6 +802,10 @@
         return (this.name);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public FontPeer getPeer() {
         if (fontPeer == null){
             fontPeer = (FontPeerImpl)Toolkit.getDefaultToolkit().getGraphicsFactory().getFontPeer(this);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/FontMetrics.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/FontMetrics.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/FontMetrics.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/FontMetrics.java
Thu Sep 14 06:08:18 2006
@@ -168,6 +168,10 @@
         return 0;
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public int getMaxDecent() {
         return 0;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Frame.java
Thu Sep 14 06:08:18 2006
@@ -35,32 +35,46 @@
 public class Frame extends Window implements MenuContainer {
     private static final long serialVersionUID = 2673458971256075116L;
 
+    @Deprecated
     public static final int DEFAULT_CURSOR = 0;
 
+    @Deprecated
     public static final int CROSSHAIR_CURSOR = 1;
 
+    @Deprecated
     public static final int TEXT_CURSOR = 2;
 
+    @Deprecated
     public static final int WAIT_CURSOR = 3;
 
+    @Deprecated
     public static final int SW_RESIZE_CURSOR = 4;
 
+    @Deprecated
     public static final int SE_RESIZE_CURSOR = 5;
 
+    @Deprecated
     public static final int NW_RESIZE_CURSOR = 6;
 
+    @Deprecated
     public static final int NE_RESIZE_CURSOR = 7;
 
+    @Deprecated
     public static final int N_RESIZE_CURSOR = 8;
 
+    @Deprecated
     public static final int S_RESIZE_CURSOR = 9;
 
+    @Deprecated
     public static final int W_RESIZE_CURSOR = 10;
 
+    @Deprecated
     public static final int E_RESIZE_CURSOR = 11;
 
+    @Deprecated
     public static final int HAND_CURSOR = 12;
 
+    @Deprecated
     public static final int MOVE_CURSOR = 13;
 
     public static final int NORMAL = 0;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Menu.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Menu.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Menu.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Menu.java
Thu Sep 14 06:08:18 2006
@@ -272,6 +272,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public int countItems() {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuBar.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuBar.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuBar.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuBar.java
Thu Sep 14 06:08:18 2006
@@ -269,6 +269,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public int countMenus() {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuComponent.java
Thu Sep 14 06:08:18 2006
@@ -438,6 +438,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public MenuComponentPeer getPeer() {
         toolkit.lockAWT();
         try {
@@ -454,6 +458,10 @@
         return toolkit.awtTreeLock;
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public boolean postEvent(Event e) {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuContainer.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuContainer.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuContainer.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuContainer.java
Thu Sep 14 06:08:18 2006
@@ -26,6 +26,10 @@
 
     public Font getFont();
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public boolean postEvent(Event e);
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuItem.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuItem.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuItem.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/MenuItem.java
Thu Sep 14 06:08:18 2006
@@ -205,6 +205,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void disable() {
         toolkit.lockAWT();
         try {
@@ -214,6 +218,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void enable(boolean b) {
         toolkit.lockAWT();
         try {
@@ -223,6 +231,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void enable() {
         toolkit.lockAWT();
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java
Thu Sep 14 06:08:18 2006
@@ -204,6 +204,10 @@
         return bounds = new Rectangle(bx1, by1, bx2 - bx1, by2 - by1);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public Rectangle getBoundingBox() {
         return getBounds();
     }
@@ -222,6 +226,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public boolean inside(int x, int y) {
         return contains((double) x, (double) y);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java
Thu Sep 14 06:08:18 2006
@@ -110,6 +110,10 @@
         setLocation(p.x, p.y);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void move(int x, int y) {
         setLocation(x, y);
     }
@@ -123,10 +127,18 @@
         setBounds(x1, y1, x2 - x1, y2 - y1);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void resize(int width, int height) {
         setBounds(x, y, width, height);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public void reshape(int x, int y, int width, int height) {
         setBounds(x, y, width, height);
     }
@@ -208,6 +220,10 @@
         return contains(r.x, r.y, r.width, r.height);
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public boolean inside(int px, int py) {
         return contains(px, py);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java
Thu Sep 14 06:08:18 2006
@@ -269,6 +269,10 @@
 
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     @Override
     public void layout() {
         toolkit.lockAWT();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java
Thu Sep 14 06:08:18 2006
@@ -381,10 +381,6 @@
     }
 
     public void setEchoChar(char ch) {
-        setEchoCharacter(ch);
-    }
-
-    public void setEchoCharacter(char ch) {
         toolkit.lockAWT();
         try {
             if (echoChar == ch) {
@@ -395,6 +391,14 @@
             toolkit.unlockAWT();
         }
         repaint();
+    }
+
+    /**
+     * @deprecated
+     */
+    @Deprecated
+    public void setEchoCharacter(char ch) {
+        setEchoChar(ch);
     }
 
     @Override

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
Thu Sep 14 06:08:18 2006
@@ -568,6 +568,10 @@
 
     public abstract ColorModel getColorModel() throws HeadlessException;
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public abstract FontMetrics getFontMetrics(Font font);
 
     public abstract boolean prepareImage(Image a0, int a1, int a2, ImageObserver a3);
@@ -614,8 +618,16 @@
 
     protected abstract WindowPeer createWindow(Window a0) throws HeadlessException;
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public abstract String[] getFontList();
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     protected abstract FontPeer getFontPeer(String a0, int a1);
 
     public abstract Image getImage(String a0);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java
Thu Sep 14 06:08:18 2006
@@ -433,6 +433,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     @SuppressWarnings("deprecation")
     @Override
     public void hide() {
@@ -522,6 +526,10 @@
         }
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     @SuppressWarnings("deprecation")
     @Override
     public void show() {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/datatransfer/DataFlavor.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/datatransfer/DataFlavor.java?view=diff&rev=443340&r1=443339&r2=443340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/datatransfer/DataFlavor.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/datatransfer/DataFlavor.java
Thu Sep 14 06:08:18 2006
@@ -412,6 +412,10 @@
 
     }
 
+    /**
+     * @deprecated
+     */
+    @Deprecated
     public boolean equals(String s) {
       if (s == null) {
           return false;



Mime
View raw message