C# Class Habanero.Faces.Win.ButtonGroupControlWin

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

Public Methods

Method 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 method

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
return IButton

AddButton() public method

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
return IButton

AddButton() public method

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
return IButton

ButtonGroupControlWin() public method

Constructor for the ButtonGroupControlWin
public ButtonGroupControlWin ( IControlFactory controlFactory ) : System
controlFactory IControlFactory
return System

SetDefaultButton() public method

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
return void

this() public method

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
return IButton