this.window = window;
}
public void componentFocusGained(PageComponent component) {
super.componentFocusGained(component);
PageComponentContext context = component.getContext();
for (Iterator i = window.getSharedCommands(); i.hasNext();) {
TargetableActionCommand globalCommand = (TargetableActionCommand)i.next();
globalCommand.setCommandExecutor(context.getLocalCommandExecutor(globalCommand.getId()));
}
}