cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
p_meet
Level 3

how to catch next or back button events

wen we press buttons on a panel how to get the event?
Labels (1)
0 Kudos
(2) Replies
rmackay
Level 7

The button event code is handled in the frame of the panel and not the individual panel itself. You can capture the events there. You can get access to the buttons inside the actual panel code as well if you need to do that.

Here is an example of disabling the back button from within the initUI code of a specific panel, rather then the frame.

ISFrame frame = context.getISFrame();
ISButton backButton = frame.getButton("back");
if (backButton != null) {
backButton.setEnabled(false);
}
0 Kudos
p_meet
Level 3

thanks for the response. althought wat I want to know is some thing like this

wen back/next button is pressed, execute a functionality. So i want to know how the event button pressed can be captured. Much like in AWT MouseButtonPressed etc

when buttonPressed()
do
something()
0 Kudos