This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui] Patch: javax.swing.TransferHandler and javax.swing.plaf.basic.ComboPopup


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I just commited the attached patch to add two new classes to swing.


Michael


2004-08-11  Michael Koch  <konqueror@gmx.de>

	* javax/swing/TransferHandler.java,
	javax/swing/plaf/basic/ComboPopup.java: New files
	* Makefile.am: Added javax/swing/TransferHandler.java and
	javax/swing/plaf/basic/ComboPopup.java
	* Makefile.in: Regenerated.
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBGhl0WSOgCCdjSDsRAg+gAJ0d+SaMJETN6mkYGt8cI4w4MgK6jQCfcAS7
BVh0Wa656Bm/oIva6WPoGEU=
=cut5
-----END PGP SIGNATURE-----
Index: javax/swing/TransferHandler.java
===================================================================
RCS file: javax/swing/TransferHandler.java
diff -N javax/swing/TransferHandler.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/swing/TransferHandler.java	11 Aug 2004 12:56:56 -0000
@@ -0,0 +1,55 @@
+/* TransferHandler.java --
+   Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.swing;
+
+import java.io.Serializable;
+
+public class TransferHandler implements Serializable
+{
+  private static final long serialVersionUID = -7908749299918704233L;
+
+  public static final int NONE = 0;
+  public static final int COPY = 1;
+  public static final int MOVE = 2;
+  public static final int COPY_OR_MOVE = 3;
+
+  protected TransferHandler()
+  {
+    // Do nothing here.
+  }
+}
Index: javax/swing/plaf/basic/ComboPopup.java
===================================================================
RCS file: javax/swing/plaf/basic/ComboPopup.java
diff -N javax/swing/plaf/basic/ComboPopup.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/swing/plaf/basic/ComboPopup.java	11 Aug 2004 12:56:56 -0000
@@ -0,0 +1,46 @@
+/* ComboPopup.java
+   Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.swing.plaf.basic;
+
+public interface ComboPopup
+{
+  void hide();
+  void show();
+  boolean isVisible();
+}
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.361.2.36
diff -u -b -B -r1.361.2.36 Makefile.am
--- Makefile.am	11 Aug 2004 11:09:09 -0000	1.361.2.36
+++ Makefile.am	11 Aug 2004 12:56:57 -0000
@@ -1340,6 +1340,7 @@
 javax/swing/plaf/basic/BasicLookAndFeel.java \
 javax/swing/plaf/basic/BasicBorders.java \
 javax/swing/plaf/basic/BasicIconFactory.java \
+javax/swing/plaf/basic/ComboPopup.java \
 javax/swing/plaf/BorderUIResource.java \
 javax/swing/plaf/UIResource.java \
 javax/swing/plaf/ButtonUI.java \
@@ -1453,6 +1454,7 @@
 javax/swing/SwingUtilities.java \
 javax/swing/Timer.java \
 javax/swing/ToolTipManager.java \
+javax/swing/TransferHandler.java \
 javax/swing/UIDefaults.java \
 javax/swing/UIManager.java \
 javax/swing/UnsupportedLookAndFeelException.java \
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.in,v
retrieving revision 1.385.2.36
diff -u -b -B -r1.385.2.36 Makefile.in
--- Makefile.in	11 Aug 2004 11:09:10 -0000	1.385.2.36
+++ Makefile.in	11 Aug 2004 12:56:59 -0000
@@ -1018,6 +1018,7 @@
 javax/swing/plaf/basic/BasicLookAndFeel.java \
 javax/swing/plaf/basic/BasicBorders.java \
 javax/swing/plaf/basic/BasicIconFactory.java \
+javax/swing/plaf/basic/ComboPopup.java \
 javax/swing/plaf/BorderUIResource.java \
 javax/swing/plaf/UIResource.java \
 javax/swing/plaf/ButtonUI.java \
@@ -1131,6 +1132,7 @@
 javax/swing/SwingUtilities.java \
 javax/swing/Timer.java \
 javax/swing/ToolTipManager.java \
+javax/swing/TransferHandler.java \
 javax/swing/UIDefaults.java \
 javax/swing/UIManager.java \
 javax/swing/UnsupportedLookAndFeelException.java \
@@ -3159,6 +3161,7 @@
 javax/swing/plaf/basic/BasicLookAndFeel.lo \
 javax/swing/plaf/basic/BasicBorders.lo \
 javax/swing/plaf/basic/BasicIconFactory.lo \
+javax/swing/plaf/basic/ComboPopup.lo \
 javax/swing/plaf/BorderUIResource.lo javax/swing/plaf/UIResource.lo \
 javax/swing/plaf/ButtonUI.lo javax/swing/plaf/ComponentUI.lo \
 javax/swing/plaf/LabelUI.lo javax/swing/plaf/ListUI.lo \
@@ -3224,8 +3227,8 @@
 javax/swing/Spring.lo javax/swing/SpringLayout.lo \
 javax/swing/SwingConstants.lo javax/swing/SwingUtilities.lo \
 javax/swing/Timer.lo javax/swing/ToolTipManager.lo \
-javax/swing/UIDefaults.lo javax/swing/UIManager.lo \
-javax/swing/UnsupportedLookAndFeelException.lo \
+javax/swing/TransferHandler.lo javax/swing/UIDefaults.lo \
+javax/swing/UIManager.lo javax/swing/UnsupportedLookAndFeelException.lo \
 javax/swing/event/AncestorEvent.lo \
 javax/swing/event/AncestorListener.lo javax/swing/event/ChangeEvent.lo \
 javax/swing/event/ChangeListener.lo javax/swing/event/DocumentEvent.lo \
@@ -5203,7 +5206,8 @@
 .deps/javax/swing/Spring.P .deps/javax/swing/SpringLayout.P \
 .deps/javax/swing/SwingConstants.P .deps/javax/swing/SwingUtilities.P \
 .deps/javax/swing/Timer.P .deps/javax/swing/ToolTipManager.P \
-.deps/javax/swing/UIDefaults.P .deps/javax/swing/UIManager.P \
+.deps/javax/swing/TransferHandler.P .deps/javax/swing/UIDefaults.P \
+.deps/javax/swing/UIManager.P \
 .deps/javax/swing/UnsupportedLookAndFeelException.P \
 .deps/javax/swing/ViewportLayout.P .deps/javax/swing/WindowConstants.P \
 .deps/javax/swing/border/AbstractBorder.P \
@@ -5339,6 +5343,7 @@
 .deps/javax/swing/plaf/basic/BasicToolTipUI.P \
 .deps/javax/swing/plaf/basic/BasicTreeUI.P \
 .deps/javax/swing/plaf/basic/BasicViewportUI.P \
+.deps/javax/swing/plaf/basic/ComboPopup.P \
 .deps/javax/swing/plaf/metal/MetalLookAndFeel.P \
 .deps/javax/swing/table/AbstractTableModel.P \
 .deps/javax/swing/table/DefaultTableCellRenderer.P \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]