private CharacterGridButton createGridButton(
     CharacterButtonDto dto, Selector<CharacterIdentifier> characterSelector) {
   CharacterGridButton characterGridButton = new CharacterGridButton();
   characterGridButton.initContent(dto, characterSelector);
   characterGridButton.setToggleGroup(toggleGroup);
   buttonsByIdentifier.put(dto.identifier, characterGridButton);
   gridPane.getChildren().add(0, characterGridButton.getNode());
   scrollPane.setVvalue(0);
   return characterGridButton;
 }
Exemple #2
0
 @Override
 public void remove() {
   parent.getChildren().remove(titledCombo);
 }
 public void reset() {
   body.getChildren().clear();
 }