MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / convertValueToText

Method convertValueToText

unused/javax/swing/JTree.java:1599–1609  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

getNextMatchMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected