public void resourceActionPerformed(ResourceActionEvent e) {
switch (e.getResourceActionCommand())
{
case ResourceActionEvent.SAVE_EVENT:
try {
RemoteResource ctrls[] = getControls();
for (int i = 0 ; i < ctrls.length ; i++)
ctrls[i].loadResource("save");
} catch (RemoteAccessException ex) {
Message.showErrorMessage(server, ex);
}
break;
case ResourceActionEvent.STOP_EVENT:
try {
RemoteResource ctrls[] = getControls();
for (int i = 0 ; i < ctrls.length ; i++)
ctrls[i].loadResource("stop");
} catch (RemoteAccessException ex) {
Message.showErrorMessage(server, ex);
}