fr.ifremer.isisfish.ui.widget.editor
Class ParameterTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by fr.ifremer.isisfish.ui.widget.editor.ParameterTableCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor
Direct Known Subclasses:
AnalyzePlanParametersTableCellEditor, ExportParametersTableCellEditor, RuleParametersTableCellEditor, SensitivityCalculatorParametersTableCellEditor, SensitivityExportParametersTableCellEditor

public class ParameterTableCellEditor
extends AbstractCellEditor
implements TableCellEditor

ParameterTableCellEditor. Un editeur generic de champs qui se base sur le model de données a editer. Created: 25 sept. 06 12:35:21

Version:
$Revision: 2336 $ Last update: $Date: 2009-06-08 14:47:41 +0200 (lun. 08 juin 2009) $ by : $Author: chatellier $
Author:
poussin, chemit
See Also:
Serialized Form

Nested Class Summary
static class ParameterTableCellEditor.DateComponent
           
 
Field Summary
protected  Component editor
           
protected  RegionStorage region
           
protected  Class<?> type
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ParameterTableCellEditor()
           
 
Method Summary
 Object getCellEditorValue()
           
protected  int getComboBoxIndex(Component editor)
           
protected  Object getComboBoxValue(Component editor)
           
protected  ActionListener getComboListener()
           
 RegionStorage getRegion()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
protected  Object getTextFieldValue(Component editor)
           
protected  Class<?> getType(Object value, int row, int column)
          Get type for value.
 void setRegion(RegionStorage region)
           
 
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
 

Field Detail

region

protected RegionStorage region

editor

protected Component editor

type

protected Class<?> type
Constructor Detail

ParameterTableCellEditor

public ParameterTableCellEditor()
Method Detail

getRegion

public RegionStorage getRegion()
Returns:
Returns the topiaContext.

setRegion

public void setRegion(RegionStorage region)
Parameters:
region - The topiaContext to set.

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor

getType

protected Class<?> getType(Object value,
                           int row,
                           int column)
Get type for value. Must be overridden (value can be null).

Parameters:
value -
row -
column -
Returns:
type for value

getComboListener

protected ActionListener getComboListener()

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

getTextFieldValue

protected Object getTextFieldValue(Component editor)

getComboBoxValue

protected Object getComboBoxValue(Component editor)

getComboBoxIndex

protected int getComboBoxIndex(Component editor)


Copyright © 1999-2011 CodeLutin. All Rights Reserved.