Class XBeeSettingCombo
This class represents an XBee setting that can be interacted with through a combo.
Implements
Inherited Members
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public class XBeeSettingCombo : AbstractXBeeSetting, ICloneable
Constructors
XBeeSettingCombo(String, String, String, String, XBeeCategory, XBeeFirmware)
Class constructor. Instantiates a new XBeeSettingCombo object with the provided parameters.
Declaration
public XBeeSettingCombo(string atCommand, string name, string description, string defaultValue, XBeeCategory category, XBeeFirmware ownerFirmware)
Parameters
Type | Name | Description |
---|---|---|
System.String | atCommand | The AT command corresponding to the setting. |
System.String | name | Name of the setting. |
System.String | description | Description of the setting. |
System.String | defaultValue | Default value of the setting. |
XBeeCategory | category | Parent category of the setting. |
XBeeFirmware | ownerFirmware | XBee firmware the setting belongs to. |
See Also
XBeeSettingCombo(String, String, String, String, XBeeCategory, XBeeFirmware, Int32)
Class constructor. Instantiates a new XBeeSettingCombo object with the provided parameters.
Declaration
public XBeeSettingCombo(string atCommand, string name, string description, string defaultValue, XBeeCategory category, XBeeFirmware ownerFirmware, int numNetworks)
Parameters
Type | Name | Description |
---|---|---|
System.String | atCommand | The AT command corresponding to the setting. |
System.String | name | Name of the setting. |
System.String | description | Description of the setting. |
System.String | defaultValue | Default value of the setting. |
XBeeCategory | category | Parent category of the setting. |
XBeeFirmware | ownerFirmware | XBee firmware the setting belongs to. |
System.Int32 | numNetworks | The number of networks the setting can be configured for. |
See Also
XBeeSettingCombo(String, String, String, XBeeCategory, XBeeFirmware)
Class constructor. Instantiates a new XBeeSettingCombo object with the provided parameters.
Declaration
public XBeeSettingCombo(string name, string description, string defaultValue, XBeeCategory category, XBeeFirmware ownerFirmware)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the setting. |
System.String | description | Description of the setting. |
System.String | defaultValue | Default value of the setting. |
XBeeCategory | category | Parent category of the setting. |
XBeeFirmware | ownerFirmware | XBee firmware the setting belongs to. |
See Also
XBeeSettingCombo(String, String, String, XBeeCategory, XBeeFirmware, Int32)
Class constructor. Instantiates a new XBeeSettingCombo object with the provided parameters.
Declaration
public XBeeSettingCombo(string name, string description, string defaultValue, XBeeCategory category, XBeeFirmware ownerFirmware, int numNetworks)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the setting. |
System.String | description | Description of the setting. |
System.String | defaultValue | Default value of the setting. |
XBeeCategory | category | Parent category of the setting. |
XBeeFirmware | ownerFirmware | XBee firmware the setting belongs to. |
System.Int32 | numNetworks | The number of networks the setting can be configured for. |
See Also
Properties
Items
List of items displayed in the combo.
Declaration
public List<string> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Methods
CloneSetting(XBeeCategory, XBeeFirmware)
Clones and returns the setting object.
Declaration
public AbstractXBeeSetting CloneSetting(XBeeCategory parentCategory, XBeeFirmware ownerFirmware)
Parameters
Type | Name | Description |
---|---|---|
XBeeCategory | parentCategory | The parent category where the cloned setting should be placed. |
XBeeFirmware | ownerFirmware | The owner firmware of the cloned setting. |
Returns
Type | Description |
---|---|
AbstractXBeeSetting | The cloned setting object. |
See Also
GetDefaultSelectedIndex()
Returns the default selected index.
Declaration
public int GetDefaultSelectedIndex()
Returns
Type | Description |
---|---|
System.Int32 | The default selected index. |
ValidateSetting()
Returns whether or not the current value of the setting is valid.
Declaration
public override bool ValidateSetting()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
ValidateSetting(Int32)
Returns whether or not the current value of the provided network index is valid.
Declaration
public override bool ValidateSetting(int networkIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | networkIndex |
Returns
Type | Description |
---|---|
System.Boolean |
|