KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

14 public class SSFormattedTextFieldBeanInfo extends SimpleBeanInfo {
15     
16     // Bean descriptor//GEN-FIRST:BeanDescriptor
17
/*lazy BeanDescriptor*/
18     private static BeanDescriptor getBdescriptor(){
19         BeanDescriptor beanDescriptor = new BeanDescriptor ( SSFormattedTextField.class , SSFormattedTextFieldCustomizer.class );
20         beanDescriptor.setDisplayName ( "SwingSet's SSFormattedTextField" );
21         beanDescriptor.setShortDescription ( "A FormattedTextField bound to a jdbc column" );//GEN-HEADEREND:BeanDescriptor
22

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

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

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

317         // Here you can add code for customizing the properties array.
318

319         return properties; }//GEN-LAST:Properties
320

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

325         // Here you can add code for customizing the event sets array.
326

327         return eventSets; }//GEN-LAST:Events
328

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

333         // Here you can add code for customizing the methods array.
334

335         return methods; }//GEN-LAST:Methods
336

337     
338     private static final int defaultPropertyIndex = -1;//GEN-BEGIN:Idx
339
private static final int defaultEventIndex = -1;//GEN-END:Idx
340

341     
342 //GEN-FIRST:Superclass
343

344     // Here you can add code for customizing the Superclass BeanInfo.
345

346 //GEN-LAST:Superclass
347

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

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

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

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

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

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

416     public int getDefaultEventIndex() {
417         return defaultEventIndex;
418     }
419 }
420
421
Popular Tags