fr.reseaumexico.editor.factorValue
Class FactorValueEditorFactory

java.lang.Object
  extended by fr.reseaumexico.editor.factorValue.FactorValueEditorFactory

public class FactorValueEditorFactory
extends Object

Factory used to open specific editor to input factor value

Since:
0.1
Author:
sletellier

Nested Class Summary
protected static class FactorValueEditorFactory.BooleanFactorValueInlineEditor
           
protected static class FactorValueEditorFactory.DecimalFactorValueInlineEditor
           
protected static class FactorValueEditorFactory.DefaultFactorValueInlineEditor
           
protected static interface FactorValueEditorFactory.FactorValueCellEditor<B>
           
protected static interface FactorValueEditorFactory.FactorValueCellRenderer
           
protected static class FactorValueEditorFactory.IntegerFactorValueInlineEditor
           
 
Field Summary
protected  Map<Factor,FactorValueEditorFactory.FactorValueCellEditor<?>> factorValueEditorCache
           
 
Constructor Summary
FactorValueEditorFactory()
           
 
Method Summary
 void clearCache()
           
 FactorValueEditorFactory.FactorValueCellEditor getCellEditor(Factor factor, Object value)
          Provide specific cell editor for factor value
 FactorValueEditor getDialogEditor(Factor factor, Object value)
          Provide specific JDialog editor for factor value
protected  FactorValueEditorFactory.FactorValueCellEditor<?> getFactorValueCellEditor(Factor factor)
           
 FactorValueEditorFactory.FactorValueCellRenderer getRenderedComponent(Factor factor, Object value)
          Provide a specific cell renderer for factor value
protected static String getStringValue(Object value)
           
protected  void setFactorValueCellEditor(Factor factor, FactorValueEditorFactory.FactorValueCellEditor<?> editor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factorValueEditorCache

protected Map<Factor,FactorValueEditorFactory.FactorValueCellEditor<?>> factorValueEditorCache
Constructor Detail

FactorValueEditorFactory

public FactorValueEditorFactory()
Method Detail

getDialogEditor

public FactorValueEditor getDialogEditor(Factor factor,
                                         Object value)
Provide specific JDialog editor for factor value

Parameters:
factor - concerned
value - value to edit
Returns:
FactorValueEditor contain editor to open as JDialog, null if cell editor must be used

getFactorValueCellEditor

protected FactorValueEditorFactory.FactorValueCellEditor<?> getFactorValueCellEditor(Factor factor)

setFactorValueCellEditor

protected void setFactorValueCellEditor(Factor factor,
                                        FactorValueEditorFactory.FactorValueCellEditor<?> editor)

getCellEditor

public FactorValueEditorFactory.FactorValueCellEditor getCellEditor(Factor factor,
                                                                    Object value)
Provide specific cell editor for factor value

Parameters:
factor - concerned
value - value to edit
Returns:
FactorValueCellEditor contain editor to display

getRenderedComponent

public FactorValueEditorFactory.FactorValueCellRenderer getRenderedComponent(Factor factor,
                                                                             Object value)
Provide a specific cell renderer for factor value

Parameters:
factor - concerned
value - value to edit
Returns:
FactorValueEditorFactory.FactorValueCellRenderer contain renderer to display

clearCache

public void clearCache()

getStringValue

protected static String getStringValue(Object value)


Copyright © 2011-2012 Code Lutin. All Rights Reserved.