org.simbrain.world.dataworld
Class ButtonEditor
java.lang.Object
javax.swing.AbstractCellEditor
org.simbrain.world.dataworld.ButtonEditor
- All Implemented Interfaces:
- KeyListener, Serializable, EventListener, CellEditor, TableCellEditor
public class ButtonEditor
- extends AbstractCellEditor
- implements TableCellEditor, KeyListener
The ButtonEditor class provides an editor for buttons that allows you to change their names.
- Author:
- RJB
- See Also:
- Serialized Form
|
Constructor Summary |
ButtonEditor(DataWorld dataWorld)
Create a new button editor for the specified data world. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonEditor
public ButtonEditor(DataWorld dataWorld)
- Create a new button editor for the specified data world.
- Parameters:
dataWorld - data world
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface CellEditor
- See Also:
AbstractCellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface TableCellEditor
- See Also:
TableCellEditor
keyTyped
public void keyTyped(KeyEvent keyEvent)
- Specified by:
keyTyped in interface KeyListener
- See Also:
KeyListener
keyPressed
public void keyPressed(KeyEvent keyEvent)
- Specified by:
keyPressed in interface KeyListener
- See Also:
KeyListener
keyReleased
public void keyReleased(KeyEvent keyEvent)
- Specified by:
keyReleased in interface KeyListener
- See Also:
KeyListener