org.jgraph.graph.DefaultRealEditor Class Reference

Inheritance diagram for org.jgraph.graph.DefaultRealEditor:

org.jgraph.graph.GraphCellEditor List of all members.

Public Member Functions

 DefaultRealEditor (final JTextField textField)
 DefaultRealEditor (final JCheckBox checkBox)
 DefaultRealEditor (final JComboBox comboBox)
Component getGraphCellEditorComponent (JGraph graph, Object value, boolean isSelected)

Detailed Description

The default editor for graph cells.

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Constructor & Destructor Documentation

org.jgraph.graph.DefaultRealEditor.DefaultRealEditor final JTextField  textField  ) 
 

Constructs a DefaultCellEditor that uses a text field.

Parameters:
textField a JTextField object used as the editor

org.jgraph.graph.DefaultRealEditor.DefaultRealEditor final JCheckBox  checkBox  ) 
 

Constructs a DefaultCellEditor object that uses a check box.

Parameters:
checkBox a JCheckBox object

org.jgraph.graph.DefaultRealEditor.DefaultRealEditor final JComboBox  comboBox  ) 
 

Constructs a DefaultCellEditor object that uses a combo box.

Parameters:
comboBox a JComboBox object


Member Function Documentation

Component org.jgraph.graph.DefaultRealEditor.getGraphCellEditorComponent JGraph  graph,
Object  value,
boolean  isSelected
 

Sets an initial value 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.

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.

Parameters:
graph the JGraph that is asking the editor to edit This parameter can be null.
value the value of the cell to be edited.
isSelected true if the cell is to be rendered with selection highlighting
Returns:
the component for editing

Implements org.jgraph.graph.GraphCellEditor.


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:15 2006 for Digimod by  doxygen 1.4.6-NO