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(); }
static UserInterface create(ControlPanel controlPanel) { NullCheck.notNull(controlPanel, "controlPanel"); return new UserInterface(controlPanel); }
@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); }