コード例 #1
0
ファイル: FxComboView.java プロジェクト: joansmith/anathema
 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);
 }
コード例 #2
0
 @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;
 }
コード例 #4
0
 @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;
 }
コード例 #5
0
 private void addLabeledComponent(String text, final Node component) {
   Label label = new Label(text);
   fieldPanel.add(label);
   fieldPanel.add(component);
 }
コード例 #6
0
 @Override
 public ITextView addFieldsView(String labelText) {
   FxTextView view = FxTextView.SingleLine(labelText);
   fieldPanel.add(view.getNode());
   return view;
 }
コード例 #7
0
ファイル: FxComboView.java プロジェクト: joansmith/anathema
 @Override
 public void remove() {
   parent.getChildren().remove(titledCombo);
 }
コード例 #8
0
ファイル: FxComboView.java プロジェクト: joansmith/anathema
 @Override
 public Tool addTool() {
   FxButtonTool tool = FxButtonTool.ForToolbar();
   buttonPanel.add(tool.getNode());
   return tool;
 }
コード例 #9
0
 @Override
 public EquipmentDescriptionPanel addDescriptionPanel(final String title) {
   Node titledPane = StyledTitledPane.Create(title, descriptionPanel.getNode());
   outerPane.add(titledPane, new CC().grow().push());
   return descriptionPanel;
 }
コード例 #10
0
 @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;
 }