Java Code Examples for com.sun.java.swing.plaf.gtk.GTKConstants.StateType

The following examples show how to use com.sun.java.swing.plaf.gtk.GTKConstants.StateType. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis   Source File: GTKLookAndFeel.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 2
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 3
Source Project: TencentKona-8   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 4
Source Project: jdk8u60   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 5
Source Project: JDKSourceCode1.8   Source File: GTKLookAndFeel.java    License: MIT License 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 6
Source Project: openjdk-jdk8u   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 7
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 8
Source Project: Bytecoder   Source File: GTKLookAndFeel.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 9
Source Project: openjdk-jdk9   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 10
Source Project: jdk8u-jdk   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 11
Source Project: hottub   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 12
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 13
Source Project: openjdk-8   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 14
Source Project: jdk8u_jdk   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 15
Source Project: jdk8u-jdk   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}
 
Example 16
Source Project: jdk8u-dev-jdk   Source File: GTKLookAndFeel.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * Maps from Synth state to native GTK state using typesafe enumeration
 * StateType.  This is only used by GTKEngine.
 */
static StateType synthStateToGTKStateType(int state) {
    StateType result;
    switch (state) {
        case SynthConstants.PRESSED:
            result = StateType.ACTIVE;
            break;
        case SynthConstants.MOUSE_OVER:
            result = StateType.PRELIGHT;
            break;
        case SynthConstants.SELECTED:
            result = StateType.SELECTED;
            break;
        case SynthConstants.DISABLED:
            result = StateType.INSENSITIVE;
            break;
        case SynthConstants.ENABLED:
        default:
            result = StateType.NORMAL;
            break;
    }
    return result;
}