--- old/jdk/src/share/classes/javax/swing/table/TableColumn.java 2014-08-11 11:51:32.235928700 +0400
+++ new/jdk/src/share/classes/javax/swing/table/TableColumn.java 2014-08-11 11:51:31.823905100 +0400
@@ -22,17 +22,14 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-
package javax.swing.table;
import javax.swing.*;
-import javax.swing.border.*;
import javax.swing.event.SwingPropertyChangeSupport;
import java.lang.Integer;
-import java.awt.Color;
import java.awt.Component;
import java.io.Serializable;
-import java.beans.PropertyChangeEvent;
+import java.beans.BeanProperty;
import java.beans.PropertyChangeListener;
/**
@@ -309,10 +306,9 @@
* TableColumn
. As the TableColumn
* is moved around in the view the model index remains constant.
* @param modelIndex the new modelIndex
- * @beaninfo
- * bound: true
- * description: The model index.
*/
+ @BeanProperty(description
+ = "The model index.")
public void setModelIndex(int modelIndex) {
int old = this.modelIndex;
this.modelIndex = modelIndex;
@@ -336,10 +332,9 @@
*
* @param identifier an identifier for this column
* @see #getIdentifier
- * @beaninfo
- * bound: true
- * description: A unique identifier for this column.
*/
+ @BeanProperty(description
+ = "A unique identifier for this column.")
public void setIdentifier(Object identifier) {
Object old = this.identifier;
this.identifier = identifier;
@@ -370,10 +365,9 @@
* is null
.
* @param headerValue the new headerValue
* @see #getHeaderValue
- * @beaninfo
- * bound: true
- * description: The text to be used by the header renderer.
*/
+ @BeanProperty(description
+ = "The text to be used by the header renderer.")
public void setHeaderValue(Object headerValue) {
Object old = this.headerValue;
this.headerValue = headerValue;
@@ -406,10 +400,9 @@
* @param headerRenderer the new headerRenderer
*
* @see #getHeaderRenderer
- * @beaninfo
- * bound: true
- * description: The header renderer.
*/
+ @BeanProperty(description
+ = "The header renderer.")
public void setHeaderRenderer(TableCellRenderer headerRenderer) {
TableCellRenderer old = this.headerRenderer;
this.headerRenderer = headerRenderer;
@@ -438,10 +431,9 @@
*
* @param cellRenderer the new cellRenderer
* @see #getCellRenderer
- * @beaninfo
- * bound: true
- * description: The renderer to use for cell values.
*/
+ @BeanProperty(description
+ = "The renderer to use for cell values.")
public void setCellRenderer(TableCellRenderer cellRenderer) {
TableCellRenderer old = this.cellRenderer;
this.cellRenderer = cellRenderer;
@@ -472,10 +464,9 @@
*
* @param cellEditor the new cellEditor
* @see #getCellEditor
- * @beaninfo
- * bound: true
- * description: The editor to use for cell values.
*/
+ @BeanProperty(description
+ = "The editor to use for cell values.")
public void setCellEditor(TableCellEditor cellEditor){
TableCellEditor old = this.cellEditor;
this.cellEditor = cellEditor;
@@ -516,10 +507,9 @@
* @see #setMaxWidth
* @see #setPreferredWidth
* @see JTable#doLayout()
- * @beaninfo
- * bound: true
- * description: The width of the column.
*/
+ @BeanProperty(description
+ = "The width of the column.")
public void setWidth(int width) {
int old = this.width;
this.width = Math.min(Math.max(width, minWidth), maxWidth);
@@ -550,10 +540,9 @@
* @param preferredWidth the new preferred width
* @see #getPreferredWidth
* @see JTable#doLayout()
- * @beaninfo
- * bound: true
- * description: The preferred width of the column.
*/
+ @BeanProperty(description
+ = "The preferred width of the column.")
public void setPreferredWidth(int preferredWidth) {
int old = this.preferredWidth;
this.preferredWidth = Math.min(Math.max(preferredWidth, minWidth), maxWidth);
@@ -589,10 +578,9 @@
* @see #getMinWidth
* @see #setPreferredWidth
* @see #setMaxWidth
- * @beaninfo
- * bound: true
- * description: The minimum width of the column.
*/
+ @BeanProperty(description
+ = "The minimum width of the column.")
public void setMinWidth(int minWidth) {
int old = this.minWidth;
this.minWidth = Math.max(Math.min(minWidth, maxWidth), 0);
@@ -634,10 +622,9 @@
* @see #getMaxWidth
* @see #setPreferredWidth
* @see #setMinWidth
- * @beaninfo
- * bound: true
- * description: The maximum width of the column.
*/
+ @BeanProperty(description
+ = "The maximum width of the column.")
public void setMaxWidth(int maxWidth) {
int old = this.maxWidth;
this.maxWidth = Math.max(minWidth, maxWidth);
@@ -668,10 +655,9 @@
*
* @param isResizable if true, resizing is allowed; otherwise false
* @see #getResizable
- * @beaninfo
- * bound: true
- * description: Whether or not this column can be resized.
*/
+ @BeanProperty(description
+ = "Whether or not this column can be resized.")
public void setResizable(boolean isResizable) {
boolean old = this.isResizable;
this.isResizable = isResizable;