mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 21:55:12 +00:00
- Implement WizardCancelActionListener to handle cancellation actions. - Create WizardDialog for managing dialog windows with window listener. - Add WizardDialogCallback for handling dialog callbacks. - Introduce WizardNextActionListener for handling next actions in the wizard. - Develop WizardPanel to manage the wizard's layout and navigation. - Implement WizardRunnable to run wizard actions in a separate thread. - Define WizardStepCallback interface for step callbacks in the wizard. - Create YAxisSelectorLayoutRunnable for managing layout updates. - Add YAxisSelectorPanel for selecting Y-axis options in the UI. - Remove unused interfaces and classes (cP, cT, co, cx, dx, eR, eU, ev).
49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
package com.efiAnalytics.ui;
|
|
|
|
import java.awt.Component;
|
|
import java.awt.KeyEventDispatcher;
|
|
import java.awt.event.KeyEvent;
|
|
|
|
class DialogKeyEventDispatcher implements KeyEventDispatcher {
|
|
Component a = null;
|
|
|
|
DialogKeyEventDispatcher(dF paramdF, Component paramComponent) {
|
|
this.a = paramComponent;
|
|
}
|
|
|
|
public boolean dispatchKeyEvent(KeyEvent paramKeyEvent) {
|
|
if (!b(paramKeyEvent))
|
|
return false;
|
|
if (paramKeyEvent.getID() == 401)
|
|
switch (paramKeyEvent.getKeyCode()) {
|
|
case 27:
|
|
if (!a(paramKeyEvent)) {
|
|
this.b.k();
|
|
this.b.close();
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private boolean a(KeyEvent paramKeyEvent) {
|
|
return (paramKeyEvent.getSource() instanceof do && ((Component)paramKeyEvent.getSource()).getParent() instanceof BinTableView);
|
|
}
|
|
|
|
private boolean b(KeyEvent paramKeyEvent) {
|
|
for (Component component = paramKeyEvent.getComponent(); component != null; component = component.getParent()) {
|
|
if (component.equals(this.a))
|
|
return true;
|
|
if (component instanceof java.awt.Window)
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/dH.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |