Interface IlrPropertyExtension


public interface IlrPropertyExtension
Interface for changing the behavior of an extended property in Rule Studio and Rule Team Server. You can provide an implementation of this interface and attach it to Rule Studio through the ilog.rules.studio.ui.propertyExtension extension point.
  • Method Details

    • isHidden

      boolean isHidden(IlrElement element, String property)
      Hides this property in the Properties view.
      Parameters:
      element - An instance of IlrElement.
      property - The property to be hidden.
      Returns:
      true when the property should be hidden, false otherwise.
    • afterChange

      void afterChange(IlrElement element, String property)
      Performs this action after the property has been changed in the Properties view.
      Parameters:
      element - An instance of IlrElement.
      property - The property.
    • getPossibleValues

      List getPossibleValues(IlrElement element, String property)
      Gets the possible input values for this enumerated property. This method is called only for enumerated type properties and controls the behavior of the Properties view.
      Parameters:
      element - An instance of IlrElement.
      property - The property.
      Returns:
      The list of possible values.
    • isEditable

      boolean isEditable(IlrElement element, String property)
      Defines whether this property is editable in the Properties view.
      Parameters:
      element - An instance of IlrElement.
      property - The property.
      Returns:
      true when property should be editable, false otherwise.
    • isValid

      String isValid(IlrElement element, String property, Object value)
      Defines whether this value is valid or not for this property. If the value is invalid then the Properties view displays an error message.
      Parameters:
      element - An instance of IlrElement.
      property - The property.
      value - The value of the property.
      Returns:
      An error message when value is not valid, null otherwise.