?
-
I have a close and open method in a class containing fireCloseEvent()
and fireOpenEvent() respectively to fire a custom event.
What if in order not to create a custom event, I do it such that I
create a 'state' class variable and change the state when it is closed
or opened and then firePropertyChangeEvent?
Is the former or latter the proper way?
and fireOpenEvent() respectively to fire a custom event.
What if in order not to create a custom event, I do it such that I
create a 'state' class variable and change the state when it is closed
or opened and then firePropertyChangeEvent?
Is the former or latter the proper way?