C# Class Habanero.Faces.Win.ButtonGroupControlWin

Manages a group of buttons that display next to each other
Inheritance: PanelWin, IButtonGroupControl
Afficher le fichier Open project: Chillisoft/habanero.faces

Méthodes publiques

Méthode Description
AddButton ( string buttonName ) : IButton

Adds a new button to the control with a specified name

AddButton ( string buttonName, EventHandler clickHandler ) : IButton

Adds a new button to the control with a specified name and with an attached event handler to carry out further actions if the button is pressed

AddButton ( string buttonName, string buttonText, EventHandler clickHandler ) : IButton

Adds a new button to the control with a specified name, specified text and with an attached event handler to carry out further actions if the button is pressed

ButtonGroupControlWin ( IControlFactory controlFactory ) : System

Constructor for the ButtonGroupControlWin

SetDefaultButton ( string buttonName ) : void

Sets the default button in this control that would be chosen if the user pressed Enter without changing the focus

this ( string buttonName ) : IButton

A facility to index the buttons in the control so that they can be accessed like an array (eg. button["name"])

Method Details

AddButton() public méthode

Adds a new button to the control with a specified name
public AddButton ( string buttonName ) : IButton
buttonName string The name to appear on the button
Résultat IButton

AddButton() public méthode

Adds a new button to the control with a specified name and with an attached event handler to carry out further actions if the button is pressed
public AddButton ( string buttonName, EventHandler clickHandler ) : IButton
buttonName string The name to appear on the button
clickHandler EventHandler The method that handles the Click event
Résultat IButton

AddButton() public méthode

Adds a new button to the control with a specified name, specified text and with an attached event handler to carry out further actions if the button is pressed
public AddButton ( string buttonName, string buttonText, EventHandler clickHandler ) : IButton
buttonName string The name that the button is created with
buttonText string The text to appear on the button
clickHandler EventHandler The method that handles the Click event
Résultat IButton

ButtonGroupControlWin() public méthode

Constructor for the ButtonGroupControlWin
public ButtonGroupControlWin ( IControlFactory controlFactory ) : System
controlFactory IControlFactory
Résultat System

SetDefaultButton() public méthode

Sets the default button in this control that would be chosen if the user pressed Enter without changing the focus
public SetDefaultButton ( string buttonName ) : void
buttonName string The name of the button
Résultat void

this() public méthode

A facility to index the buttons in the control so that they can be accessed like an array (eg. button["name"])
public this ( string buttonName ) : IButton
buttonName string The name of the button
Résultat IButton