Package org.jdesktop.swingx
Class JXTree.CellEditorRemover
java.lang.Object
org.jdesktop.swingx.JXTree.CellEditorRemover
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Enclosing class:
JXTree
This class tracks changes in the keyboard focus state. It is used
when the JXTree is editing to determine when to terminate the edit.
If focus switches to a component outside of the JXTree, but in the
same window, this will terminate editing. The exact terminate
behaviour is controlled by the invokeStopEditing property.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) KeyboardFocusManager
the focusManager this is listening to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
release()
stops listening.private void
Sets the focusManager this is listening to.void
Updates itself to listen to the current KeyboardFocusManager.
-
Field Details
-
focusManager
KeyboardFocusManager focusManagerthe focusManager this is listening to.
-
-
Constructor Details
-
CellEditorRemover
public CellEditorRemover()
-
-
Method Details
-
updateKeyboardFocusManager
public void updateKeyboardFocusManager()Updates itself to listen to the current KeyboardFocusManager. -
release
public void release()stops listening. -
setKeyboardFocusManager
Sets the focusManager this is listening to. Unregisters/registers itself from/to the old/new manager, respectively.- Parameters:
current
- the KeyboardFocusManager to listen too.
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-