jdk/src/java.desktop/share/classes/javax/swing/CellEditor.java
changeset 26037 508779ce6619
parent 26035 250f55e44bea
parent 25859 3317bb8137f4
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    45  *
    45  *
    46  * To use this interface, a developer creating a new editor can have the
    46  * To use this interface, a developer creating a new editor can have the
    47  * new component implement the interface.  Or the developer can
    47  * new component implement the interface.  Or the developer can
    48  * choose a wrapper based approach and provide a companion object which
    48  * choose a wrapper based approach and provide a companion object which
    49  * implements the <code>CellEditor</code> interface (See
    49  * implements the <code>CellEditor</code> interface (See
    50  * <code>JCellEditor</code> for example).  The wrapper approach
    50  * <code>DefaultCellEditor</code> for example).  The wrapper approach
    51  * is particularly useful if the user want to use a 3rd party ISV
    51  * is particularly useful if the user want to use a 3rd party ISV
    52  * editor with <code>JTable</code>, but the ISV didn't implement the
    52  * editor with <code>JTable</code>, but the ISV didn't implement the
    53  * <code>CellEditor</code> interface.  The user can simply create an object
    53  * <code>CellEditor</code> interface.  The user can simply create an object
    54  * that contains an instance of the 3rd party editor object and "translate"
    54  * that contains an instance of the 3rd party editor object and "translate"
    55  * the <code>CellEditor</code> API into the 3rd party editor's API.
    55  * the <code>CellEditor</code> API into the 3rd party editor's API.