1 /*
2 * Copyright (c) 2003-2008 by Cosylab d. d.
3 *
4 * This file is part of CosyBeans-Common.
5 *
6 * CosyBeans-Common is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * CosyBeans-Common is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with CosyBeans-Common. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 package com.cosylab.gui.components;
21
22 /**
23 * Customizer for <code>LabelledWheelswitch</code> allows setting the most
24 * common properties of the bean.
25 *
26 * @author <a href="mailto:jaka.bobnar@cosylab.com">Jaka Bobnar</a>
27 * @version $Id: LabelledWheelswitchCustomizer.java,v 1.10 2008-04-22 12:28:40 jbobnar Exp $
28 * @see LabelledWheelswitch
29 */
30 public class LabelledWheelswitchCustomizer extends
31 AbstractNumericDisplayerPanelCustomizer {
32 private static final long serialVersionUID = 1L;
33
34 public static String[] ASPECTS = {
35 VISUAL_BASIC, VISUAL_LAYOUT, VALUE_DISPLAY, VALUE_DISPLAY_ADVANCED
36 };
37
38 /** Tag for enhanced property. */
39 public static final String ENHANCED = "enhanced";
40
41 /** Tag for animated property. */
42 public static final String ANIMATED = "animated";
43
44 /** Tag for editable property. */
45 public static final String EDITABLE = "editable";
46
47 /** Tag for columns property. */
48 public static final String COLUMNS = "columns";
49
50 /** Tag for minimum property. */
51 public static final String GRAPH_MIN = "minimum";
52
53 /** Tag for maximum property. */
54 public static final String GRAPH_MAX = "maximum";
55
56 /** Tag for tiltingEnabled property. */
57 public static final String TILTING_ENABLED = "tiltingEnabled";
58
59 /** Names of basic visual properties. */
60 public static final String[] VISUAL_BASIC_PROPERTIES = {
61 TITLE, TITLE_VISIBLE, UNITS_SHOWN_WITH_TITLE_VISIBLE, MIN_TITLE_FONT_SIZE, MAX_TITLE_FONT_SIZE, RESIZABLE, ENHANCED, TILTING_ENABLED, ANIMATED
62 };
63
64 /** Names for advanced value display properties. */
65 public static String[] VALUE_DISPLAY_ADVANCED_PROPERTIES = {
66 EDITABLE
67 };
68
69 /** Names for the value display properties. */
70 public static String[] VALUE_DISPLAY_PROPERTIES = {
71 GRAPH_MIN, GRAPH_MAX, BOUNDS_VISIBLE, UNITS, UNITS_VISIBLE, FORMAT
72 };
73
74 public LabelledWheelswitchCustomizer(){
75 addCustomizerTable(VALUE_DISPLAY, VALUE_DISPLAY_PROPERTIES);
76 addCustomizerTable(VALUE_DISPLAY_ADVANCED, VALUE_DISPLAY_ADVANCED_PROPERTIES);
77 setSize(452, 205);
78 }
79 }