Class MultiLineTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
be.gaudry.swing.component.table.editors.MultiLineTableCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
Multiline text cell editor.
This will show a
dialog
to edit the cell text.
Provided by the broldev.core.swing project.- Since:
- 1.0 (Dec 26, 2008), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.1 (Feb 11 2009)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
ConstructorDescriptionBuilds an instance without title for the dialogMultiLineTableCellEditor(String title)
Builds an instance with a custom title for the editor dialogMultiLineTableCellEditor(String title, int maxStringLength)
Builds an instance with a custom title for the editor dialog -
Method Summary
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Constructor Details
-
MultiLineTableCellEditor
public MultiLineTableCellEditor()Builds an instance without title for the dialog -
MultiLineTableCellEditor
Builds an instance with a custom title for the editor dialog- Parameters:
title
- text to display on the dialog's window bar
-
MultiLineTableCellEditor
Builds an instance with a custom title for the editor dialog- Parameters:
title
- text to display on the dialog's window barmaxStringLength
- maximum length allowed (0 means no limit)
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getTitle
The title is displayed into the dialogtitle
- Returns:
- the title
- Since:
- 1.1 (Feb 11 2009)
-
setTitle
- Parameters:
title
- the title to set- Since:
- 1.1 (Feb 11 2009)
- See Also:
getTitle()
-