home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
JFC.bin
/
TreeCellEditor.java
< prev
next >
Wrap
Text File
|
1998-06-30
|
2KB
|
60 lines
/*
* @(#)TreeCellEditor.java 1.4 97/09/23
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the confidential and proprietary information of Sun
* Microsystems, Inc. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Sun.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
* SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
* SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
* THIS SOFTWARE OR ITS DERIVATIVES.
*
*/
package com.sun.java.swing.tree;
import java.awt.Component;
import com.sun.java.swing.CellEditor;
import com.sun.java.swing.JTree;
/**
* Adds to CellEditor the extensions necessary to configure an editor
* in a tree.
*
* @version 1.4 09/23/97
* @author Scott Violet
*/
public interface TreeCellEditor extends CellEditor
{
/**
* Sets an initial <I>value</I> for the editor. This will cause
* the editor to stopEditing and lose any partially edited value
* if the editor is editing when this method is called. <p>
*
* Returns the component that should be added to the client's
* Component hierarchy. Once installed in the client's hierarchy
* this component will then be able to draw and receive user input.
*
* @param table the JTree that is asking the editor to edit
* This parameter can be null.
* @param value the value of the cell to be edited.
* @param isSelected true is the cell is to be renderer with
* selection highlighting
* @param expanded true if the node is expanded
* @param leaf true if the node is a leaf node
* @param row the row index of the node being edited
* @return the component for editing
*/
Component getTreeCellEditorComponent(JTree tree, Object value,
boolean isSelected, boolean expanded,
boolean leaf, int row);
}