Called by the renderers to convert the specified value to text. This implementation returns value.toString , ignoring all other arguments. To control the conversion, subclass this method and use any of the arguments you need. @param value the Object to convert to text @para
(Object value, boolean selected,
boolean expanded, boolean leaf, int row,
boolean hasFocus)
| 1597 | * @return the <code>String</code> representation of the node's value |
| 1598 | */ |
| 1599 | public String convertValueToText(Object value, boolean selected, |
| 1600 | boolean expanded, boolean leaf, int row, |
| 1601 | boolean hasFocus) { |
| 1602 | if(value != null) { |
| 1603 | String sValue = value.toString(); |
| 1604 | if (sValue != null) { |
| 1605 | return sValue; |
| 1606 | } |
| 1607 | } |
| 1608 | return ""; |
| 1609 | } |
| 1610 | |
| 1611 | // |
| 1612 | // The following are convenience methods that get forwarded to the |