Class FlagEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.bidib.wizard.mvc.main.view.table.FlagEditor
-
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor
public class FlagEditor extends AbstractCellEditor implements TableCellEditor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JTextFieldtextField-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description FlagEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCellEditorValue()intgetClickCountToStart()Returns the number of clicks needed to start editing.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
-
-
-
-
Field Detail
-
textField
protected final JTextField textField
-
-
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
-
-