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:
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of clicks needed to start editing.intintgetTableCellEditorComponent(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.voidshowValidationMarker(boolean show) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Constructor Details
-
FeatureAwareEditor
public FeatureAwareEditor()Create a new instance of FeatureAwareEditor
-
-
Method Details
-
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
public int getClickCountToStart()Returns the number of clicks needed to start editing.- Returns:
- the number of clicks needed to start editing
-
isCellEditable
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:
-
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
-
showValidationMarker
public void showValidationMarker(boolean show) - Specified by:
showValidationMarkerin interfaceRangeValidationCallback
-