Пример #1
0
 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();
 }
Пример #2
0
 static UserInterface create(ControlPanel controlPanel) {
   NullCheck.notNull(controlPanel, "controlPanel");
   return new UserInterface(controlPanel);
 }
Пример #3
0
 @Override
 public boolean onEnvironmentEvent(EnvironmentEvent event) {
   NullCheck.notNull(event, "event");
   if (controlPanel.onEnvironmentEvent(event)) return true;
   return super.onEnvironmentEvent(event);
 }
Пример #4
0
 @Override
 public boolean onKeyboardEvent(KeyboardEvent event) {
   NullCheck.notNull(event, "event");
   if (controlPanel.onKeyboardEvent(event)) return true;
   return super.onKeyboardEvent(event);
 }