java.lang.Object
org.jhotdraw8.fxbase.tree.TreeModelUndoAdapter<E>
- Type Parameters:
E- the element type of the tree
This adapter can be bound to a
TextInputControl
to support undo/redo with a FXUndoManager.
This text filter can be added to multiple tree models.
If you do this, make sure that you add the FXUndoManager
only once as a listener.
-
Property Summary
Properties -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUndoEditListener(UndoableEditListener listener) voidprotected voidfireUndoableEdit(Object source, UndoableEdit edit) Gets the value of theresourceBundleproperty.voidremoveUndoEditListener(UndoableEditListener listener) voidsetResourceBundle(ResourceBundle resourceBundle) Sets the value of theresourceBundleproperty.void
-
Property Details
-
resourceBundle
- See Also:
-
-
Field Details
-
RESOURCE_BUNDLE_PROPERTY
- See Also:
-
-
Constructor Details
-
TreeModelUndoAdapter
public TreeModelUndoAdapter() -
TreeModelUndoAdapter
-
-
Method Details
-
addUndoEditListener
-
bind
-
fireUndoableEdit
-
getResourceBundle
Gets the value of theresourceBundleproperty.- Property description:
- Returns:
- the value of the
resourceBundleproperty - See Also:
-
setResourceBundle
Sets the value of theresourceBundleproperty.- Property description:
- Parameters:
resourceBundle- the value for theresourceBundleproperty- See Also:
-
removeUndoEditListener
-
resourceBundleProperty
- Returns:
- the
resourceBundleproperty - See Also:
-
unbind
-