- Changed ReflectionBasedDictionaryAdapter to ignore calls to Remove instead of throw...
[castle.git] / MonoRail / Castle.MonoRail.Framework / Views / Aspx / ControllerBinder / IControllerBinder.cs
blob4183765c9bc62b99998170b8041263c58fc7dd8d
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 #if NET
17 namespace Castle.MonoRail.Framework.Views.Aspx
19 using System.Web.UI;
21 /// <summary>
22 /// Pendent
23 /// </summary>
24 public interface IControllerBinder : IBindingScope
26 /// <summary>
27 /// Gets a value indicating whether [design mode].
28 /// </summary>
29 /// <value><c>true</c> if [design mode]; otherwise, <c>false</c>.</value>
30 bool DesignMode { get; }
32 /// <summary>
33 /// Gets the controller bindings.
34 /// </summary>
35 /// <value>The controller bindings.</value>
36 ControllerBindingCollection ControllerBindings { get; }
38 /// <summary>
39 /// Gets the action arguments.
40 /// </summary>
41 /// <value>The action arguments.</value>
42 ActionArgumentCollection ActionArguments { get; }
44 /// <summary>
45 /// Determines whether [is bindable control] [the specified control].
46 /// </summary>
47 /// <param name="control">The control.</param>
48 /// <returns>
49 /// <c>true</c> if [is bindable control] [the specified control]; otherwise, <c>false</c>.
50 /// </returns>
51 bool IsBindableControl(Control control);
53 /// <summary>
54 /// Adds the binding.
55 /// </summary>
56 /// <param name="control">The control.</param>
57 /// <returns></returns>
58 ControllerBinding AddBinding(Control control);
60 /// <summary>
61 /// Finds the control with ID.
62 /// </summary>
63 /// <param name="controlID">The control ID.</param>
64 /// <returns></returns>
65 Control FindControlWithID(string controlID);
67 /// <summary>
68 /// Gets the controller actions.
69 /// </summary>
70 /// <returns></returns>
71 string[] GetControllerActions();
75 #endif