KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nqadmin > swingSet > formatting > SSCurrencyFieldBeanInfo


1 /*
2  * SSCurrencyFieldBeanInfo.java
3  *
4  * Created on 19 de enero de 2005, 18:58
5  */

6
7 package com.nqadmin.swingSet.formatting;
8
9 import java.beans.*;
10
11 /**
12  * @author dags
13  */

14 public class SSCurrencyFieldBeanInfo extends SimpleBeanInfo {
15     
16     // Bean descriptor//GEN-FIRST:BeanDescriptor
17
/*lazy BeanDescriptor*/
18     private static BeanDescriptor getBdescriptor(){
19         BeanDescriptor beanDescriptor = new BeanDescriptor ( SSCurrencyField.class , null );
20         beanDescriptor.setShortDescription ( "A FormattedTextField with currency formating capabilities" );//GEN-HEADEREND:BeanDescriptor
21

22         // Here you can add code for customizing the BeanDescriptor.
23

24         return beanDescriptor; }//GEN-LAST:BeanDescriptor
25

26     
27     // Property identifiers//GEN-FIRST:Properties
28
private static final int PROPERTY_accessibleContext = 0;
29     private static final int PROPERTY_action = 1;
30     private static final int PROPERTY_actionCommand = 2;
31     private static final int PROPERTY_actionListeners = 3;
32     private static final int PROPERTY_actionMap = 4;
33     private static final int PROPERTY_actions = 5;
34     private static final int PROPERTY_alignmentX = 6;
35     private static final int PROPERTY_alignmentY = 7;
36     private static final int PROPERTY_ancestorListeners = 8;
37     private static final int PROPERTY_autoscrolls = 9;
38     private static final int PROPERTY_background = 10;
39     private static final int PROPERTY_backgroundSet = 11;
40     private static final int PROPERTY_border = 12;
41     private static final int PROPERTY_bounds = 13;
42     private static final int PROPERTY_caret = 14;
43     private static final int PROPERTY_caretColor = 15;
44     private static final int PROPERTY_caretListeners = 16;
45     private static final int PROPERTY_caretPosition = 17;
46     private static final int PROPERTY_colorModel = 18;
47     private static final int PROPERTY_columnName = 19;
48     private static final int PROPERTY_columns = 20;
49     private static final int PROPERTY_component = 21;
50     private static final int PROPERTY_componentCount = 22;
51     private static final int PROPERTY_componentListeners = 23;
52     private static final int PROPERTY_componentOrientation = 24;
53     private static final int PROPERTY_componentPopupMenu = 25;
54     private static final int PROPERTY_components = 26;
55     private static final int PROPERTY_containerListeners = 27;
56     private static final int PROPERTY_cursor = 28;
57     private static final int PROPERTY_cursorSet = 29;
58     private static final int PROPERTY_debugGraphicsOptions = 30;
59     private static final int PROPERTY_decimals = 31;
60     private static final int PROPERTY_disabledTextColor = 32;
61     private static final int PROPERTY_displayable = 33;
62     private static final int PROPERTY_document = 34;
63     private static final int PROPERTY_doubleBuffered = 35;
64     private static final int PROPERTY_dragEnabled = 36;
65     private static final int PROPERTY_dropTarget = 37;
66     private static final int PROPERTY_editable = 38;
67     private static final int PROPERTY_editValid = 39;
68     private static final int PROPERTY_enabled = 40;
69     private static final int PROPERTY_focusable = 41;
70     private static final int PROPERTY_focusAccelerator = 42;
71     private static final int PROPERTY_focusCycleRoot = 43;
72     private static final int PROPERTY_focusCycleRootAncestor = 44;
73     private static final int PROPERTY_focusListeners = 45;
74     private static final int PROPERTY_focusLostBehavior = 46;
75     private static final int PROPERTY_focusOwner = 47;
76     private static final int PROPERTY_focusTraversable = 48;
77     private static final int PROPERTY_focusTraversalKeys = 49;
78     private static final int PROPERTY_focusTraversalKeysEnabled = 50;
79     private static final int PROPERTY_focusTraversalPolicy = 51;
80     private static final int PROPERTY_focusTraversalPolicyProvider = 52;
81     private static final int PROPERTY_focusTraversalPolicySet = 53;
82     private static final int PROPERTY_font = 54;
83     private static final int PROPERTY_fontSet = 55;
84     private static final int PROPERTY_foreground = 56;
85     private static final int PROPERTY_foregroundSet = 57;
86     private static final int PROPERTY_formatter = 58;
87     private static final int PROPERTY_formatterFactory = 59;
88     private static final int PROPERTY_graphics = 60;
89     private static final int PROPERTY_graphicsConfiguration = 61;
90     private static final int PROPERTY_height = 62;
91     private static final int PROPERTY_helper = 63;
92     private static final int PROPERTY_hierarchyBoundsListeners = 64;
93     private static final int PROPERTY_hierarchyListeners = 65;
94     private static final int PROPERTY_highlighter = 66;
95     private static final int PROPERTY_horizontalAlignment = 67;
96     private static final int PROPERTY_horizontalVisibility = 68;
97     private static final int PROPERTY_ignoreRepaint = 69;
98     private static final int PROPERTY_inheritsPopupMenu = 70;
99     private static final int PROPERTY_inputContext = 71;
100     private static final int PROPERTY_inputMethodListeners = 72;
101     private static final int PROPERTY_inputMethodRequests = 73;
102     private static final int PROPERTY_inputVerifier = 74;
103     private static final int PROPERTY_insets = 75;
104     private static final int PROPERTY_keyListeners = 76;
105     private static final int PROPERTY_keymap = 77;
106     private static final int PROPERTY_layout = 78;
107     private static final int PROPERTY_lightweight = 79;
108     private static final int PROPERTY_locale = 80;
109     private static final int PROPERTY_locationOnScreen = 81;
110     private static final int PROPERTY_managingFocus = 82;
111     private static final int PROPERTY_margin = 83;
112     private static final int PROPERTY_maximumSize = 84;
113     private static final int PROPERTY_maximumSizeSet = 85;
114     private static final int PROPERTY_minimumSize = 86;
115     private static final int PROPERTY_minimumSizeSet = 87;
116     private static final int PROPERTY_mouseListeners = 88;
117     private static final int PROPERTY_mouseMotionListeners = 89;
118     private static final int PROPERTY_mousePosition = 90;
119     private static final int PROPERTY_mouseWheelListeners = 91;
120     private static final int PROPERTY_name = 92;
121     private static final int PROPERTY_navigationFilter = 93;
122     private static final int PROPERTY_navigator = 94;
123     private static final int PROPERTY_nextFocusableComponent = 95;
124     private static final int PROPERTY_opaque = 96;
125     private static final int PROPERTY_optimizedDrawingEnabled = 97;
126     private static final int PROPERTY_paintingTile = 98;
127     private static final int PROPERTY_parent = 99;
128     private static final int PROPERTY_peer = 100;
129     private static final int PROPERTY_precision = 101;
130     private static final int PROPERTY_preferredScrollableViewportSize = 102;
131     private static final int PROPERTY_preferredSize = 103;
132     private static final int PROPERTY_preferredSizeSet = 104;
133     private static final int PROPERTY_propertyChangeListeners = 105;
134     private static final int PROPERTY_registeredKeyStrokes = 106;
135     private static final int PROPERTY_requestFocusEnabled = 107;
136     private static final int PROPERTY_rootPane = 108;
137     private static final int PROPERTY_rowSet = 109;
138     private static final int PROPERTY_scrollableTracksViewportHeight = 110;
139     private static final int PROPERTY_scrollableTracksViewportWidth = 111;
140     private static final int PROPERTY_scrollOffset = 112;
141     private static final int PROPERTY_selectedText = 113;
142     private static final int PROPERTY_selectedTextColor = 114;
143     private static final int PROPERTY_selectionColor = 115;
144     private static final int PROPERTY_selectionEnd = 116;
145     private static final int PROPERTY_selectionStart = 117;
146     private static final int PROPERTY_showing = 118;
147     private static final int PROPERTY_text = 119;
148     private static final int PROPERTY_toolkit = 120;
149     private static final int PROPERTY_toolTipText = 121;
150     private static final int PROPERTY_topLevelAncestor = 122;
151     private static final int PROPERTY_transferHandler = 123;
152     private static final int PROPERTY_treeLock = 124;
153     private static final int PROPERTY_UI = 125;
154     private static final int PROPERTY_UIClassID = 126;
155     private static final int PROPERTY_valid = 127;
156     private static final int PROPERTY_validateRoot = 128;
157     private static final int PROPERTY_value = 129;
158     private static final int PROPERTY_verifyInputWhenFocusTarget = 130;
159     private static final int PROPERTY_vetoableChangeListeners = 131;
160     private static final int PROPERTY_visible = 132;
161     private static final int PROPERTY_visibleRect = 133;
162     private static final int PROPERTY_width = 134;
163     private static final int PROPERTY_x = 135;
164     private static final int PROPERTY_y = 136;
165
166     // Property array
167
/*lazy PropertyDescriptor*/
168     private static PropertyDescriptor[] getPdescriptor(){
169         PropertyDescriptor[] properties = new PropertyDescriptor[137];
170     
171         try {
172             properties[PROPERTY_accessibleContext] = new PropertyDescriptor ( "accessibleContext", SSCurrencyField.class, "getAccessibleContext", null );
173             properties[PROPERTY_action] = new PropertyDescriptor ( "action", SSCurrencyField.class, "getAction", "setAction" );
174             properties[PROPERTY_actionCommand] = new PropertyDescriptor ( "actionCommand", SSCurrencyField.class, null, "setActionCommand" );
175             properties[PROPERTY_actionListeners] = new PropertyDescriptor ( "actionListeners", SSCurrencyField.class, "getActionListeners", null );
176             properties[PROPERTY_actionMap] = new PropertyDescriptor ( "actionMap", SSCurrencyField.class, "getActionMap", "setActionMap" );
177             properties[PROPERTY_actions] = new PropertyDescriptor ( "actions", SSCurrencyField.class, "getActions", null );
178             properties[PROPERTY_alignmentX] = new PropertyDescriptor ( "alignmentX", SSCurrencyField.class, "getAlignmentX", "setAlignmentX" );
179             properties[PROPERTY_alignmentY] = new PropertyDescriptor ( "alignmentY", SSCurrencyField.class, "getAlignmentY", "setAlignmentY" );
180             properties[PROPERTY_ancestorListeners] = new PropertyDescriptor ( "ancestorListeners", SSCurrencyField.class, "getAncestorListeners", null );
181             properties[PROPERTY_autoscrolls] = new PropertyDescriptor ( "autoscrolls", SSCurrencyField.class, "getAutoscrolls", "setAutoscrolls" );
182             properties[PROPERTY_background] = new PropertyDescriptor ( "background", SSCurrencyField.class, "getBackground", "setBackground" );
183             properties[PROPERTY_backgroundSet] = new PropertyDescriptor ( "backgroundSet", SSCurrencyField.class, "isBackgroundSet", null );
184             properties[PROPERTY_border] = new PropertyDescriptor ( "border", SSCurrencyField.class, "getBorder", "setBorder" );
185             properties[PROPERTY_bounds] = new PropertyDescriptor ( "bounds", SSCurrencyField.class, "getBounds", "setBounds" );
186             properties[PROPERTY_caret] = new PropertyDescriptor ( "caret", SSCurrencyField.class, "getCaret", "setCaret" );
187             properties[PROPERTY_caretColor] = new PropertyDescriptor ( "caretColor", SSCurrencyField.class, "getCaretColor", "setCaretColor" );
188             properties[PROPERTY_caretListeners] = new PropertyDescriptor ( "caretListeners", SSCurrencyField.class, "getCaretListeners", null );
189             properties[PROPERTY_caretPosition] = new PropertyDescriptor ( "caretPosition", SSCurrencyField.class, "getCaretPosition", "setCaretPosition" );
190             properties[PROPERTY_colorModel] = new PropertyDescriptor ( "colorModel", SSCurrencyField.class, "getColorModel", null );
191             properties[PROPERTY_columnName] = new PropertyDescriptor ( "columnName", SSCurrencyField.class, null, "setColumnName" );
192             properties[PROPERTY_columnName].setPreferred ( true );
193             properties[PROPERTY_columns] = new PropertyDescriptor ( "columns", SSCurrencyField.class, "getColumns", "setColumns" );
194             properties[PROPERTY_columns].setPreferred ( true );
195             properties[PROPERTY_component] = new IndexedPropertyDescriptor ( "component", SSCurrencyField.class, null, null, "getComponent", null );
196             properties[PROPERTY_componentCount] = new PropertyDescriptor ( "componentCount", SSCurrencyField.class, "getComponentCount", null );
197             properties[PROPERTY_componentListeners] = new PropertyDescriptor ( "componentListeners", SSCurrencyField.class, "getComponentListeners", null );
198             properties[PROPERTY_componentOrientation] = new PropertyDescriptor ( "componentOrientation", SSCurrencyField.class, "getComponentOrientation", "setComponentOrientation" );
199             properties[PROPERTY_componentPopupMenu] = new PropertyDescriptor ( "componentPopupMenu", SSCurrencyField.class, "getComponentPopupMenu", "setComponentPopupMenu" );
200             properties[PROPERTY_components] = new PropertyDescriptor ( "components", SSCurrencyField.class, "getComponents", null );
201             properties[PROPERTY_containerListeners] = new PropertyDescriptor ( "containerListeners", SSCurrencyField.class, "getContainerListeners", null );
202             properties[PROPERTY_cursor] = new PropertyDescriptor ( "cursor", SSCurrencyField.class, "getCursor", "setCursor" );
203             properties[PROPERTY_cursorSet] = new PropertyDescriptor ( "cursorSet", SSCurrencyField.class, "isCursorSet", null );
204             properties[PROPERTY_debugGraphicsOptions] = new PropertyDescriptor ( "debugGraphicsOptions", SSCurrencyField.class, "getDebugGraphicsOptions", "setDebugGraphicsOptions" );
205             properties[PROPERTY_decimals] = new PropertyDescriptor ( "decimals", SSCurrencyField.class, "getDecimals", "setDecimals" );
206             properties[PROPERTY_decimals].setPreferred ( true );
207             properties[PROPERTY_disabledTextColor] = new PropertyDescriptor ( "disabledTextColor", SSCurrencyField.class, "getDisabledTextColor", "setDisabledTextColor" );
208             properties[PROPERTY_displayable] = new PropertyDescriptor ( "displayable", SSCurrencyField.class, "isDisplayable", null );
209             properties[PROPERTY_document] = new PropertyDescriptor ( "document", SSCurrencyField.class, "getDocument", "setDocument" );
210             properties[PROPERTY_doubleBuffered] = new PropertyDescriptor ( "doubleBuffered", SSCurrencyField.class, "isDoubleBuffered", "setDoubleBuffered" );
211             properties[PROPERTY_dragEnabled] = new PropertyDescriptor ( "dragEnabled", SSCurrencyField.class, "getDragEnabled", "setDragEnabled" );
212             properties[PROPERTY_dropTarget] = new PropertyDescriptor ( "dropTarget", SSCurrencyField.class, "getDropTarget", "setDropTarget" );
213             properties[PROPERTY_editable] = new PropertyDescriptor ( "editable", SSCurrencyField.class, "isEditable", "setEditable" );
214             properties[PROPERTY_editValid] = new PropertyDescriptor ( "editValid", SSCurrencyField.class, "isEditValid", null );
215             properties[PROPERTY_enabled] = new PropertyDescriptor ( "enabled", SSCurrencyField.class, "isEnabled", "setEnabled" );
216             properties[PROPERTY_focusable] = new PropertyDescriptor ( "focusable", SSCurrencyField.class, "isFocusable", "setFocusable" );
217             properties[PROPERTY_focusAccelerator] = new PropertyDescriptor ( "focusAccelerator", SSCurrencyField.class, "getFocusAccelerator", "setFocusAccelerator" );
218             properties[PROPERTY_focusCycleRoot] = new PropertyDescriptor ( "focusCycleRoot", SSCurrencyField.class, "isFocusCycleRoot", "setFocusCycleRoot" );
219             properties[PROPERTY_focusCycleRootAncestor] = new PropertyDescriptor ( "focusCycleRootAncestor", SSCurrencyField.class, "getFocusCycleRootAncestor", null );
220             properties[PROPERTY_focusListeners] = new PropertyDescriptor ( "focusListeners", SSCurrencyField.class, "getFocusListeners", null );
221             properties[PROPERTY_focusLostBehavior] = new PropertyDescriptor ( "focusLostBehavior", SSCurrencyField.class, "getFocusLostBehavior", "setFocusLostBehavior" );
222             properties[PROPERTY_focusOwner] = new PropertyDescriptor ( "focusOwner", SSCurrencyField.class, "isFocusOwner", null );
223             properties[PROPERTY_focusTraversable] = new PropertyDescriptor ( "focusTraversable", SSCurrencyField.class, "isFocusTraversable", null );
224             properties[PROPERTY_focusTraversalKeys] = new IndexedPropertyDescriptor ( "focusTraversalKeys", SSCurrencyField.class, null, null, "getFocusTraversalKeys", "setFocusTraversalKeys" );
225             properties[PROPERTY_focusTraversalKeysEnabled] = new PropertyDescriptor ( "focusTraversalKeysEnabled", SSCurrencyField.class, "getFocusTraversalKeysEnabled", "setFocusTraversalKeysEnabled" );
226             properties[PROPERTY_focusTraversalPolicy] = new PropertyDescriptor ( "focusTraversalPolicy", SSCurrencyField.class, "getFocusTraversalPolicy", "setFocusTraversalPolicy" );
227             properties[PROPERTY_focusTraversalPolicyProvider] = new PropertyDescriptor ( "focusTraversalPolicyProvider", SSCurrencyField.class, "isFocusTraversalPolicyProvider", "setFocusTraversalPolicyProvider" );
228             properties[PROPERTY_focusTraversalPolicySet] = new PropertyDescriptor ( "focusTraversalPolicySet", SSCurrencyField.class, "isFocusTraversalPolicySet", null );
229             properties[PROPERTY_font] = new PropertyDescriptor ( "font", SSCurrencyField.class, "getFont", "setFont" );
230             properties[PROPERTY_fontSet] = new PropertyDescriptor ( "fontSet", SSCurrencyField.class, "isFontSet", null );
231             properties[PROPERTY_foreground] = new PropertyDescriptor ( "foreground", SSCurrencyField.class, "getForeground", "setForeground" );
232             properties[PROPERTY_foregroundSet] = new PropertyDescriptor ( "foregroundSet", SSCurrencyField.class, "isForegroundSet", null );
233             properties[PROPERTY_formatter] = new PropertyDescriptor ( "formatter", SSCurrencyField.class, "getFormatter", null );
234             properties[PROPERTY_formatterFactory] = new PropertyDescriptor ( "formatterFactory", SSCurrencyField.class, "getFormatterFactory", "setFormatterFactory" );
235             properties[PROPERTY_graphics] = new PropertyDescriptor ( "graphics", SSCurrencyField.class, "getGraphics", null );
236             properties[PROPERTY_graphicsConfiguration] = new PropertyDescriptor ( "graphicsConfiguration", SSCurrencyField.class, "getGraphicsConfiguration", null );
237             properties[PROPERTY_height] = new PropertyDescriptor ( "height", SSCurrencyField.class, "getHeight", null );
238             properties[PROPERTY_helper] = new PropertyDescriptor ( "helper", SSCurrencyField.class, null, "setHelper" );
239             properties[PROPERTY_helper].setPreferred ( true );
240             properties[PROPERTY_hierarchyBoundsListeners] = new PropertyDescriptor ( "hierarchyBoundsListeners", SSCurrencyField.class, "getHierarchyBoundsListeners", null );
241             properties[PROPERTY_hierarchyListeners] = new PropertyDescriptor ( "hierarchyListeners", SSCurrencyField.class, "getHierarchyListeners", null );
242             properties[PROPERTY_highlighter] = new PropertyDescriptor ( "highlighter", SSCurrencyField.class, "getHighlighter", "setHighlighter" );
243             properties[PROPERTY_horizontalAlignment] = new PropertyDescriptor ( "horizontalAlignment", SSCurrencyField.class, "getHorizontalAlignment", "setHorizontalAlignment" );
244             properties[PROPERTY_horizontalVisibility] = new PropertyDescriptor ( "horizontalVisibility", SSCurrencyField.class, "getHorizontalVisibility", null );
245             properties[PROPERTY_ignoreRepaint] = new PropertyDescriptor ( "ignoreRepaint", SSCurrencyField.class, "getIgnoreRepaint", "setIgnoreRepaint" );
246             properties[PROPERTY_inheritsPopupMenu] = new PropertyDescriptor ( "inheritsPopupMenu", SSCurrencyField.class, "getInheritsPopupMenu", "setInheritsPopupMenu" );
247             properties[PROPERTY_inputContext] = new PropertyDescriptor ( "inputContext", SSCurrencyField.class, "getInputContext", null );
248             properties[PROPERTY_inputMethodListeners] = new PropertyDescriptor ( "inputMethodListeners", SSCurrencyField.class, "getInputMethodListeners", null );
249             properties[PROPERTY_inputMethodRequests] = new PropertyDescriptor ( "inputMethodRequests", SSCurrencyField.class, "getInputMethodRequests", null );
250             properties[PROPERTY_inputVerifier] = new PropertyDescriptor ( "inputVerifier", SSCurrencyField.class, "getInputVerifier", "setInputVerifier" );
251             properties[PROPERTY_insets] = new PropertyDescriptor ( "insets", SSCurrencyField.class, "getInsets", null );
252             properties[PROPERTY_keyListeners] = new PropertyDescriptor ( "keyListeners", SSCurrencyField.class, "getKeyListeners", null );
253             properties[PROPERTY_keymap] = new PropertyDescriptor ( "keymap", SSCurrencyField.class, "getKeymap", "setKeymap" );
254             properties[PROPERTY_layout] = new PropertyDescriptor ( "layout", SSCurrencyField.class, "getLayout", "setLayout" );
255             properties[PROPERTY_lightweight] = new PropertyDescriptor ( "lightweight", SSCurrencyField.class, "isLightweight", null );
256             properties[PROPERTY_locale] = new PropertyDescriptor ( "locale", SSCurrencyField.class, "getLocale", "setLocale" );
257             properties[PROPERTY_locationOnScreen] = new PropertyDescriptor ( "locationOnScreen", SSCurrencyField.class, "getLocationOnScreen", null );
258             properties[PROPERTY_managingFocus] = new PropertyDescriptor ( "managingFocus", SSCurrencyField.class, "isManagingFocus", null );
259             properties[PROPERTY_margin] = new PropertyDescriptor ( "margin", SSCurrencyField.class, "getMargin", "setMargin" );
260             properties[PROPERTY_maximumSize] = new PropertyDescriptor ( "maximumSize", SSCurrencyField.class, "getMaximumSize", "setMaximumSize" );
261             properties[PROPERTY_maximumSizeSet] = new PropertyDescriptor ( "maximumSizeSet", SSCurrencyField.class, "isMaximumSizeSet", null );
262             properties[PROPERTY_minimumSize] = new PropertyDescriptor ( "minimumSize", SSCurrencyField.class, "getMinimumSize", "setMinimumSize" );
263             properties[PROPERTY_minimumSizeSet] = new PropertyDescriptor ( "minimumSizeSet", SSCurrencyField.class, "isMinimumSizeSet", null );
264             properties[PROPERTY_mouseListeners] = new PropertyDescriptor ( "mouseListeners", SSCurrencyField.class, "getMouseListeners", null );
265             properties[PROPERTY_mouseMotionListeners] = new PropertyDescriptor ( "mouseMotionListeners", SSCurrencyField.class, "getMouseMotionListeners", null );
266             properties[PROPERTY_mousePosition] = new PropertyDescriptor ( "mousePosition", SSCurrencyField.class, "getMousePosition", null );
267             properties[PROPERTY_mouseWheelListeners] = new PropertyDescriptor ( "mouseWheelListeners", SSCurrencyField.class, "getMouseWheelListeners", null );
268             properties[PROPERTY_name] = new PropertyDescriptor ( "name", SSCurrencyField.class, "getName", "setName" );
269             properties[PROPERTY_navigationFilter] = new PropertyDescriptor ( "navigationFilter", SSCurrencyField.class, "getNavigationFilter", "setNavigationFilter" );
270             properties[PROPERTY_navigator] = new PropertyDescriptor ( "navigator", SSCurrencyField.class, "getNavigator", "setNavigator" );
271             properties[PROPERTY_navigator].setPreferred ( true );
272             properties[PROPERTY_nextFocusableComponent] = new PropertyDescriptor ( "nextFocusableComponent", SSCurrencyField.class, "getNextFocusableComponent", "setNextFocusableComponent" );
273             properties[PROPERTY_opaque] = new PropertyDescriptor ( "opaque", SSCurrencyField.class, "isOpaque", "setOpaque" );
274             properties[PROPERTY_optimizedDrawingEnabled] = new PropertyDescriptor ( "optimizedDrawingEnabled", SSCurrencyField.class, "isOptimizedDrawingEnabled", null );
275             properties[PROPERTY_paintingTile] = new PropertyDescriptor ( "paintingTile", SSCurrencyField.class, "isPaintingTile", null );
276             properties[PROPERTY_parent] = new PropertyDescriptor ( "parent", SSCurrencyField.class, "getParent", null );
277             properties[PROPERTY_peer] = new PropertyDescriptor ( "peer", SSCurrencyField.class, "getPeer", null );
278             properties[PROPERTY_precision] = new PropertyDescriptor ( "precision", SSCurrencyField.class, "getPrecision", "setPrecision" );
279             properties[PROPERTY_precision].setPreferred ( true );
280             properties[PROPERTY_preferredScrollableViewportSize] = new PropertyDescriptor ( "preferredScrollableViewportSize", SSCurrencyField.class, "getPreferredScrollableViewportSize", null );
281             properties[PROPERTY_preferredSize] = new PropertyDescriptor ( "preferredSize", SSCurrencyField.class, "getPreferredSize", "setPreferredSize" );
282             properties[PROPERTY_preferredSizeSet] = new PropertyDescriptor ( "preferredSizeSet", SSCurrencyField.class, "isPreferredSizeSet", null );
283             properties[PROPERTY_propertyChangeListeners] = new PropertyDescriptor ( "propertyChangeListeners", SSCurrencyField.class, "getPropertyChangeListeners", null );
284             properties[PROPERTY_registeredKeyStrokes] = new PropertyDescriptor ( "registeredKeyStrokes", SSCurrencyField.class, "getRegisteredKeyStrokes", null );
285             properties[PROPERTY_requestFocusEnabled] = new PropertyDescriptor ( "requestFocusEnabled", SSCurrencyField.class, "isRequestFocusEnabled", "setRequestFocusEnabled" );
286             properties[PROPERTY_rootPane] = new PropertyDescriptor ( "rootPane", SSCurrencyField.class, "getRootPane", null );
287             properties[PROPERTY_rowSet] = new PropertyDescriptor ( "rowSet", SSCurrencyField.class, null, "setRowSet" );
288             properties[PROPERTY_rowSet].setExpert ( true );
289             properties[PROPERTY_rowSet].setPreferred ( true );
290             properties[PROPERTY_scrollableTracksViewportHeight] = new PropertyDescriptor ( "scrollableTracksViewportHeight", SSCurrencyField.class, "getScrollableTracksViewportHeight", null );
291             properties[PROPERTY_scrollableTracksViewportWidth] = new PropertyDescriptor ( "scrollableTracksViewportWidth", SSCurrencyField.class, "getScrollableTracksViewportWidth", null );
292             properties[PROPERTY_scrollOffset] = new PropertyDescriptor ( "scrollOffset", SSCurrencyField.class, "getScrollOffset", "setScrollOffset" );
293             properties[PROPERTY_selectedText] = new PropertyDescriptor ( "selectedText", SSCurrencyField.class, "getSelectedText", null );
294             properties[PROPERTY_selectedTextColor] = new PropertyDescriptor ( "selectedTextColor", SSCurrencyField.class, "getSelectedTextColor", "setSelectedTextColor" );
295             properties[PROPERTY_selectionColor] = new PropertyDescriptor ( "selectionColor", SSCurrencyField.class, "getSelectionColor", "setSelectionColor" );
296             properties[PROPERTY_selectionEnd] = new PropertyDescriptor ( "selectionEnd", SSCurrencyField.class, "getSelectionEnd", "setSelectionEnd" );
297             properties[PROPERTY_selectionStart] = new PropertyDescriptor ( "selectionStart", SSCurrencyField.class, "getSelectionStart", "setSelectionStart" );
298             properties[PROPERTY_showing] = new PropertyDescriptor ( "showing", SSCurrencyField.class, "isShowing", null );
299             properties[PROPERTY_text] = new PropertyDescriptor ( "text", SSCurrencyField.class, "getText", "setText" );
300             properties[PROPERTY_toolkit] = new PropertyDescriptor ( "toolkit", SSCurrencyField.class, "getToolkit", null );
301             properties[PROPERTY_toolTipText] = new PropertyDescriptor ( "toolTipText", SSCurrencyField.class, "getToolTipText", "setToolTipText" );
302             properties[PROPERTY_topLevelAncestor] = new PropertyDescriptor ( "topLevelAncestor", SSCurrencyField.class, "getTopLevelAncestor", null );
303             properties[PROPERTY_transferHandler] = new PropertyDescriptor ( "transferHandler", SSCurrencyField.class, "getTransferHandler", "setTransferHandler" );
304             properties[PROPERTY_treeLock] = new PropertyDescriptor ( "treeLock", SSCurrencyField.class, "getTreeLock", null );
305             properties[PROPERTY_UI] = new PropertyDescriptor ( "UI", SSCurrencyField.class, "getUI", "setUI" );
306             properties[PROPERTY_UIClassID] = new PropertyDescriptor ( "UIClassID", SSCurrencyField.class, "getUIClassID", null );
307             properties[PROPERTY_valid] = new PropertyDescriptor ( "valid", SSCurrencyField.class, "isValid", null );
308             properties[PROPERTY_validateRoot] = new PropertyDescriptor ( "validateRoot", SSCurrencyField.class, "isValidateRoot", null );
309             properties[PROPERTY_value] = new PropertyDescriptor ( "value", SSCurrencyField.class, "getValue", "setValue" );
310             properties[PROPERTY_verifyInputWhenFocusTarget] = new PropertyDescriptor ( "verifyInputWhenFocusTarget", SSCurrencyField.class, "getVerifyInputWhenFocusTarget", "setVerifyInputWhenFocusTarget" );
311             properties[PROPERTY_vetoableChangeListeners] = new PropertyDescriptor ( "vetoableChangeListeners", SSCurrencyField.class, "getVetoableChangeListeners", null );
312             properties[PROPERTY_visible] = new PropertyDescriptor ( "visible", SSCurrencyField.class, "isVisible", "setVisible" );
313             properties[PROPERTY_visibleRect] = new PropertyDescriptor ( "visibleRect", SSCurrencyField.class, "getVisibleRect", null );
314             properties[PROPERTY_width] = new PropertyDescriptor ( "width", SSCurrencyField.class, "getWidth", null );
315             properties[PROPERTY_x] = new PropertyDescriptor ( "x", SSCurrencyField.class, "getX", null );
316             properties[PROPERTY_y] = new PropertyDescriptor ( "y", SSCurrencyField.class, "getY", null );
317         }
318         catch( IntrospectionException e) {}//GEN-HEADEREND:Properties
319

320         // Here you can add code for customizing the properties array.
321

322         return properties; }//GEN-LAST:Properties
323

324     // Event set information will be obtained from introspection.//GEN-FIRST:Events
325
private static EventSetDescriptor[] eventSets = null;
326     private static EventSetDescriptor[] getEdescriptor(){//GEN-HEADEREND:Events
327

328         // Here you can add code for customizing the event sets array.
329

330         return eventSets; }//GEN-LAST:Events
331

332     // Method information will be obtained from introspection.//GEN-FIRST:Methods
333
private static MethodDescriptor[] methods = null;
334     private static MethodDescriptor[] getMdescriptor(){//GEN-HEADEREND:Methods
335

336         // Here you can add code for customizing the methods array.
337

338         return methods; }//GEN-LAST:Methods
339

340     
341     private static final int defaultPropertyIndex = -1;//GEN-BEGIN:Idx
342
private static final int defaultEventIndex = -1;//GEN-END:Idx
343

344     
345 //GEN-FIRST:Superclass
346

347     // Here you can add code for customizing the Superclass BeanInfo.
348

349 //GEN-LAST:Superclass
350

351     /**
352      * Gets the bean's <code>BeanDescriptor</code>s.
353      *
354      * @return BeanDescriptor describing the editable
355      * properties of this bean. May return null if the
356      * information should be obtained by automatic analysis.
357      */

358     public BeanDescriptor getBeanDescriptor() {
359         return getBdescriptor();
360     }
361     
362     /**
363      * Gets the bean's <code>PropertyDescriptor</code>s.
364      *
365      * @return An array of PropertyDescriptors describing the editable
366      * properties supported by this bean. May return null if the
367      * information should be obtained by automatic analysis.
368      * <p>
369      * If a property is indexed, then its entry in the result array will
370      * belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor.
371      * A client of getPropertyDescriptors can use "instanceof" to check
372      * if a given PropertyDescriptor is an IndexedPropertyDescriptor.
373      */

374     public PropertyDescriptor[] getPropertyDescriptors() {
375         return getPdescriptor();
376     }
377     
378     /**
379      * Gets the bean's <code>EventSetDescriptor</code>s.
380      *
381      * @return An array of EventSetDescriptors describing the kinds of
382      * events fired by this bean. May return null if the information
383      * should be obtained by automatic analysis.
384      */

385     public EventSetDescriptor[] getEventSetDescriptors() {
386         return getEdescriptor();
387     }
388     
389     /**
390      * Gets the bean's <code>MethodDescriptor</code>s.
391      *
392      * @return An array of MethodDescriptors describing the methods
393      * implemented by this bean. May return null if the information
394      * should be obtained by automatic analysis.
395      */

396     public MethodDescriptor[] getMethodDescriptors() {
397         return getMdescriptor();
398     }
399     
400     /**
401      * A bean may have a "default" property that is the property that will
402      * mostly commonly be initially chosen for update by human's who are
403      * customizing the bean.
404      * @return Index of default property in the PropertyDescriptor array
405      * returned by getPropertyDescriptors.
406      * <P> Returns -1 if there is no default property.
407      */

408     public int getDefaultPropertyIndex() {
409         return defaultPropertyIndex;
410     }
411     
412     /**
413      * A bean may have a "default" event that is the event that will
414      * mostly commonly be used by human's when using the bean.
415      * @return Index of default event in the EventSetDescriptor array
416      * returned by getEventSetDescriptors.
417      * <P> Returns -1 if there is no default event.
418      */

419     public int getDefaultEventIndex() {
420         return defaultEventIndex;
421     }
422 }
423
424
Popular Tags