Listeners:
Listener listens the event and perform action according to the Event.
Q)How to register a Listener?
A) public void addMyActionListener(MyActionListener l)
1.The prefix for method name should be add
2.The parameter passing in the method should be same as method name without prefix 'add'.
Q)How to unregister a Listener?
A)public void removeMyActionListener(MyActionListener l)
1.The prefix for method name should be 'remove'
2.The parameter passing in the method should be same as method name without prefix 'remove'.
Listener listens the event and perform action according to the Event.
Q)How to register a Listener?
A) public void addMyActionListener(MyActionListener l)
1.The prefix for method name should be add
2.The parameter passing in the method should be same as method name without prefix 'add'.
Q)How to unregister a Listener?
A)public void removeMyActionListener(MyActionListener l)
1.The prefix for method name should be 'remove'
2.The parameter passing in the method should be same as method name without prefix 'remove'.
No comments:
Post a Comment
If you Like my blog Spread it and help friends for whom this blog is useful for their career.