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:
ScriptParametersTableCellEditor

public class ParameterTableCellEditor
extends AbstractCellEditor
implements TableCellEditor

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

Field Summary
protected  Component editor
           
protected  RegionStorage regionStorage
           
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()
          Return region storage.
 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 setRegionStorage(RegionStorage regionStorage)
          Set region storage.
 
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

regionStorage

protected RegionStorage regionStorage

editor

protected Component editor

type

protected Class<?> type
Constructor Detail

ParameterTableCellEditor

public ParameterTableCellEditor()
Method Detail

getRegion

public RegionStorage getRegion()
Return region storage.

Returns:
returns the region storage.

setRegionStorage

public void setRegionStorage(RegionStorage regionStorage)
Set region storage.

Parameters:
regionStorage - the region storage 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-2012 CodeLutin. All Rights Reserved.