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 ChangeEventchangeEventprotected JComponentcontainerprotected JComponenteditorComponentprotected EventListenerListlistenerList -
Constructor Summary
Constructors Modifier Constructor Description protectedJComponentCellEditor() -
Method Summary
Modifier and Type Method Description voidaddCellEditorListener(CellEditorListener l)voidcancelCellEditing()ObjectgetCellEditorValue()ComponentgetComponent()ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)ComponentgetTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)booleanisCellEditable(EventObject anEvent)voidremoveCellEditorListener(CellEditorListener l)booleanshouldSelectCell(EventObject anEvent)booleanstopCellEditing()
-
Field Details
-
listenerList
-
changeEvent
-
editorComponent
-
container
-
-
Constructor Details
-
JComponentCellEditor
protected JComponentCellEditor()
-
-
Method Details
-
getComponent
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)- Specified by:
getTreeCellEditorComponentin interfaceTreeCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-