Search in sources :

Example 6 with TitledGroupBg

use of io.bitsquare.gui.components.TitledGroupBg in project bitsquare by bitsquare.

the class PreferencesView method initializeDisplayOptions.

private void initializeDisplayOptions() {
    TitledGroupBg titledGroupBg = addTitledGroupBg(root, ++gridRow, 4, "Display options", Layout.GROUP_DISTANCE);
    GridPane.setColumnSpan(titledGroupBg, 4);
    showOwnOffersInOfferBook = addLabelCheckBox(root, gridRow, "Show my own offers in offer book:", "", Layout.FIRST_ROW_AND_GROUP_DISTANCE).second;
    useAnimationsCheckBox = addLabelCheckBox(root, ++gridRow, "Use animations:", "").second;
    // useStickyMarketPriceCheckBox = addLabelCheckBox(root, ++gridRow, "Use sticky market price:", "").second;
    sortMarketCurrenciesNumericallyCheckBox = addLabelCheckBox(root, ++gridRow, "Sort market lists with no. of offers/trades:", "").second;
    resetDontShowAgainButton = addLabelButton(root, ++gridRow, "Reset all 'Don't show again' flags:", "Reset", 0).second;
}
Also used : TitledGroupBg(io.bitsquare.gui.components.TitledGroupBg)

Example 7 with TitledGroupBg

use of io.bitsquare.gui.components.TitledGroupBg in project bitsquare by bitsquare.

the class TradeSubView method buildViews.

private void buildViews() {
    addLeftBox();
    addContentPane();
    leftGridPane = new GridPane();
    leftGridPane.setPrefWidth(340);
    leftGridPane.setHgap(Layout.GRID_GAP);
    leftGridPane.setVgap(Layout.GRID_GAP);
    VBox.setMargin(leftGridPane, new Insets(0, 10, 10, 10));
    leftVBox.getChildren().add(leftGridPane);
    leftGridPaneRowIndex = 0;
    tradeProcessTitledGroupBg = addTitledGroupBg(leftGridPane, leftGridPaneRowIndex, 1, "Trade process");
    addWizards();
    TitledGroupBg noticeTitledGroupBg = addTitledGroupBg(leftGridPane, leftGridPaneRowIndex, 1, "", Layout.GROUP_DISTANCE);
    Label label = addMultilineLabel(leftGridPane, leftGridPaneRowIndex, "", Layout.FIRST_ROW_AND_GROUP_DISTANCE);
    openDisputeButton = addButtonAfterGroup(leftGridPane, ++leftGridPaneRowIndex, "Open Dispute");
    GridPane.setColumnIndex(openDisputeButton, 0);
    openDisputeButton.setId("open-dispute-button");
    notificationGroup = new NotificationGroup(noticeTitledGroupBg, label, openDisputeButton);
    notificationGroup.setLabelAndHeadlineVisible(false);
    notificationGroup.setButtonVisible(false);
}
Also used : Insets(javafx.geometry.Insets) Label(javafx.scene.control.Label) TitledGroupBg(io.bitsquare.gui.components.TitledGroupBg)

Aggregations

TitledGroupBg (io.bitsquare.gui.components.TitledGroupBg)7 Label (javafx.scene.control.Label)4 BusyAnimation (io.bitsquare.gui.components.BusyAnimation)2 TextFieldWithCopyIcon (io.bitsquare.gui.components.TextFieldWithCopyIcon)2 Popup (io.bitsquare.gui.main.overlays.popups.Popup)2 Insets (javafx.geometry.Insets)2 Button (javafx.scene.control.Button)2 UserThread (io.bitsquare.common.UserThread)1 Tuple2 (io.bitsquare.common.util.Tuple2)1 Activatable (io.bitsquare.gui.common.model.Activatable)1 ActivatableViewAndModel (io.bitsquare.gui.common.view.ActivatableViewAndModel)1 FxmlView (io.bitsquare.gui.common.view.FxmlView)1 HyperlinkWithIcon (io.bitsquare.gui.components.HyperlinkWithIcon)1 InputTextField (io.bitsquare.gui.components.InputTextField)1 BSFormatter (io.bitsquare.gui.util.BSFormatter)1 FormBuilder (io.bitsquare.gui.util.FormBuilder)1 ImageUtil (io.bitsquare.gui.util.ImageUtil)1 Layout (io.bitsquare.gui.util.Layout)1 io.bitsquare.locale (io.bitsquare.locale)1 Contract (io.bitsquare.trade.Contract)1