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 classInspectorCellEditor.EditorDelegate
-
Field Summary
Fields Modifier and Type Field Description protected ChangeEventchangeEventprotected intclickCountToStartprotected InspectorCellEditor.EditorDelegatecomboDelegateprotected InspectorCellEditor.EditorDelegatedelegateprotected JComponenteditorComponentprotected InspectorCellEditor.EditorDelegateemptyDelegateprotected InspectorCellEditor.EditorDelegateformattedTextfieldDelegateprotected HelpDisplayerhelpDisplayerprotected JComboBoxintelliComboBoxprotected booleanintelliEditorprotected JTextFieldintelliFormattedTextFieldprotected JTextFieldintelliTextFieldprotected EventListenerListlistenerListEvent listenersprotected Patternpatternprotected InspectablePropertypropertyprotected PropertyTableModeltableModelprotected InspectorCellEditor.EditorDelegatetextfieldDelegate
-
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 voidaddCellEditorListener(CellEditorListener l)Constructs a InspectorCellEditor that uses a text field.voidcancelCellEditing()protected voidfireEditingCanceled()protected voidfireEditingStopped()ObjectgetCellEditorValue()intgetClickCountToStart()ClickCountToStart controls the number of clicks required to start editing.ComponentgetComponent()Returns the a reference to the editor component.HelpDisplayergetHelpDisplayer()ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)ComponentgetTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)booleanisCellEditable(EventObject anEvent)voidremoveCellEditorListener(CellEditorListener l)voidsetClickCountToStart(int count)Specifies the number of clicks needed to start editing.booleanshouldSelectCell(EventObject anEvent)booleanstopCellEditing()
-
-
-
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:
addCellEditorListenerin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditingin interfaceCellEditor
-
fireEditingCanceled
protected void fireEditingCanceled()
-
fireEditingStopped
protected void fireEditingStopped()
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValuein 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:
getTableCellEditorComponentin interfaceTableCellEditor
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
- Specified by:
getTreeCellEditorComponentin interfaceTreeCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject anEvent)
- Specified by:
isCellEditablein interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListenerin 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:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfaceCellEditor
-
getHelpDisplayer
public HelpDisplayer getHelpDisplayer()
- Returns:
- something
-
-