(int index)
| 143 | } |
| 144 | |
| 145 | protected FButton getButton(int index) { |
| 146 | if (index >= buttonCount) { return null; } |
| 147 | |
| 148 | switch (index) { |
| 149 | case 0: |
| 150 | return prompt.getBtnOk(); |
| 151 | case 1: |
| 152 | if (buttonCount == 2) { |
| 153 | return prompt.getBtnCancel(); |
| 154 | } |
| 155 | return btnMiddle; |
| 156 | case 2: |
| 157 | return prompt.getBtnCancel(); |
| 158 | default: |
| 159 | return null; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | public boolean isButtonEnabled(int index) { |
| 164 | FButton button = getButton(index); |
no test coverage detected