Search in sources :

Example 86 with TextField

use of javafx.scene.control.TextField in project trex-stateless-gui by cisco-system-traffic-generator.

the class TCPProtocolView method buildCustomProtocolView.

/**
 * Build custom view
 */
@Override
protected void buildCustomProtocolView() {
    // source port
    srcPortCB = new CheckBox("Override source port");
    addCheckBox(srcPortCB, 8, 15);
    srcPort = new TextField();
    addInput(srcPort, 5, 220, 170);
    srcPort.disableProperty().bind(srcPortCB.selectedProperty().not());
    // Dst port
    dstPortCB = new CheckBox("Override destination port");
    addCheckBox(dstPortCB, 43, 15);
    dstPort = new TextField();
    addInput(dstPort, 40, 220, 170);
    dstPort.disableProperty().bind(dstPortCB.selectedProperty().not());
    // add seq number
    addLabel("Sequence number", 78, 38);
    seqNumber = new TextField();
    addInput(seqNumber, 75, 220, 170);
    // add ack number
    addLabel("Acknowledge number", 113, 38);
    ackNumber = new TextField();
    addInput(ackNumber, 110, 220, 170);
    // add window
    addLabel("Window", 148, 38);
    window = new TextField();
    addInput(window, 145, 220, 170);
    // add header length
    headerLengthCB = new CheckBox("Override header length(x4)");
    headerLength = new TextField();
    headerLength.disableProperty().bind(headerLengthCB.selectedProperty().not());
    // add checksum
    checkSumCB = new CheckBox("Override checksum");
    addCheckBox(checkSumCB, 8, 500);
    checksum = new TextField();
    addInput(checksum, 5, 660, 170);
    checksum.disableProperty().bind(checkSumCB.selectedProperty().not());
    // add urgent pointer
    addLabel("Urgent pointer", 43, 520);
    urgentPointer = new TextField();
    addInput(urgentPointer, 40, 660, 170);
    addSeparator(80, 490, 350);
    addLabel("Flags", 95, 500);
    urg = new CheckBox("URG");
    addCheckBox(urg, 125, 500);
    ack = new CheckBox("ACK");
    addCheckBox(ack, 125, 575);
    psh = new CheckBox("PSH");
    addCheckBox(psh, 125, 650);
    rst = new CheckBox("RST");
    addCheckBox(rst, 160, 500);
    syn = new CheckBox("SYN");
    addCheckBox(syn, 160, 575);
    fin = new CheckBox("FIN");
    addCheckBox(fin, 160, 650);
}
Also used : CheckBox(javafx.scene.control.CheckBox) TextField(javafx.scene.control.TextField)

Example 87 with TextField

use of javafx.scene.control.TextField in project trex-stateless-gui by cisco-system-traffic-generator.

the class EthernetProtocolView method buildCustomProtocolView.

/**
 * Build custom view
 */
@Override
protected void buildCustomProtocolView() {
    AnchorPane container = new AnchorPane();
    type = new CheckBox("Ethernet Type");
    addCheckBox(type, 20, 10);
    typeField = new TextField();
    addInput(typeField, 20, 165, 220);
    typeField.disableProperty().bind(type.selectedProperty().not());
    setContent(container);
}
Also used : CheckBox(javafx.scene.control.CheckBox) TextField(javafx.scene.control.TextField) AnchorPane(javafx.scene.layout.AnchorPane)

Example 88 with TextField

use of javafx.scene.control.TextField in project jgnash by ccavanaugh.

the class IncomeExpensePayeePieChartDialogController method insertAuxPayeeTextField.

private void insertAuxPayeeTextField() {
    final TextField payeeField = new TextField();
    payeeField.textProperty().addListener(payeeChangeListener);
    filtersPane.getChildren().add(payeeField);
}
Also used : TextField(javafx.scene.control.TextField)

Example 89 with TextField

use of javafx.scene.control.TextField in project jgnash by ccavanaugh.

the class IncomeExpensePayeePieChartDialogController method trimAuxPayeeTextFields.

private void trimAuxPayeeTextFields() {
    final List<TextField> empty = filtersPane.getChildren().stream().filter(TextField.class::isInstance).filter(node -> ((TextField) node).getText().isEmpty()).map(TextField.class::cast).collect(Collectors.toList());
    // Reverse order so we leave the last empty at the bottom
    Collections.reverse(empty);
    for (int i = empty.size() - 1; i > 0; i--) {
        final TextField textField = empty.get(i);
        textField.textProperty().removeListener(payeeChangeListener);
        filtersPane.getChildren().remove(textField);
    }
}
Also used : TextField(javafx.scene.control.TextField)

Example 90 with TextField

use of javafx.scene.control.TextField in project jgnash by ccavanaugh.

the class IncomeExpensePayeePieChartDialogController method insertAuxPayeeTextField.

private void insertAuxPayeeTextField(final String filter) {
    final TextField payeeField = new TextField(filter);
    payeeField.textProperty().addListener(payeeChangeListener);
    filtersPane.getChildren().add(0, payeeField);
}
Also used : TextField(javafx.scene.control.TextField)

Aggregations

TextField (javafx.scene.control.TextField)224 Label (javafx.scene.control.Label)99 Button (javafx.scene.control.Button)71 Insets (javafx.geometry.Insets)62 HBox (javafx.scene.layout.HBox)46 GridPane (javafx.scene.layout.GridPane)44 Scene (javafx.scene.Scene)42 VBox (javafx.scene.layout.VBox)36 InputTextField (bisq.desktop.components.InputTextField)32 Node (javafx.scene.Node)30 Stage (javafx.stage.Stage)27 List (java.util.List)26 CheckBox (javafx.scene.control.CheckBox)24 ButtonType (javafx.scene.control.ButtonType)23 Tooltip (javafx.scene.control.Tooltip)23 StackPane (javafx.scene.layout.StackPane)22 ArrayList (java.util.ArrayList)21 Dialog (javafx.scene.control.Dialog)21 BorderPane (javafx.scene.layout.BorderPane)19 ImageView (javafx.scene.image.ImageView)18