8260343: Delete obsolete classes in the Windows L&F
Reviewed-by: aivanov, pbansal
This commit is contained in:
parent
9f0a043648
commit
42cef27fd8
@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code 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
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package com.sun.java.swing.plaf.windows;
|
||||
|
||||
import javax.swing.AbstractButton;
|
||||
import javax.swing.plaf.basic.BasicButtonListener;
|
||||
|
||||
/**
|
||||
* Button Listener.
|
||||
*
|
||||
* @author Rich Schiavi
|
||||
*/
|
||||
public class WindowsButtonListener extends BasicButtonListener {
|
||||
public WindowsButtonListener(AbstractButton b) {
|
||||
super(b);
|
||||
}
|
||||
/*
|
||||
This class is currently not used, but exists in case customers
|
||||
were subclassing it.
|
||||
*/
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -517,34 +517,6 @@ public class WindowsComboBoxUI extends BasicComboBoxUI {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Subclassed to add Windows specific Key Bindings.
|
||||
* This class is now obsolete and doesn't do anything.
|
||||
* Only included for backwards API compatibility.
|
||||
* Do not call or override.
|
||||
*
|
||||
* @deprecated As of Java 2 platform v1.4.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class WindowsComboPopup extends BasicComboPopup {
|
||||
|
||||
public WindowsComboPopup( JComboBox<Object> cBox ) {
|
||||
super( cBox );
|
||||
}
|
||||
|
||||
protected KeyListener createKeyListener() {
|
||||
return new InvocationKeyHandler();
|
||||
}
|
||||
|
||||
protected class InvocationKeyHandler extends BasicComboPopup.InvocationKeyHandler {
|
||||
protected InvocationKeyHandler() {
|
||||
WindowsComboPopup.this.super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
protected class WinComboPopUp extends BasicComboPopup {
|
||||
private Skin listBoxBorder = null;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,27 +25,75 @@
|
||||
|
||||
package com.sun.java.swing.plaf.windows;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.*;
|
||||
import javax.swing.filechooser.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.plaf.*;
|
||||
import javax.swing.plaf.basic.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.ComponentOrientation;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.KeyAdapter;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.beans.*;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
import java.util.Vector;
|
||||
|
||||
import javax.accessibility.AccessibleContext;
|
||||
import javax.swing.AbstractListModel;
|
||||
import javax.swing.Action;
|
||||
import javax.swing.ActionMap;
|
||||
import javax.swing.Box;
|
||||
import javax.swing.BoxLayout;
|
||||
import javax.swing.ButtonGroup;
|
||||
import javax.swing.ComboBoxModel;
|
||||
import javax.swing.DefaultButtonModel;
|
||||
import javax.swing.DefaultListCellRenderer;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JFileChooser;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JList;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.JRadioButtonMenuItem;
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.JToolBar;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
import javax.swing.event.PopupMenuEvent;
|
||||
import javax.swing.event.PopupMenuListener;
|
||||
import javax.swing.filechooser.FileFilter;
|
||||
import javax.swing.filechooser.FileSystemView;
|
||||
import javax.swing.filechooser.FileView;
|
||||
import javax.swing.plaf.ActionMapUIResource;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
import javax.swing.plaf.InsetsUIResource;
|
||||
import javax.swing.plaf.basic.BasicDirectoryModel;
|
||||
import javax.swing.plaf.basic.BasicFileChooserUI;
|
||||
|
||||
import sun.awt.shell.ShellFolder;
|
||||
import sun.swing.*;
|
||||
|
||||
import javax.accessibility.*;
|
||||
import sun.swing.FilePane;
|
||||
import sun.swing.SwingUtilities2;
|
||||
import sun.swing.WindowsPlacesBar;
|
||||
|
||||
/**
|
||||
* Windows {@literal L&F} implementation of a FileChooser.
|
||||
@ -597,20 +645,6 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
return super.createListSelectionListener(fc);
|
||||
}
|
||||
|
||||
// Obsolete class, not used in this version.
|
||||
@SuppressWarnings("serial")
|
||||
protected class WindowsNewFolderAction extends NewFolderAction {
|
||||
}
|
||||
|
||||
// Obsolete class, not used in this version.
|
||||
protected class SingleClickListener extends MouseAdapter {
|
||||
}
|
||||
|
||||
// Obsolete class, not used in this version.
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FileRenderer extends DefaultListCellRenderer {
|
||||
}
|
||||
|
||||
public void uninstallUI(JComponent c) {
|
||||
// Remove listeners
|
||||
c.removePropertyChangeListener(filterComboBoxModel);
|
||||
|
Loading…
Reference in New Issue
Block a user