org.tridas.io.gui.components
Class DefaultFieldEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.tridas.io.gui.components.DefaultFieldEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class DefaultFieldEditor
extends AbstractCellEditor
implements TableCellEditor

Author:
daniel
See Also:
Serialized Form

Nested Class Summary
static class DefaultFieldEditor.AbstractEditorDelegate
          The protected EditorDelegate class.
 
Field Summary
 DefaultFieldEditor.AbstractEditorDelegate delegate
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
DefaultFieldEditor()
           
 
Method Summary
 void cancelCellEditing()
          Forwards the message from the CellEditor to the delegate.
 Object getCellEditorValue()
          Forwards the message from the CellEditor to the delegate.
 Component getTableCellEditorComponent(JTable argTable, Object argValue, boolean argIsSelected, int argRow, int argColumn)
           
 boolean isCellEditable(EventObject anEvent)
           
 boolean shouldSelectCell(EventObject anEvent)
          Forwards the message from the CellEditor to the delegate.
 boolean stopCellEditing()
          Forwards the message from the CellEditor to the delegate.
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
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, removeCellEditorListener
 

Field Detail

delegate

public DefaultFieldEditor.AbstractEditorDelegate delegate
Constructor Detail

DefaultFieldEditor

public DefaultFieldEditor()
Method Detail

getCellEditorValue

public Object getCellEditorValue()
Forwards the message from the CellEditor to the delegate.

Specified by:
getCellEditorValue in interface CellEditor
See Also:
DefaultFieldEditor.AbstractEditorDelegate.getCellEditorValue()

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class AbstractCellEditor

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Forwards the message from the CellEditor to the delegate.

Specified by:
shouldSelectCell in interface CellEditor
Overrides:
shouldSelectCell in class AbstractCellEditor
See Also:
DefaultFieldEditor.AbstractEditorDelegate.shouldSelectCell(EventObject)

stopCellEditing

public boolean stopCellEditing()
Forwards the message from the CellEditor to the delegate.

Specified by:
stopCellEditing in interface CellEditor
Overrides:
stopCellEditing in class AbstractCellEditor
See Also:
DefaultFieldEditor.AbstractEditorDelegate.stopCellEditing()

cancelCellEditing

public void cancelCellEditing()
Forwards the message from the CellEditor to the delegate.

Specified by:
cancelCellEditing in interface CellEditor
Overrides:
cancelCellEditing in class AbstractCellEditor
See Also:
DefaultFieldEditor.AbstractEditorDelegate.cancelCellEditing()

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable argTable,
                                             Object argValue,
                                             boolean argIsSelected,
                                             int argRow,
                                             int argColumn)
Specified by:
getTableCellEditorComponent in interface TableCellEditor
See Also:
TableCellEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)


Copyright © 2011. All Rights Reserved.