Retrieves the fully qualified name of a constant that represents the specified value.
public String getConstantName( Object value )
value
The value to retrieve the constant for.
Returns the fully qualified class name, followed by a period, followed by the name of a public static final field in the class; for example, "com.ms.wfc.ui.Color.BLACK". If no constant represents the specified value, null is returned.
This method is typically used by a design-time environment that generates source code to initialize a component's properties.