/// <summary>
        /// Adds a JavaScript statement that should be executed when the value changes.
        /// </summary>
        /// <param name="statementGetter">A function that takes the value expression and returns a complete statement. Do not pass null.</param>
        public void AddJsModificationStatement(Func <string, string> statementGetter)
        {
            // This dependency on EwfPage should not exist.
            EwfPage.AssertPageTreeNotBuilt();

            jsModificationStatements.Add(statementGetter);
        }
 /// <summary>
 /// Adds the element ID. This can only be called once.
 /// </summary>
 public void AddId(string id)
 {
     EwfPage.AssertPageTreeNotBuilt();
     if (this.id.Length > 0)
     {
         throw new ApplicationException("The ID was already added.");
     }
     this.id = id;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a JavaScript statement that should be executed when the value changes.
 /// </summary>
 /// <param name="statementGetter">A function that takes the value expression and returns a complete statement. Do not pass null.</param>
 public void AddJsModificationStatement(Func <string, string> statementGetter)
 {
     EwfPage.AssertPageTreeNotBuilt();
     jsModificationStatements.Add(statementGetter);
 }
 /// <summary>
 /// Adds an element ID to this set.
 /// </summary>
 public void AddId(string id)
 {
     EwfPage.AssertPageTreeNotBuilt();
     ids.Add(id);
 }