ilog.rules.studio.ui.propertysheet

Class IlrModelAdapter

  • java.lang.Object
    • ilog.rules.studio.ui.propertysheet.IlrModelAdapter


  • public abstract class IlrModelAdapter
    extends java.lang.Object
    IlrModelAdapter allows the user to define a mapping between objects stored in the model and the strings displayed in the property sheet.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrModelAdapter() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getEditorValue(java.lang.Object value)
      Transforms an object into a string value that can be displayed by a property sheet.
      abstract java.lang.Object getModelValue(java.lang.String value)
      Transforms a string value displayed in the property sheet into an value which can be stored into the Rule Model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrModelAdapter

        public IlrModelAdapter()
    • Method Detail

      • getEditorValue

        public java.lang.String getEditorValue(java.lang.Object value)
        Transforms an object into a string value that can be displayed by a property sheet.

        This default implementation calls toString() on the value to return a string value.

        Parameters:
        value - A value in the model.
        Returns:
        The value for the cell editor.
      • getModelValue

        public abstract java.lang.Object getModelValue(java.lang.String value)
        Transforms a string value displayed in the property sheet into an value which can be stored into the Rule Model.
        Parameters:
        value - A value in the cell editor.
        Returns:
        The value to set in the model.

© Copyright IBM Corp. 1987, 2017