public class DefaultRealEditor extends javax.swing.DefaultCellEditor implements GraphCellEditor
| Constructor and Description |
|---|
DefaultRealEditor(javax.swing.JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box.
|
DefaultRealEditor(javax.swing.JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box.
|
DefaultRealEditor(javax.swing.JTextField textField)
Constructs a DefaultCellEditor that uses a text field.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getGraphCellEditorComponent(JGraph graph,
java.lang.Object value,
boolean isSelected)
Sets an initial value for the editor.
|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingaddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic DefaultRealEditor(javax.swing.JTextField textField)
textField - a JTextField object used as the editorpublic DefaultRealEditor(javax.swing.JCheckBox checkBox)
checkBox - a JCheckBox objectpublic DefaultRealEditor(javax.swing.JComboBox comboBox)
comboBox - a JComboBox objectpublic java.awt.Component getGraphCellEditorComponent(JGraph graph, java.lang.Object value, boolean isSelected)
GraphCellEditorReturns 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.
getGraphCellEditorComponent in interface GraphCellEditorgraph - 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 highlightingCopyright (C) 2001-2008 Gaudenz Alder. All rights reserved.