Class ValuePassThroughCellEditor
java.lang.Object
org.pentaho.reporting.libraries.designtime.swing.ValuePassThroughCellEditor
- All Implemented Interfaces:
ComboBoxEditor
A non editing cell-editor for comboboxes. This works around the obvious bug that the combobox always adds an empty
string to non-editable models.
- Author:
- Thomas Morgner.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an ActionListener.Return the component that should be added to the tree hierarchy for this editorgetItem()
Return the edited item *void
Remove an ActionListener *void
Ask the editor to start editing and to select everything *void
Set the item that should be edited.
-
Constructor Details
-
ValuePassThroughCellEditor
-
-
Method Details
-
getEditorComponent
Return the component that should be added to the tree hierarchy for this editor- Specified by:
getEditorComponent
in interfaceComboBoxEditor
-
setItem
Set the item that should be edited. Cancel any editing if necessary *- Specified by:
setItem
in interfaceComboBoxEditor
-
getItem
Return the edited item *- Specified by:
getItem
in interfaceComboBoxEditor
-
selectAll
public void selectAll()Ask the editor to start editing and to select everything *- Specified by:
selectAll
in interfaceComboBoxEditor
-
addActionListener
Add an ActionListener. An action event is generated when the edited item changes *- Specified by:
addActionListener
in interfaceComboBoxEditor
-
removeActionListener
Remove an ActionListener *- Specified by:
removeActionListener
in interfaceComboBoxEditor
-