MCPcopy Create free account
hub / github.com/Card-Forge/forge / getButton

Method getButton

forge-gui-mobile/src/forge/toolbox/FDialog.java:145–161  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

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);

Callers 3

initButtonMethod · 0.95
isButtonEnabledMethod · 0.95
setButtonEnabledMethod · 0.95

Calls 2

getBtnOkMethod · 0.80
getBtnCancelMethod · 0.45

Tested by

no test coverage detected