|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.sort.StringValueRegistry
public final class StringValueRegistry
A writable implemenation of StringValueProvider. Typically, this is created and maintained by a collection view and then passed over to interested parties. It is modeled/implemented after the default renderer maintenance in a JTable.
PENDING JW: for safety - better not implement but return a provider. We probably don't want readers to frickle around here?.
Constructor Summary | |
---|---|
StringValueRegistry()
|
Method Summary | |
---|---|
void |
clearColumnStringValues()
Removes all per-column mappings of StringValues. |
StringValue |
getStringValue(Class<?> clazz)
Returns the StringValue registered for the given class. |
StringValue |
getStringValue(int row,
int column)
Returns a StringValue to use for conversion of the cell content at row and column. |
void |
setColumnClass(Class<?> clazz,
int column)
Sets the column class. |
void |
setColumnClasses(Map<Integer,Class<?>> classPerColumn)
|
void |
setStringValue(StringValue sv,
Class<?> clazz)
Sets the StringValue to use for the given class. |
void |
setStringValue(StringValue sv,
int column)
Sets a StringValue to use for the given column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringValueRegistry()
Method Detail |
---|
public StringValue getStringValue(int row, int column)
getStringValue
in interface StringValueProvider
row
- the row of the cell in model coordinatescolumn
- the column of the cell in model coordinates
public void setStringValue(StringValue sv, int column)
sv
- the StringValue to use for the given column.column
- the column index in model coordinates.public void clearColumnStringValues()
public void setStringValue(StringValue sv, Class<?> clazz)
sv
- the StringValue to use for the given column.clazz
- the classpublic StringValue getStringValue(Class<?> clazz)
This is temporarily exposed for testing only - do not use, it will be removed very soon!
clazz
- the class to find the registered StringValue for
public void setColumnClass(Class<?> clazz, int column)
clazz
- column
- index in model coordinatespublic void setColumnClasses(Map<Integer,Class<?>> classPerColumn)
classPerColumn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |