org.jgraph.graph

Class DefaultRealEditor

public class DefaultRealEditor extends DefaultCellEditor implements GraphCellEditor

The default editor for graph cells.
Constructor Summary
DefaultRealEditor(JTextField textField)
Constructs a DefaultCellEditor that uses a text field.
DefaultRealEditor(JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box.
DefaultRealEditor(JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box.
Method Summary
ComponentgetGraphCellEditorComponent(JGraph graph, Object value, boolean isSelected)

Constructor Detail

DefaultRealEditor

public DefaultRealEditor(JTextField textField)
Constructs a DefaultCellEditor that uses a text field.

Parameters: textField a JTextField object used as the editor

DefaultRealEditor

public DefaultRealEditor(JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box.

Parameters: checkBox a JCheckBox object

DefaultRealEditor

public DefaultRealEditor(JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box.

Parameters: comboBox a JComboBox object

Method Detail

getGraphCellEditorComponent

public Component getGraphCellEditorComponent(JGraph graph, Object value, boolean isSelected)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.