Web hosting domain names - Java Swing - O Reilly 27.2.4.1 Properties The DefaultCellEditor
Java Swing - O Reilly 27.2.4.1 Properties The DefaultCellEditor class contains the properties listed in Table 27.6. The cellEditorValue property contains the value of the cell editor. This value can be used or ignored when editing stops, depending on whether editing is stopped or canceled. The clickCountToStart property determines how many clicks it takes to begin editing a cell. For checkboxes and combo boxes, that values is 1; for text fields, the default value of this property is 2, meaning that the user has to double click to start editing. The component property contains the actual component that the cell editor returns when getTableCellEditorComponent() or getTreeCellEditorComponent() is called. Table 27.6, DefaultCellEditor Properties Property Data Type get is set bound Default Value cellEditorValue* Object null clickCountToStart int Determined by constructor component Component Determined by constructor 27.2.4.2 Events As dictated by the CellEditor interface, the DefaultCellEditor class implements the add and remove methods for cell editor listeners. It also provides these convenience methods for generating those events. protected void fireEditingStopped() protected void fireEditingCanceled() Both of these methods notify registered listeners that editing has stopped. The cell editor is listed as the source of these events. 27.2.4.3 Constructors You can create your own cell editor using any of the following constructors. You can pre-configure any of the components you pass in as well. For example, you might pass in a right-justified text field or a checkbox with custom icons. public DefaultCellEditor(JTextField x) public DefaultCellEditor(JCheckBox x) public DefaultCellEditor(JComboBox x) 27.2.4.4 Fields protected EventListenerList listenerList protected transient ChangeEvent changeEvent These fields support the cell edit events generated by the editor. The listenerList field stores the list of all registered listeners interested in hearing about stop or cancel events. The changeEvent field holds the single change event passed to listeners when events are fired. protected JComponent editorComponent This field contains the value for the component property. protected DefaultCellEditor.EditorDelegate delegate - 926
Check Tomcat Web Hosting services for best quality webspace to host your web application.