The default editor for table and tree cells.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The default editor for table and tree cells. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
(->default-cell-editor text-field)
Constructor.
Constructs a DefaultCellEditor that uses a text field.
text-field - a JTextField object - javax.swing.JTextField
Constructor. Constructs a DefaultCellEditor that uses a text field. text-field - a JTextField object - `javax.swing.JTextField`
(cancel-cell-editing this)
Forwards the message from the CellEditor to the delegate.
Forwards the message from the CellEditor to the delegate.
(cell-editable? this an-event)
Forwards the message from the CellEditor to the delegate.
an-event - an event object - java.util.EventObject
returns: true - boolean
Forwards the message from the CellEditor to the delegate. an-event - an event object - `java.util.EventObject` returns: true - `boolean`
(get-cell-editor-value this)
Forwards the message from the CellEditor to the delegate.
returns: the value contained in the editor - java.lang.Object
Forwards the message from the CellEditor to the delegate. returns: the value contained in the editor - `java.lang.Object`
(get-click-count-to-start this)
Returns the number of clicks needed to start editing.
returns: the number of clicks needed to start editing - int
Returns the number of clicks needed to start editing. returns: the number of clicks needed to start editing - `int`
(get-component this)
Returns a reference to the editor component.
returns: the editor Component - java.awt.Component
Returns a reference to the editor component. returns: the editor Component - `java.awt.Component`
(get-table-cell-editor-component this table value is-selected row column)
Implements the TableCellEditor interface.
table - the JTable that is asking the editor to edit; can be null - javax.swing.JTable
value - the value of the cell to be edited; it is up to the specific editor to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value - java.lang.Object
is-selected - true if the cell is to be rendered with highlighting - boolean
row - the row of the cell being edited - int
column - the column of the cell being edited - int
returns: the component for editing - java.awt.Component
Implements the TableCellEditor interface. table - the JTable that is asking the editor to edit; can be null - `javax.swing.JTable` value - the value of the cell to be edited; it is up to the specific editor to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value - `java.lang.Object` is-selected - true if the cell is to be rendered with highlighting - `boolean` row - the row of the cell being edited - `int` column - the column of the cell being edited - `int` returns: the component for editing - `java.awt.Component`
(get-tree-cell-editor-component this tree value is-selected expanded leaf row)
Implements the TreeCellEditor interface.
tree - the JTree that is asking the editor to edit; this parameter can be null - javax.swing.JTree
value - the value of the cell to be edited - java.lang.Object
is-selected - true if the cell is to be rendered with selection highlighting - boolean
expanded - true if the node is expanded - boolean
leaf - true if the node is a leaf node - boolean
row - the row index of the node being edited - int
returns: the component for editing - java.awt.Component
Implements the TreeCellEditor interface. tree - the JTree that is asking the editor to edit; this parameter can be null - `javax.swing.JTree` value - the value of the cell to be edited - `java.lang.Object` is-selected - true if the cell is to be rendered with selection highlighting - `boolean` expanded - true if the node is expanded - `boolean` leaf - true if the node is a leaf node - `boolean` row - the row index of the node being edited - `int` returns: the component for editing - `java.awt.Component`
(set-click-count-to-start this count)
Specifies the number of clicks needed to start editing.
count - an int specifying the number of clicks needed to start editing - int
Specifies the number of clicks needed to start editing. count - an int specifying the number of clicks needed to start editing - `int`
(should-select-cell? this an-event)
Forwards the message from the CellEditor to the delegate.
an-event - an event object - java.util.EventObject
returns: true - boolean
Forwards the message from the CellEditor to the delegate. an-event - an event object - `java.util.EventObject` returns: true - `boolean`
(stop-cell-editing this)
Forwards the message from the CellEditor to the delegate.
returns: true - boolean
Forwards the message from the CellEditor to the delegate. returns: true - `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close