Package com.tagtraum.beatunes.songtable
Class SongTableCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- com.tagtraum.beatunes.songtable.SongTableCellEditor
-
- All Implemented Interfaces:
BeaTunesTableCellEditor
,Serializable
,CellEditor
,TableCellEditor
,TreeCellEditor
public class SongTableCellEditor extends DefaultCellEditor implements BeaTunesTableCellEditor
TableCellEditor
for song-tables.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
-
-
Field Summary
-
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description SongTableCellEditor(InstrumentationComboBox instrumentationComboBox, Property<AudioSong.Instrumentation> property)
SongTableCellEditor(LikingComboBox likingComboBox, Property<AudioSong.Liking> property)
SongTableCellEditor(Rating rating, Property<Integer> property)
SongTableCellEditor(JCheckBox checkBox, Property<Boolean> property)
SongTableCellEditor(JComboBox comboBox, Property<T> property)
SongTableCellEditor(JFormattedTextField textField, SortableTableColumn.ColumnDescriptor column, Property<Integer> property)
SongTableCellEditor(JTextField textField, SortableTableColumn.ColumnDescriptor column, Property<String> property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeaTunes
getApplication()
Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
void
setApplication(BeaTunes beaTunes)
void
setTable(JTable table)
Registers this Editor with its table.-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
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, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
-
-
-
Constructor Detail
-
SongTableCellEditor
public SongTableCellEditor(JFormattedTextField textField, SortableTableColumn.ColumnDescriptor column, Property<Integer> property)
- Parameters:
textField
- textFieldcolumn
- column that is used for auto-completionproperty
- propertyExtractor
-
SongTableCellEditor
public SongTableCellEditor(JTextField textField, SortableTableColumn.ColumnDescriptor column, Property<String> property)
- Parameters:
textField
- textFieldcolumn
- column that is used for auto-completionproperty
- propertyExtractor
-
SongTableCellEditor
public SongTableCellEditor(JCheckBox checkBox, Property<Boolean> property)
- Parameters:
checkBox
- checkboxproperty
- propertyExtractor
-
SongTableCellEditor
public SongTableCellEditor(Rating rating, Property<Integer> property)
- Parameters:
rating
- ratingproperty
- propertyExtractor
-
SongTableCellEditor
public SongTableCellEditor(LikingComboBox likingComboBox, Property<AudioSong.Liking> property)
- Parameters:
likingComboBox
- likingproperty
- propertyExtractor
-
SongTableCellEditor
public SongTableCellEditor(InstrumentationComboBox instrumentationComboBox, Property<AudioSong.Instrumentation> property)
- Parameters:
instrumentationComboBox
- instrumentationproperty
- propertyExtractor
-
-
Method Detail
-
getApplication
public BeaTunes getApplication()
-
setApplication
public void setApplication(BeaTunes beaTunes)
- Specified by:
setApplication
in interfaceBeaTunesTableCellEditor
- Parameters:
beaTunes
- beaTunes
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
- Overrides:
getTableCellEditorComponent
in classDefaultCellEditor
-
setTable
public void setTable(JTable table)
Registers this Editor with its table.- Specified by:
setTable
in interfaceBeaTunesTableCellEditor
- Parameters:
table
- table
-
-