예제 #1
0
 public FxComboView(MigPane parent, String name) {
   this.parent = parent;
   MigPane comboBody = new MigPane(LayoutUtils.fillWithoutInsets());
   comboBody.add(charms, new CC().wrap());
   comboBody.add(description, new CC().wrap());
   comboBody.add(buttonPanel, new CC().wrap());
   charms.getStyleClass().add("comboCharms");
   description.getStyleClass().add("comboDescription");
   titledCombo.setContent(comboBody);
   displayComboName(name);
 }
 @Override
 public ToolListView<IEquipmentStats> initStatsListView(
     final String title, AgnosticUIConfiguration<IEquipmentStats> configuration) {
   listView.setUiConfiguration(configuration);
   Node node = listView.getNode();
   Node titledPane = StyledTitledPane.Create(title, node);
   outerPane.add(titledPane, new CC().push().grow());
   return listView;
 }
예제 #3
0
 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;
 }
 @Override
 public VetoableObjectSelectionView<HeroTemplate> addObjectSelectionList() {
   ListSelectionView<HeroTemplate> view = new ListSelectionView<>();
   ScrollPane scrollPane = new ScrollPane();
   scrollPane.setHbarPolicy(NEVER);
   scrollPane.setVbarPolicy(AS_NEEDED);
   scrollPane.setContent(view.getNode());
   component.add(scrollPane, new CC().grow().push());
   return view;
 }
 private void addLabeledComponent(String text, final Node component) {
   Label label = new Label(text);
   fieldPanel.add(label);
   fieldPanel.add(component);
 }
 @Override
 public ITextView addFieldsView(String labelText) {
   FxTextView view = FxTextView.SingleLine(labelText);
   fieldPanel.add(view.getNode());
   return view;
 }
예제 #7
0
 @Override
 public void remove() {
   parent.getChildren().remove(titledCombo);
 }
예제 #8
0
 @Override
 public Tool addTool() {
   FxButtonTool tool = FxButtonTool.ForToolbar();
   buttonPanel.add(tool.getNode());
   return tool;
 }
 @Override
 public EquipmentDescriptionPanel addDescriptionPanel(final String title) {
   Node titledPane = StyledTitledPane.Create(title, descriptionPanel.getNode());
   outerPane.add(titledPane, new CC().grow().push());
   return descriptionPanel;
 }
 @Override
 public ToggleButtonPanel addToggleButtonPanel() {
   FxToggleButtonPanel panel = new FxToggleButtonPanel();
   component.add(panel.getNode(), new CC().grow().pushY());
   return panel;
 }
예제 #11
0
 public void reset() {
   body.getChildren().clear();
 }
예제 #12
0
 private void addAsLine(Node node) {
   body.add(node, new CC().span());
 }
예제 #13
0
 public void appendLine(String labelText, String valueText) {
   Label label = new Label(labelText + ": ");
   Label value = new Label(valueText);
   body.add(label);
   body.add(value);
 }
예제 #14
0
 public ObjectSelectionView<PageSize> addObjectSelectionView(
     String title, AgnosticUIConfiguration<PageSize> uiConfiguration) {
   ComboBoxSelectionView<PageSize> view = new ComboBoxSelectionView<>(title, uiConfiguration);
   pane.add(view.getNode());
   return view;
 }