1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
17 namespace Castle
.MonoRail
.Framework
.Views
.Aspx
24 public interface IControllerBinder
: IBindingScope
27 /// Gets a value indicating whether [design mode].
29 /// <value><c>true</c> if [design mode]; otherwise, <c>false</c>.</value>
30 bool DesignMode { get; }
33 /// Gets the controller bindings.
35 /// <value>The controller bindings.</value>
36 ControllerBindingCollection ControllerBindings { get; }
39 /// Gets the action arguments.
41 /// <value>The action arguments.</value>
42 ActionArgumentCollection ActionArguments { get; }
45 /// Determines whether [is bindable control] [the specified control].
47 /// <param name="control">The control.</param>
49 /// <c>true</c> if [is bindable control] [the specified control]; otherwise, <c>false</c>.
51 bool IsBindableControl(Control control
);
56 /// <param name="control">The control.</param>
57 /// <returns></returns>
58 ControllerBinding
AddBinding(Control control
);
61 /// Finds the control with ID.
63 /// <param name="controlID">The control ID.</param>
64 /// <returns></returns>
65 Control
FindControlWithID(string controlID
);
68 /// Gets the controller actions.
70 /// <returns></returns>
71 string[] GetControllerActions();