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
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

HasPreviousStep() public méthode

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
Résultat bool

LinkToNext() public méthode

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
Résultat String

LinkToNext() public méthode

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.
Résultat String

LinkToNext() public méthode

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.
Résultat String

LinkToNext() public méthode

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.
Résultat String

LinkToPrevious() public méthode

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
Résultat String

LinkToPrevious() public méthode

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.
Résultat String

LinkToPrevious() public méthode

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.
Résultat String

LinkToPrevious() public méthode

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.
Résultat String

LinkToStep() public méthode

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
Résultat String

LinkToStep() public méthode

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.
Résultat String

LinkToStep() public méthode

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.
Résultat String