Class LDEditor
java.lang.Object
javax.swing.AbstractCellEditor
jmva.LDEditor
- All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor
An editor for LD service times. Uses a JDialog to perform editing.
- See Also:
-
Field Summary
Fields inherited from class AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancels cell editing.voidvoidintgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) should never be calledbooleanborrowed fromDefaultCellEditorvoidsetClicksToEdit(int clicksToEdit) voidsets the data for the editor windowvoidstartEditing(JTable table, int row) Initializes the editing window and sets it up at the correct location;booleanstops cell editing.Methods inherited from class AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCellMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CellEditor
addCellEditorListener, removeCellEditorListener, shouldSelectCell
-
Constructor Details
-
LDEditor
-
-
Method Details
-
stopCellEditing
public boolean stopCellEditing()stops cell editing. calls fireEditingStopped()- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classAbstractCellEditor
-
cancelCellEditing
public void cancelCellEditing()cancels cell editing. calls fireEditingCanceled()- Specified by:
cancelCellEditingin interfaceCellEditor- Overrides:
cancelCellEditingin classAbstractCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor- Returns:
- the edited matrix of service times
-
setStatus
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) should never be called- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
startEditing
Initializes the editing window and sets it up at the correct location; -
isCellEditable
borrowed fromDefaultCellEditor- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-
editingCanceled
public void editingCanceled()- See Also:
-
editingStopped
public void editingStopped()- See Also:
-
getClicksToEdit
public int getClicksToEdit() -
setClicksToEdit
public void setClicksToEdit(int clicksToEdit)
-