01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.swing.plaf.synth;
19:
20: /**
21: * The SynthConstants contains possible states for the Component. The states
22: * divided into 2 groups: primary (at least one of the states should be present)
23: * and additional (component state may also contain this states)
24: */
25: public interface SynthConstants {
26:
27: /** The component (a JButton) is marked as default (additional) */
28: static int DEFAULT = 1024;
29:
30: /** The component is disabled (primary) */
31: static int DISABLED = 8;
32:
33: /** The component is enabled (primary) */
34: static int ENABLED = 1;
35:
36: /** The component is focused (additional) */
37: static int FOCUSED = 256;
38:
39: /** The mouse arrow is over the component (primary) */
40: static int MOUSE_OVER = 2;
41:
42: /** The component is in pressed state (primary) */
43: static int PRESSED = 4;
44:
45: /** The component is selected (additional) */
46: static int SELECTED = 512;
47:
48: }
|