Package com.cosylab.vdct.inspector
Class InspectorCellEditor
- java.lang.Object
-
- com.cosylab.vdct.inspector.InspectorCellEditor
-
- All Implemented Interfaces:
CellEditor
,TableCellEditor
,TreeCellEditor
public class InspectorCellEditor extends Object implements TableCellEditor, TreeCellEditor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
InspectorCellEditor.EditorDelegate
-
Field Summary
Fields Modifier and Type Field Description protected ChangeEvent
changeEvent
protected int
clickCountToStart
protected InspectorCellEditor.EditorDelegate
comboDelegate
protected InspectorCellEditor.EditorDelegate
delegate
protected JComponent
editorComponent
protected InspectorCellEditor.EditorDelegate
emptyDelegate
protected InspectorCellEditor.EditorDelegate
formattedTextfieldDelegate
protected HelpDisplayer
helpDisplayer
protected JComboBox
intelliComboBox
protected boolean
intelliEditor
protected JTextField
intelliFormattedTextField
protected JTextField
intelliTextField
protected EventListenerList
listenerList
Event listenersprotected Pattern
pattern
protected InspectableProperty
property
protected PropertyTableModel
tableModel
protected InspectorCellEditor.EditorDelegate
textfieldDelegate
-
Constructor Summary
Constructors Constructor Description InspectorCellEditor(PropertyTableModel tableModel, HelpDisplayer helpDisplayer)
Insert the method's description here.InspectorCellEditor(JCheckBox checkBox)
Constructs a InspectorCellEditor object that uses a check box.InspectorCellEditor(JComboBox comboBox)
Constructs a InspectorCellEditor object that uses a combo box.InspectorCellEditor(JTextField textField)
Constructs a InspectorCellEditor that uses a text field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCellEditorListener(CellEditorListener l)
Constructs a InspectorCellEditor that uses a text field.void
cancelCellEditing()
protected void
fireEditingCanceled()
protected void
fireEditingStopped()
Object
getCellEditorValue()
int
getClickCountToStart()
ClickCountToStart controls the number of clicks required to start editing.Component
getComponent()
Returns the a reference to the editor component.HelpDisplayer
getHelpDisplayer()
Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
Component
getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
boolean
isCellEditable(EventObject anEvent)
void
removeCellEditorListener(CellEditorListener l)
void
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
-
-
Field Detail
-
listenerList
protected EventListenerList listenerList
Event listeners
-
changeEvent
protected ChangeEvent changeEvent
-
intelliEditor
protected boolean intelliEditor
-
tableModel
protected PropertyTableModel tableModel
-
intelliComboBox
protected JComboBox intelliComboBox
-
comboDelegate
protected InspectorCellEditor.EditorDelegate comboDelegate
-
intelliTextField
protected JTextField intelliTextField
-
textfieldDelegate
protected InspectorCellEditor.EditorDelegate textfieldDelegate
-
intelliFormattedTextField
protected JTextField intelliFormattedTextField
-
formattedTextfieldDelegate
protected InspectorCellEditor.EditorDelegate formattedTextfieldDelegate
-
pattern
protected Pattern pattern
-
property
protected InspectableProperty property
-
editorComponent
protected JComponent editorComponent
-
delegate
protected InspectorCellEditor.EditorDelegate delegate
-
clickCountToStart
protected int clickCountToStart
-
emptyDelegate
protected InspectorCellEditor.EditorDelegate emptyDelegate
-
helpDisplayer
protected HelpDisplayer helpDisplayer
-
-
Constructor Detail
-
InspectorCellEditor
public InspectorCellEditor(PropertyTableModel tableModel, HelpDisplayer helpDisplayer)
Insert the method's description here. Creation date: (10.1.2001 16:03:29)- Parameters:
tableModel
- tableModelhelpDisplayer
- helpDisplayer
-
InspectorCellEditor
public InspectorCellEditor(JCheckBox checkBox)
Constructs a InspectorCellEditor object that uses a check box.- Parameters:
checkBox
- javax.swing.JCheckBox
-
InspectorCellEditor
public InspectorCellEditor(JComboBox comboBox)
Constructs a InspectorCellEditor object that uses a combo box.- Parameters:
comboBox
- javax.swing.JComboBox
-
InspectorCellEditor
public InspectorCellEditor(JTextField textField)
Constructs a InspectorCellEditor that uses a text field.- Parameters:
textField
- javax.swing.JTextField
-
-
Method Detail
-
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
Constructs a InspectorCellEditor that uses a text field.- Specified by:
addCellEditorListener
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing
in interfaceCellEditor
-
fireEditingCanceled
protected void fireEditingCanceled()
-
fireEditingStopped
protected void fireEditingStopped()
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getClickCountToStart
public int getClickCountToStart()
ClickCountToStart controls the number of clicks required to start editing.- Returns:
- something
-
getComponent
public Component getComponent()
Returns the a reference to the editor component.- Returns:
- the editor Component
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
- Specified by:
getTreeCellEditorComponent
in interfaceTreeCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject anEvent)
- Specified by:
isCellEditable
in interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
setClickCountToStart
public void setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.- Parameters:
count
- an int specifying the number of clicks needed to start editing- See Also:
getClickCountToStart()
-
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing
in interfaceCellEditor
-
getHelpDisplayer
public HelpDisplayer getHelpDisplayer()
- Returns:
- something
-
-