IValueEditor.getConstantName

Overview | Methods | Fields | This Package | All Packages

IValueEditor.getConstantName

Retrieves the fully qualified name of a constant that represents the specified value.

Syntax

public String getConstantName( Object value )

Parameters

value

The value to retrieve the constant for.

Return Value

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.

Remarks

This method is typically used by a design-time environment that generates source code to initialize a component's properties.