Class FlagEditor
java.lang.Object
javax.swing.AbstractCellEditor
org.bidib.wizard.mvc.main.view.table.FlagEditor
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of clicks needed to start editing.getTableCellEditorComponent(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, 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
-
Field Details
-
textField
-
-
Constructor Details
-
FlagEditor
public FlagEditor()
-
-
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
-