Java 类javax.swing.DefaultFocusManager 实例源码

项目:cn1    文件:MenuKeyBindingProcessor.java   
public static void attach() {
    if (sharedInstance == null) {
        sharedInstance = new MenuKeyBindingProcessor();
    }
    if (numInstallations == 0) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(sharedInstance);
    }
    numInstallations++;
}
项目:cn1    文件:MenuKeyBindingProcessor.java   
public static void detach() {
    if (numInstallations == 1) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(sharedInstance);
    }
    if (numInstallations > 0) {
        numInstallations--;
    }
}
项目:freeVM    文件:MenuKeyBindingProcessor.java   
public static void attach() {
    if (sharedInstance == null) {
        sharedInstance = new MenuKeyBindingProcessor();
    }
    if (numInstallations == 0) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(sharedInstance);
    }
    numInstallations++;
}
项目:freeVM    文件:MenuKeyBindingProcessor.java   
public static void detach() {
    if (numInstallations == 1) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(sharedInstance);
    }
    if (numInstallations > 0) {
        numInstallations--;
    }
}
项目:freeVM    文件:MenuKeyBindingProcessor.java   
public static void attach() {
    if (sharedInstance == null) {
        sharedInstance = new MenuKeyBindingProcessor();
    }
    if (numInstallations == 0) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(sharedInstance);
    }
    numInstallations++;
}
项目:freeVM    文件:MenuKeyBindingProcessor.java   
public static void detach() {
    if (numInstallations == 1) {
        DefaultFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(sharedInstance);
    }
    if (numInstallations > 0) {
        numInstallations--;
    }
}