UserInterface(ControlPanel controlPanel) { super( new DefaultControlEnvironment(controlPanel.getCoreInterface()), controlPanel.getCoreInterface().i18n().getStaticStr("CpUserInterfaceGeneral")); NullCheck.notNull(controlPanel, "controlPanel"); this.controlPanel = controlPanel; this.luwrain = controlPanel.getCoreInterface(); this.sett = Settings.createUserInterface(luwrain.getRegistry()); fillForm(); }
@Override public boolean onEnvironmentEvent(EnvironmentEvent event) { NullCheck.notNull(event, "event"); if (controlPanel.onEnvironmentEvent(event)) return true; return super.onEnvironmentEvent(event); }
@Override public boolean onKeyboardEvent(KeyboardEvent event) { NullCheck.notNull(event, "event"); if (controlPanel.onKeyboardEvent(event)) return true; return super.onKeyboardEvent(event); }