Class FeatureAwareEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.bidib.wizard.mvc.features.view.panel.FeatureAwareEditor
-
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor,RangeValidationCallback
public class FeatureAwareEditor extends AbstractCellEditor implements TableCellEditor, RangeValidationCallback
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description FeatureAwareEditor()Create a new instance of FeatureAwareEditor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCellEditorValue()intgetClickCountToStart()Returns the number of clicks needed to start editing.intgetMaxValue()intgetMinValue()ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)booleanisCellEditable(EventObject anEvent)Returns true ifanEventis not aMouseEvent.voidsetClickCountToStart(int count)Specifies the number of clicks needed to start editing.-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
-
-
-
Method Detail
-
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()
-
getClickCountToStart
public int getClickCountToStart()
Returns the number of clicks needed to start editing.- Returns:
- the number of clicks needed to start editing
-
isCellEditable
public boolean isCellEditable(EventObject anEvent)
Returns true ifanEventis not aMouseEvent. Otherwise, it returns true if the necessary number of clicks have occurred, and returns false otherwise.- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor- Parameters:
anEvent- the event- Returns:
- true if cell is ready for editing, false otherwise
- See Also:
setClickCountToStart(int),AbstractCellEditor.shouldSelectCell(java.util.EventObject)
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
getMinValue
public int getMinValue()
- Specified by:
getMinValuein interfaceRangeValidationCallback
-
getMaxValue
public int getMaxValue()
- Specified by:
getMaxValuein interfaceRangeValidationCallback
-
-