jdk/src/share/classes/javax/swing/table/JTableHeader.java
Print this page
@@ -20,11 +20,10 @@
*
* 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 javax.swing.table;
import sun.swing.table.DefaultTableCellHeaderRenderer;
import java.util.*;
@@ -34,18 +33,17 @@
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.plaf.*;
import javax.accessibility.*;
+import java.beans.BeanProperty;
import java.beans.PropertyChangeListener;
import java.beans.Transient;
import java.io.ObjectOutputStream;
-import java.io.ObjectInputStream;
import java.io.IOException;
-
/**
* This is the object which manages the header of the <code>JTable</code>.
* <p>
* <strong>Warning:</strong>
* Serialized objects of this class will not be compatible with
@@ -165,14 +163,13 @@
//
/**
* Sets the table associated with this header.
* @param table the new table
- * @beaninfo
- * bound: true
- * description: The table associated with this header.
*/
+ @BeanProperty(description
+ = "The table associated with this header.")
public void setTable(JTable table) {
JTable old = this.table;
this.table = table;
firePropertyChange("table", old, table);
}
@@ -189,14 +186,13 @@
* Sets whether the user can drag column headers to reorder columns.
*
* @param reorderingAllowed true if the table view should allow
* reordering; otherwise false
* @see #getReorderingAllowed
- * @beaninfo
- * bound: true
- * description: Whether the user can drag column headers to reorder columns.
*/
+ @BeanProperty(description
+ = "Whether the user can drag column headers to reorder columns.")
public void setReorderingAllowed(boolean reorderingAllowed) {
boolean old = this.reorderingAllowed;
this.reorderingAllowed = reorderingAllowed;
firePropertyChange("reorderingAllowed", old, reorderingAllowed);
}
@@ -217,14 +213,13 @@
* Sets whether the user can resize columns by dragging between headers.
*
* @param resizingAllowed true if table view should allow
* resizing
* @see #getResizingAllowed
- * @beaninfo
- * bound: true
- * description: Whether the user can resize columns by dragging between headers.
*/
+ @BeanProperty(description
+ = "Whether the user can resize columns by dragging between headers.")
public void setResizingAllowed(boolean resizingAllowed) {
boolean old = this.resizingAllowed;
this.resizingAllowed = resizingAllowed;
firePropertyChange("resizingAllowed", old, resizingAllowed);
}
@@ -508,14 +503,13 @@
*
* @param columnModel the new data source for this table
* @exception IllegalArgumentException
* if <code>newModel</code> is <code>null</code>
* @see #getColumnModel
- * @beaninfo
- * bound: true
- * description: The object governing the way columns appear in the view.
*/
+ @BeanProperty(description
+ = "The object governing the way columns appear in the view.")
public void setColumnModel(TableColumnModel columnModel) {
if (columnModel == null) {
throw new IllegalArgumentException("Cannot set a null ColumnModel");
}
TableColumnModel old = this.columnModel;