Package VASSAL.i18n
Class TranslateWindow.JComponentCellEditor
java.lang.Object
VASSAL.i18n.TranslateWindow.JComponentCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
,TreeCellEditor
- Enclosing class:
- TranslateWindow
protected static class TranslateWindow.JComponentCellEditor extends Object implements TableCellEditor, TreeCellEditor, Serializable
Custom CellEditor to support CopyButtons in JTable cells
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected ChangeEvent
changeEvent
protected JComponent
container
protected JComponent
editorComponent
protected EventListenerList
listenerList
-
Constructor Summary
Constructors Modifier Constructor Description protected
JComponentCellEditor()
-
Method Summary
Modifier and Type Method Description void
addCellEditorListener(CellEditorListener l)
void
cancelCellEditing()
Object
getCellEditorValue()
Component
getComponent()
Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
Component
getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
boolean
isCellEditable(EventObject anEvent)
void
removeCellEditorListener(CellEditorListener l)
boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
Field Details
-
listenerList
-
changeEvent
-
editorComponent
-
container
-
-
Constructor Details
-
JComponentCellEditor
protected JComponentCellEditor()
-
-
Method Details
-
getComponent
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditing
in interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)- Specified by:
getTreeCellEditorComponent
in interfaceTreeCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-