Documentation of 'org.jgraph.graph.DefaultRealEditor' Java class
DefaultRealEditor
org.jgraph.graph

Class DefaultRealEditor

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor, GraphCellEditor


    public class DefaultRealEditor
    extends javax.swing.DefaultCellEditor
    implements GraphCellEditor
    The default editor for graph cells.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class javax.swing.DefaultCellEditor

        cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
      • Methods inherited from class javax.swing.AbstractCellEditor

        addCellEditorListener, getCellEditorListeners, removeCellEditorListener
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
    • Constructor Detail

      • DefaultRealEditor

        public DefaultRealEditor(javax.swing.JTextField textField)
        Constructs a DefaultCellEditor that uses a text field.
        Parameters:
        textField - a JTextField object used as the editor
      • DefaultRealEditor

        public DefaultRealEditor(javax.swing.JCheckBox checkBox)
        Constructs a DefaultCellEditor object that uses a check box.
        Parameters:
        checkBox - a JCheckBox object
      • DefaultRealEditor

        public DefaultRealEditor(javax.swing.JComboBox comboBox)
        Constructs a DefaultCellEditor object that uses a combo box.
        Parameters:
        comboBox - a JComboBox object
    • Method Detail

      • getGraphCellEditorComponent

        public java.awt.Component getGraphCellEditorComponent(JGraph graph,
                                                              java.lang.Object value,
                                                              boolean isSelected)
        Description copied from interface: GraphCellEditor
        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.

        Specified by:
        getGraphCellEditorComponent in interface GraphCellEditor
        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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.