Enum Class MdExtensionUiConstants

java.lang.Object
java.lang.Enum<MdExtensionUiConstants>
com._1c.g5.v8.dt.md.ui.extension.MdExtensionUiConstants
All Implemented Interfaces:
Serializable, Comparable<MdExtensionUiConstants>, Constable

public enum MdExtensionUiConstants extends Enum<MdExtensionUiConstants>
Constants provider for Metadata UI extension
  • Enum Constant Details

  • Method Details

    • values

      public static MdExtensionUiConstants[] 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

      public static MdExtensionUiConstants valueOf(String name)
      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 name
      NullPointerException - 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 be null
      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

      public String getLabel(PredefinedItemPropertyState state)
      Returns the text for the label of the given property state.
      Parameters:
      state - the property statefor which to provide the label text, cannot be null
      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

      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 be null
      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 be null
      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 be null
      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 be null
      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