Class DelegatingEditActionHandlerFocusAdapter
java.lang.Object
java.awt.event.FocusAdapter
com.inductiveautomation.ignition.designer.model.DelegatingEditActionHandlerFocusAdapter
- All Implemented Interfaces:
FocusListener
,EventListener
A
FocusAdapter
which sets the injected
DelegatingEditActionHandler's
delegate to the injected
EditActionHandler
delegate when the target gains focus. When the target
loses focus, the
DelegatingEditActionHandler's
delegate is set to null only if its
delegate is still set to the injected delegate and if the component that the
target lost focus to descends from the injected parent
Component
(since focus could be on the Designer's
edit menu bar, in this case the edit action delegation chain will not break).-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingEditActionHandlerFocusAdapter
(Component parent, DelegatingEditActionHandler delegator, EditActionHandler delegate) Constructor for injecting the parent, delegator, and delegate. -
Method Summary
-
Constructor Details
-
DelegatingEditActionHandlerFocusAdapter
public DelegatingEditActionHandlerFocusAdapter(Component parent, DelegatingEditActionHandler delegator, EditActionHandler delegate) throws NullPointerException Constructor for injecting the parent, delegator, and delegate.- Parameters:
parent
- The parentComponent
delegator
- The delegatordelegate
- The delegate to whom the delegator will delegate handling of edit actions- Throws:
NullPointerException
- when parent or delegator is null- See Also:
-
-
Method Details
-
focusGained
- Specified by:
focusGained
in interfaceFocusListener
- Overrides:
focusGained
in classFocusAdapter
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
- Overrides:
focusLost
in classFocusAdapter
-