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:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChangeEvent
protected JComponent
protected JComponent
protected EventListenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) boolean
isCellEditable
(EventObject anEvent) void
boolean
shouldSelectCell
(EventObject anEvent) boolean
-
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
-