com.sun.java.swing.plaf.gtk.GTKConstants.StateType Java Examples
The following examples show how to use
com.sun.java.swing.plaf.gtk.GTKConstants.StateType.
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 File: GTKLookAndFeel.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * 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
Source File: GTKLookAndFeel.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * 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 File: GTKLookAndFeel.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * 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
Source File: GTKLookAndFeel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * 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
Source File: GTKLookAndFeel.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * 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 File: GTKLookAndFeel.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * 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; }