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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an ActionListener.Return the component that should be added to the tree hierarchy for this editorgetItem()Return the edited item *voidRemove an ActionListener *voidAsk the editor to start editing and to select everything *voidSet 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:
getEditorComponentin interfaceComboBoxEditor
-
setItem
Set the item that should be edited. Cancel any editing if necessary *- Specified by:
setItemin interfaceComboBoxEditor
-
getItem
Return the edited item *- Specified by:
getItemin interfaceComboBoxEditor
-
selectAll
public void selectAll()Ask the editor to start editing and to select everything *- Specified by:
selectAllin interfaceComboBoxEditor
-
addActionListener
Add an ActionListener. An action event is generated when the edited item changes *- Specified by:
addActionListenerin interfaceComboBoxEditor
-
removeActionListener
Remove an ActionListener *- Specified by:
removeActionListenerin interfaceComboBoxEditor
-