Package com._1c.g5.v8.dt.md.ui.extension
Enum MdExtensionUiConstants
- java.lang.Object
-
- java.lang.Enum<MdExtensionUiConstants>
-
- com._1c.g5.v8.dt.md.ui.extension.MdExtensionUiConstants
-
- All Implemented Interfaces:
Serializable
,Comparable<MdExtensionUiConstants>
public enum MdExtensionUiConstants extends Enum<MdExtensionUiConstants>
Constants provider for Metadata UI extension
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
Singleton instance ofMdExtensionUiConstants
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel(MdPropertyState state)
Returns the text for the label of the given property state.org.eclipse.swt.graphics.Image
getTypeImage(MdPropertyState state, boolean bordered)
Returns the image for the specified property state.org.eclipse.jface.resource.ImageDescriptor
getTypeImageDescriptor(MdPropertyState state, boolean bordered)
Returns the image descriptior for the specified property state.static MdExtensionUiConstants
valueOf(String name)
Returns the enum constant of this type with the specified name.static MdExtensionUiConstants[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MdExtensionUiConstants INSTANCE
Singleton instance ofMdExtensionUiConstants
-
-
Method Detail
-
values
public static MdExtensionUiConstants[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MdExtensionUiConstants c : MdExtensionUiConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MdExtensionUiConstants valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLabel
public String getLabel(MdPropertyState state)
Returns the text for the label of the given property state.- Parameters:
state
- the property statefor which to provide the label text, cannot benull
- Returns:
- the text string used to label the property state, or
null
if there is no text label for the given object
-
getTypeImage
public org.eclipse.swt.graphics.Image getTypeImage(MdPropertyState state, boolean bordered)
Returns the image for the specified property state.- Parameters:
state
- the property state, cannot benull
bordered
- flag to get bordered image or not- Returns:
- the image for the specified property state or
null
if image not found or state equals NONE with no border
-
getTypeImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getTypeImageDescriptor(MdPropertyState state, boolean bordered)
Returns the image descriptior for the specified property state.- Parameters:
state
- the property state, cannot benull
bordered
- flag to get bordered image or not- Returns:
- the image descriptior for the specified property state or
null
if image not found or state equals NONE with no border
-
-