docs » cp.ui.RadioGroup
Represents an AXRadioGroup, providing utility methods.
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- RadioGroup
- Fields - Variables which can only be accessed from an object returned by a constructor
- optionCount
- options
- optionsUI
- selectedOption
- Methods - API calls which can only be made on an object returned by a constructor
- doNextOption
- doPreviousOption
- doSelectOption
- nextOption
- previousOption
| Signature | cp.ui.RadioGroup.matches(element) -> boolean |
|---|---|
| Type | Function |
| Description | Checks if the provided axuielement is a RadioGroup. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup(parent, uiFinder[, createOptionFn]) -> cp.ui.RadioGroup |
|---|---|
| Type | Constructor |
| Description | Creates a new RadioGroup. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup.optionCount <cp.prop: number; read-only> |
|---|---|
| Type | Field |
| Description | The number of options in the group. |
| Signature | cp.ui.RadioGroup.options <table: cp.ui.Element; read-only> |
|---|---|
| Type | Field |
| Description | A table containing cp.ui.Element available in the radio group. |
| Returns |
|
| Signature | cp.ui.RadioGroup.optionsUI <cp.prop: axuielement; read-only> |
|---|---|
| Type | Field |
| Description | A cp.prop containing table of axuielement options available in the radio group. |
| Returns |
|
| Signature | cp.ui.RadioGroup.selectedOption <cp.prop: number> |
|---|---|
| Type | Field |
| Description | The currently selected option number. |
| Signature | cp.ui.RadioGroup:doNextOption() -> cp.rx.go.Statement<boolean> |
|---|---|
| Type | Method |
| Description | A Statement that selects the next option in the group. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup:doPreviousOption() -> cp.rx.go.Statement<boolean> |
|---|---|
| Type | Method |
| Description | A Statement that selects the previous option in the group. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup:doSelectOption(index) -> cp.rx.go.Statement<boolean> |
|---|---|
| Type | Method |
| Description | A Statement which will attempt to select the option at the specified index. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup:nextOption() -> self |
|---|---|
| Type | Method |
| Description | Selects the next option in the group. Cycles from the last to the first option. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.RadioGroup:previousOption() -> self |
|---|---|
| Type | Method |
| Description | Selects the previous option in the group. Cycles from the first to the last item. |
| Parameters |
|
| Returns |
|