public class CellEditorManager
extends java.lang.Object
Another similar class is CellRendererManager
. See
it for more information.
CellRendererManager
,
TPropertysheet}
,
TTable}
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
attributeToEditorCache |
protected java.util.Map |
registry |
protected java.util.Map |
typeToEditorCache |
Constructor and Description |
---|
CellEditorManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clear all cached information.
|
javax.swing.table.TableCellEditor |
findEditor(java.lang.Class propertyType)
Find a registered cell editor.
|
javax.swing.table.TableCellEditor |
findEditor(ElementAttribute attribute,
java.lang.Object cellValue)
Find a registered cell editor.
|
void |
registerEditor(java.lang.Class propertyType,
java.lang.Class editorClass)
Register a cell editor for a property type.
|
void |
registerEditor(java.lang.Class propertyType,
java.lang.String editorClass)
Register a cell editor for a property type.
|
protected java.util.Map registry
protected java.util.Map typeToEditorCache
protected java.util.Map attributeToEditorCache
public void registerEditor(java.lang.Class propertyType, java.lang.Class editorClass)
propertyType
- Class property typeeditorClass
- Class cell editor for this property typepublic void registerEditor(java.lang.Class propertyType, java.lang.String editorClass)
propertyType
- Class property typeeditorClass
- String editor class name for this property typepublic void clearCache()
public javax.swing.table.TableCellEditor findEditor(ElementAttribute attribute, java.lang.Object cellValue)
attribute
- ElementAttribute an element attribute indicate the propertycellValue
- Object cell value, that is, property value.public javax.swing.table.TableCellEditor findEditor(java.lang.Class propertyType)
propertyType
- Class property type. That is, the cell value class typeCopyright © 2002 - 2010 Serva Software. All Rights Reserved.