Package com._1c.g5.v8.dt.md.ui.extension
Enum Class MdExtensionUiConstants
- All Implemented Interfaces:
Serializable
,Comparable<MdExtensionUiConstants>
,Constable
Constants provider for Metadata UI extension
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetLabel
(MdPropertyState state) Returns the text for the label of the given property 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.swt.graphics.Image
getTypeImage
(PredefinedItemPropertyState 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.org.eclipse.jface.resource.ImageDescriptor
getTypeImageDescriptor
(PredefinedItemPropertyState state, boolean bordered) Returns the image descriptior for the specified property state.static MdExtensionUiConstants
Returns the enum constant of this class with the specified name.static MdExtensionUiConstants[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
Singleton instance ofMdExtensionUiConstants
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getLabel
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, never
null
, throw exception if there is no text label for the given object
-
getLabel
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, never
null
, throw exception if there is no text label for the given object
-
getTypeImage
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
-
getTypeImage
public org.eclipse.swt.graphics.Image getTypeImage(PredefinedItemPropertyState 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(PredefinedItemPropertyState 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
-