litesoft
Diff Revisions
949
vs
950
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/simplecomponents/ComponentColors.java
|
@@ -1,32 +1,32 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.aokeyhole.swing.simplecomponents; |
3 |
|
- |
|
4 |
|
- |
import java.awt.*; |
5 |
|
- |
|
6 |
|
- |
public final class ComponentColors { |
7 |
|
- |
private static Color sEnabled = Color.WHITE; |
8 |
|
- |
private static Color sDisabled = new Color( 230, 230, 230 ); |
9 |
|
- |
|
10 |
|
- |
public static Color get( boolean pEnabled ) { |
11 |
|
- |
return pEnabled ? sEnabled : sDisabled; |
12 |
|
- |
} |
13 |
|
- |
|
14 |
|
- |
public static Color getEnabled() { |
15 |
|
- |
return sEnabled; |
16 |
|
- |
} |
17 |
|
- |
|
18 |
|
- |
public static void setEnabled( Color pEnabled ) { |
19 |
|
- |
sEnabled = pEnabled; |
20 |
|
- |
} |
21 |
|
- |
|
22 |
|
- |
public static Color getDisabled() { |
23 |
|
- |
return sDisabled; |
24 |
|
- |
} |
25 |
|
- |
|
26 |
|
- |
public static void setDisabled( Color pDisabled ) { |
27 |
|
- |
sDisabled = pDisabled; |
28 |
|
- |
} |
29 |
|
- |
|
30 |
|
- |
private ComponentColors() { |
31 |
|
- |
} |
32 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.aokeyhole.swing.simplecomponents; |
|
3 |
+ |
|
|
4 |
+ |
import java.awt.*; |
|
5 |
+ |
|
|
6 |
+ |
public final class ComponentColors { |
|
7 |
+ |
private static Color sEnabled = Color.WHITE; |
|
8 |
+ |
private static Color sDisabled = new Color( 230, 230, 230 ); |
|
9 |
+ |
|
|
10 |
+ |
public static Color get( boolean pEnabled ) { |
|
11 |
+ |
return pEnabled ? sEnabled : sDisabled; |
|
12 |
+ |
} |
|
13 |
+ |
|
|
14 |
+ |
public static Color getEnabled() { |
|
15 |
+ |
return sEnabled; |
|
16 |
+ |
} |
|
17 |
+ |
|
|
18 |
+ |
public static void setEnabled( Color pEnabled ) { |
|
19 |
+ |
sEnabled = pEnabled; |
|
20 |
+ |
} |
|
21 |
+ |
|
|
22 |
+ |
public static Color getDisabled() { |
|
23 |
+ |
return sDisabled; |
|
24 |
+ |
} |
|
25 |
+ |
|
|
26 |
+ |
public static void setDisabled( Color pDisabled ) { |
|
27 |
+ |
sDisabled = pDisabled; |
|
28 |
+ |
} |
|
29 |
+ |
|
|
30 |
+ |
private ComponentColors() { |
|
31 |
+ |
} |
|
32 |
+ |
} |