(int index, String text, FEventHandler command)
| 131 | protected abstract float layoutAndGetHeight(float width, float maxHeight); |
| 132 | |
| 133 | protected void initButton(int index, String text, FEventHandler command) { |
| 134 | FButton button = getButton(index); |
| 135 | if (button == null) { return; } |
| 136 | |
| 137 | button.setText(text); |
| 138 | button.setCommand(command); |
| 139 | button.setEnabled(true); |
| 140 | if (button == btnMiddle) { //allow middle button to be sized to fit text |
| 141 | button.setWidth(button.getAutoSizeBounds().width * 1.25f); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | protected FButton getButton(int index) { |
| 146 | if (index >= buttonCount) { return null; } |
no test coverage detected