visidia.misc.property.cell
Class DoubleCell

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by visidia.misc.property.cell.CellViewer
          extended by visidia.misc.property.cell.DoubleCell
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.table.TableCellRenderer

public class DoubleCell
extends CellViewer

DoubleCell is the class for editing and rendering in a JTable a cell containing a double.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
DoubleCell()
          Instantiates a new double cell.
DoubleCell(java.lang.Double value)
          Instantiates a new double cell.
DoubleCell(java.lang.Double value, boolean isEditable)
          Instantiates a new double cell.
DoubleCell(java.lang.Double value, boolean isEditable, java.lang.Double dMin, java.lang.Double dMax, java.lang.Double idValue, java.lang.Double dDecimal)
          Instantiates a new double cell.
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 javax.swing.table.TableCellEditor getEditor()
          Gets the editor.
 javax.swing.table.TableCellRenderer getRenderer()
          Gets the renderer.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable oTable, java.lang.Object oValue, boolean arg2, int iRow, int iColumn)
           
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable arg0, java.lang.Object oValue, boolean arg2, boolean arg3, int arg4, int arg5)
           
 void setDecimal(java.lang.Double dDecimal)
          Sets the decimal.
 void setMax(java.lang.Double dMax)
          Sets the max.
 void setMin(java.lang.Double dMin)
          Sets the min.
 void setValue(java.lang.Double dValue)
          Sets the value.
 
Methods inherited from class visidia.misc.property.cell.CellViewer
getEditable, getValue, setEditable, setValue
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, 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, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

DoubleCell

public DoubleCell()
Instantiates a new double cell.


DoubleCell

public DoubleCell(java.lang.Double value)
Instantiates a new double cell.

Parameters:
value - the value

DoubleCell

public DoubleCell(java.lang.Double value,
                  boolean isEditable)
Instantiates a new double cell.

Parameters:
value - the value
isEditable - the is editable

DoubleCell

public DoubleCell(java.lang.Double value,
                  boolean isEditable,
                  java.lang.Double dMin,
                  java.lang.Double dMax,
                  java.lang.Double idValue,
                  java.lang.Double dDecimal)
Instantiates a new double cell.

Parameters:
value - the value
isEditable - the editable status
dMin - the d min
dMax - the d max
idValue - the id value
dDecimal - the d decimal
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable oTable,
                                                      java.lang.Object oValue,
                                                      boolean arg2,
                                                      int iRow,
                                                      int iColumn)

getCellEditorValue

public java.lang.Object getCellEditorValue()

setDecimal

public void setDecimal(java.lang.Double dDecimal)
Sets the decimal.

Parameters:
dDecimal - the new decimal

setMin

public void setMin(java.lang.Double dMin)
Sets the min.

Parameters:
dMin - the new min

setMax

public void setMax(java.lang.Double dMax)
Sets the max.

Parameters:
dMax - the new max

setValue

public void setValue(java.lang.Double dValue)
Sets the value.

Parameters:
dValue - the new value

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable arg0,
                                                        java.lang.Object oValue,
                                                        boolean arg2,
                                                        boolean arg3,
                                                        int arg4,
                                                        int arg5)

getEditor

public javax.swing.table.TableCellEditor getEditor()
Description copied from class: CellViewer
Gets the editor.

Specified by:
getEditor in class CellViewer
Returns:
the editor

getRenderer

public javax.swing.table.TableCellRenderer getRenderer()
Description copied from class: CellViewer
Gets the renderer.

Specified by:
getRenderer in class CellViewer
Returns:
the renderer