< prev index next >

src/java.desktop/share/classes/javax/swing/table/TableColumn.java

Print this page


   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  66  * Serialized objects of this class will not be compatible with
  67  * future Swing releases. The current serialization support is
  68  * appropriate for short term storage or RMI between applications running
  69  * the same version of Swing.  As of 1.4, support for long term storage
  70  * of all JavaBeans&trade;
  71  * has been added to the <code>java.beans</code> package.
  72  * Please see {@link java.beans.XMLEncoder}.
  73  *
  74  * @author Alan Chung
  75  * @author Philip Milne
  76  * @see javax.swing.table.TableColumnModel
  77  *
  78  * @see javax.swing.table.DefaultTableColumnModel
  79  * @see javax.swing.table.JTableHeader#getDefaultRenderer()
  80  * @see JTable#getDefaultRenderer(Class)
  81  * @see JTable#getDefaultEditor(Class)
  82  * @see JTable#getCellRenderer(int, int)
  83  * @see JTable#getCellEditor(int, int)
  84  */
  85 @SuppressWarnings("serial") // Same-version serialization only
  86 public class TableColumn extends Object implements Serializable {
  87 
  88     /**
  89      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
  90      * properties.
  91      */
  92     /*
  93      * Warning: The value of this constant, "columWidth" is wrong as the
  94      * name of the property is "columnWidth".
  95      */
  96     public static final String COLUMN_WIDTH_PROPERTY = "columWidth";
  97 
  98     /**
  99      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
 100      * properties.
 101      */
 102     public static final String HEADER_VALUE_PROPERTY = "headerValue";
 103 
 104     /**
 105      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
 106      * properties.


   1 /*
   2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  66  * Serialized objects of this class will not be compatible with
  67  * future Swing releases. The current serialization support is
  68  * appropriate for short term storage or RMI between applications running
  69  * the same version of Swing.  As of 1.4, support for long term storage
  70  * of all JavaBeans&trade;
  71  * has been added to the <code>java.beans</code> package.
  72  * Please see {@link java.beans.XMLEncoder}.
  73  *
  74  * @author Alan Chung
  75  * @author Philip Milne
  76  * @see javax.swing.table.TableColumnModel
  77  *
  78  * @see javax.swing.table.DefaultTableColumnModel
  79  * @see javax.swing.table.JTableHeader#getDefaultRenderer()
  80  * @see JTable#getDefaultRenderer(Class)
  81  * @see JTable#getDefaultEditor(Class)
  82  * @see JTable#getCellRenderer(int, int)
  83  * @see JTable#getCellEditor(int, int)
  84  */
  85 @SuppressWarnings("serial") // Same-version serialization only
  86 public class TableColumn implements Serializable {
  87 
  88     /**
  89      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
  90      * properties.
  91      */
  92     /*
  93      * Warning: The value of this constant, "columWidth" is wrong as the
  94      * name of the property is "columnWidth".
  95      */
  96     public static final String COLUMN_WIDTH_PROPERTY = "columWidth";
  97 
  98     /**
  99      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
 100      * properties.
 101      */
 102     public static final String HEADER_VALUE_PROPERTY = "headerValue";
 103 
 104     /**
 105      * Obsolete as of Java 2 platform v1.3.  Please use string literals to identify
 106      * properties.


< prev index next >