8076286: Fix missing doclint warnings in javax.swing.{colorchooser, event, filechooser}
Reviewed-by: serb
This commit is contained in:
parent
8377d7ebd6
commit
21964ce20f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2015, 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
|
||||
@ -48,6 +48,10 @@ public class ColorChooserComponentFactory {
|
||||
|
||||
private ColorChooserComponentFactory() { } // can't instantiate
|
||||
|
||||
/**
|
||||
* Returns the default chooser panels.
|
||||
* @return the default chooser panels
|
||||
*/
|
||||
public static AbstractColorChooserPanel[] getDefaultChooserPanels() {
|
||||
return new AbstractColorChooserPanel[] {
|
||||
new DefaultSwatchChooserPanel(),
|
||||
@ -58,6 +62,10 @@ public class ColorChooserComponentFactory {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the preview panel.
|
||||
* @return the preview panel
|
||||
*/
|
||||
public static JComponent getPreviewPanel() {
|
||||
return new DefaultPreviewPanel();
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2015, 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
|
||||
@ -47,6 +47,9 @@ public class DefaultColorSelectionModel implements ColorSelectionModel, Serializ
|
||||
*/
|
||||
protected transient ChangeEvent changeEvent = null;
|
||||
|
||||
/**
|
||||
* The listener list.
|
||||
*/
|
||||
protected EventListenerList listenerList = new EventListenerList();
|
||||
|
||||
private Color selectedColor;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2015, 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
|
||||
@ -101,7 +101,7 @@ import sun.reflect.misc.ReflectUtil;
|
||||
public class EventListenerList implements Serializable {
|
||||
/* A null array to be shared by all empty listener lists*/
|
||||
private final static Object[] NULL_ARRAY = new Object[0];
|
||||
/* The list of ListenerType - Listener pairs */
|
||||
/** The list of ListenerType - Listener pairs */
|
||||
protected transient Object[] listenerList = NULL_ARRAY;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2015, 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
|
||||
@ -85,9 +85,21 @@ public class TableModelEvent extends java.util.EventObject
|
||||
// Instance Variables
|
||||
//
|
||||
|
||||
/**
|
||||
* The type of the event.
|
||||
*/
|
||||
protected int type;
|
||||
/**
|
||||
* The first row that has changed.
|
||||
*/
|
||||
protected int firstRow;
|
||||
/**
|
||||
* The last row that has changed.
|
||||
*/
|
||||
protected int lastRow;
|
||||
/**
|
||||
* The column for the event.
|
||||
*/
|
||||
protected int column;
|
||||
|
||||
//
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2015, 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
|
||||
@ -73,6 +73,10 @@ public abstract class FileSystemView {
|
||||
private boolean useSystemExtensionHiding =
|
||||
UIManager.getDefaults().getBoolean("FileChooser.useSystemExtensionHiding");
|
||||
|
||||
/**
|
||||
* Returns the file system view.
|
||||
* @return the file system view
|
||||
*/
|
||||
public static FileSystemView getFileSystemView() {
|
||||
if(File.separatorChar == '\\') {
|
||||
if(windowsFileSystemView == null) {
|
||||
@ -101,6 +105,9 @@ public abstract class FileSystemView {
|
||||
return genericFileSystemView;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a FileSystemView.
|
||||
*/
|
||||
public FileSystemView() {
|
||||
final WeakReference<FileSystemView> weakReference = new WeakReference<FileSystemView>(this);
|
||||
|
||||
@ -424,6 +431,10 @@ public abstract class FileSystemView {
|
||||
// code. If a given OS can't, override these methods in its
|
||||
// implementation.
|
||||
|
||||
/**
|
||||
* Returns the home directory.
|
||||
* @return the home directory
|
||||
*/
|
||||
public File getHomeDirectory() {
|
||||
return createFileObject(System.getProperty("user.home"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user