C# Class Castle.MonoRail.Framework.Helpers.WizardHelper

Provide useful helpers to be used in a layout view or in the wizards steps views.
Inheritance: HtmlHelper
显示文件 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
HasNextStep ( ) : bool

Returns true if the current wizard flow has a next step.

HasPreviousStep ( ) : bool

Returns true if the current wizard flow has an accessible previous step.

This will only return true if not the first step

LinkToNext ( String linkText ) : String

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, IDictionary attributes ) : String

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, object id ) : String

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, object id, IDictionary attributes ) : String

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasNextStep before calling this

LinkToPrevious ( String linkText ) : String

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, IDictionary attributes ) : String

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, object id ) : String

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, object id, IDictionary attributes ) : String

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToStep ( String linkText, WizardStepPage step ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

LinkToStep ( String linkText, WizardStepPage step, object id ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

LinkToStep ( String linkText, WizardStepPage step, object id, IDictionary attributes ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

Method Details

HasNextStep() public method

Returns true if the current wizard flow has a next step.
public HasNextStep ( ) : bool
return bool

HasPreviousStep() public method

Returns true if the current wizard flow has an accessible previous step.
This will only return true if not the first step
public HasPreviousStep ( ) : bool
return bool

LinkToNext() public method

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText ) : String
linkText String The label for the link
return String

LinkToNext() public method

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, IDictionary attributes ) : String
linkText String The label for the link
attributes IDictionary Additional attributes for the a tag.
return String

LinkToNext() public method

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, object id ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
return String

LinkToNext() public method

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, object id, IDictionary attributes ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
return String

LinkToPrevious() public method

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText ) : String
linkText String The label for the link
return String

LinkToPrevious() public method

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, IDictionary attributes ) : String
linkText String The label for the link
attributes IDictionary Additional attributes for the a tag.
return String

LinkToPrevious() public method

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, object id ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
return String

LinkToPrevious() public method

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, object id, IDictionary attributes ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
return String

LinkToStep() public method

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
return String

LinkToStep() public method

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step, object id ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
id object Object to use for the action ID argument.
return String

LinkToStep() public method

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step, object id, IDictionary attributes ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
return String