Java Code Examples for javafx.scene.control.TextField#setFocusTraversable()
The following examples show how to use
javafx.scene.control.TextField#setFocusTraversable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EditView.java From helloiot with GNU General Public License v3.0 | 6 votes |
@Override public Node constructContent() { boxview = new HBox(); boxview.setSpacing(6.0); statusview = new TextField(); statusview.setEditable(false); statusview.setFocusTraversable(false); statusview.getStyleClass().add("unitinputview"); HBox.setHgrow(statusview, Priority.SOMETIMES); boxview.getChildren().add(statusview); initialize(); return boxview; }
Example 2
Source File: FormBuilder.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
public static Tuple3<Label, TextField, VBox> addTopLabelTextField(GridPane gridPane, int rowIndex, String title, String value, double top) { TextField textField = new BisqTextField(value); textField.setEditable(false); textField.setFocusTraversable(false); final Tuple2<Label, VBox> topLabelWithVBox = addTopLabelWithVBox(gridPane, rowIndex, title, textField, top); // TOD not 100% sure if that is a good idea.... //topLabelWithVBox.first.getStyleClass().add("jfx-text-field-top-label"); return new Tuple3<>(topLabelWithVBox.first, textField, topLabelWithVBox.second); }
Example 3
Source File: FormBuilder.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
public static Tuple3<Label, TextField, Button> addTopLabelTextFieldButton(GridPane gridPane, int rowIndex, String title, String buttonTitle, double top) { TextField textField = new BisqTextField(); textField.setEditable(false); textField.setMouseTransparent(true); textField.setFocusTraversable(false); Button button = new AutoTooltipButton(buttonTitle); button.setDefaultButton(true); HBox hBox = new HBox(); hBox.setSpacing(10); hBox.getChildren().addAll(textField, button); HBox.setHgrow(textField, Priority.ALWAYS); final Tuple2<Label, VBox> labelVBoxTuple2 = addTopLabelWithVBox(gridPane, rowIndex, title, hBox, top); return new Tuple3<>(labelVBoxTuple2.first, textField, button); }
Example 4
Source File: FormBuilder.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
public static Tuple4<Label, TextField, Label, TextField> addCompactTopLabelTextFieldTopLabelTextField(GridPane gridPane, int rowIndex, String title1, String title2) { TextField textField1 = new BisqTextField(); textField1.setEditable(false); textField1.setMouseTransparent(true); textField1.setFocusTraversable(false); final Tuple2<Label, VBox> topLabelWithVBox1 = getTopLabelWithVBox(title1, textField1); TextField textField2 = new BisqTextField(); textField2.setEditable(false); textField2.setMouseTransparent(true); textField2.setFocusTraversable(false); final Tuple2<Label, VBox> topLabelWithVBox2 = getTopLabelWithVBox(title2, textField2); HBox hBox = new HBox(); hBox.setSpacing(10); hBox.getChildren().addAll(topLabelWithVBox1.second, topLabelWithVBox2.second); GridPane.setRowIndex(hBox, rowIndex); gridPane.getChildren().add(hBox); return new Tuple4<>(topLabelWithVBox1.first, textField1, topLabelWithVBox2.first, textField2); }
Example 5
Source File: FormBuilder.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
public static <T> Tuple3<Label, ComboBox<T>, TextField> addLabelComboBoxLabel(GridPane gridPane, int rowIndex, String title, String textFieldText, double top) { Label label = addLabel(gridPane, rowIndex, title, top); HBox hBox = new HBox(); hBox.setSpacing(10); ComboBox<T> comboBox = new JFXComboBox<>(); TextField textField = new TextField(textFieldText); textField.setEditable(false); textField.setMouseTransparent(true); textField.setFocusTraversable(false); hBox.getChildren().addAll(comboBox, textField); GridPane.setRowIndex(hBox, rowIndex); GridPane.setColumnIndex(hBox, 1); GridPane.setMargin(hBox, new Insets(top, 0, 0, 0)); gridPane.getChildren().add(hBox); return new Tuple3<>(label, comboBox, textField); }
Example 6
Source File: TransfersTab.java From xframium-java with GNU General Public License v3.0 | 5 votes |
private HBox getLine (RadioButton button, TextField text) { HBox line = new HBox (10); line.getChildren ().addAll (button, text); button.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (300); text.setFont (defaultFont); text.setEditable (false); text.setFocusTraversable (false); button.setUserData (text); return line; }
Example 7
Source File: TransfersTab.java From xframium-java with GNU General Public License v3.0 | 5 votes |
private HBox getLine (Label label, TextField text) { HBox line = new HBox (10); line.getChildren ().addAll (label, text); label.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (100); text.setFont (defaultFont); text.setEditable (true); text.setFocusTraversable (true); return line; }
Example 8
Source File: TransfersTab.java From xframium-java with GNU General Public License v3.0 | 5 votes |
private HBox getLine (Label label, TextField text, HBox hbox) { HBox line = new HBox (10); line.getChildren ().addAll (label, text, hbox); label.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (100); text.setFont (defaultFont); text.setEditable (true); text.setFocusTraversable (true); return line; }
Example 9
Source File: TransfersTab.java From dm3270 with Apache License 2.0 | 5 votes |
private HBox getLine (RadioButton button, TextField text) { HBox line = new HBox (10); line.getChildren ().addAll (button, text); button.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (300); text.setFont (defaultFont); text.setEditable (false); text.setFocusTraversable (false); button.setUserData (text); return line; }
Example 10
Source File: TransfersTab.java From dm3270 with Apache License 2.0 | 5 votes |
private HBox getLine (Label label, TextField text) { HBox line = new HBox (10); line.getChildren ().addAll (label, text); label.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (100); text.setFont (defaultFont); text.setEditable (true); text.setFocusTraversable (true); return line; }
Example 11
Source File: TransfersTab.java From dm3270 with Apache License 2.0 | 5 votes |
private HBox getLine (Label label, TextField text, HBox hbox) { HBox line = new HBox (10); line.getChildren ().addAll (label, text, hbox); label.setPrefWidth (LABEL_WIDTH); text.setPrefWidth (100); text.setFont (defaultFont); text.setEditable (true); text.setFocusTraversable (true); return line; }
Example 12
Source File: MutableOfferView.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
private void addPayInfoEntry(GridPane infoGridPane, int row, String labelText, String value) { Label label = new AutoTooltipLabel(labelText); TextField textField = new TextField(value); textField.setMinWidth(500); textField.setEditable(false); textField.setFocusTraversable(false); textField.setId("payment-info"); GridPane.setConstraints(label, 0, row, 1, 1, HPos.RIGHT, VPos.CENTER); GridPane.setConstraints(textField, 1, row); infoGridPane.getChildren().addAll(label, textField); }
Example 13
Source File: TakeOfferView.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
private void addPayInfoEntry(GridPane infoGridPane, int row, String labelText, String value) { Label label = new AutoTooltipLabel(labelText); TextField textField = new TextField(value); textField.setMinWidth(500); textField.setEditable(false); textField.setFocusTraversable(false); textField.setId("payment-info"); GridPane.setConstraints(label, 0, row, 1, 1, HPos.RIGHT, VPos.CENTER); GridPane.setConstraints(textField, 1, row); infoGridPane.getChildren().addAll(label, textField); }
Example 14
Source File: EditStatus.java From helloiot with GNU General Public License v3.0 | 4 votes |
@Override public Node constructContent() { StackPane stackpaneroot = new StackPane(); boxview = new HBox(); boxview.setSpacing(6.0); statusview = new TextField(); statusview.setEditable(false); statusview.setFocusTraversable(false); statusview.getStyleClass().add("unitinputview"); HBox.setHgrow(statusview, Priority.SOMETIMES); editaction = new Button(); editaction.setFocusTraversable(false); editaction.setMnemonicParsing(false); editaction.getStyleClass().add("unitbutton"); editaction.setOnAction(this::onEditEvent); boxview.getChildren().addAll(statusview, editaction); boxedit = new HBox(); boxedit.setSpacing(6.0); boxedit.setVisible(false); statusedit = new TextField(); statusedit.getStyleClass().add("unitinput"); HBox.setHgrow(statusedit, Priority.SOMETIMES); ((TextField) statusedit).setOnAction(this::onEnterEvent); okaction = new Button(); okaction.setFocusTraversable(false); okaction.setMnemonicParsing(false); okaction.getStyleClass().add("unitbutton"); okaction.setOnAction(this::onOkEvent); cancelaction = new Button(); cancelaction.setFocusTraversable(false); cancelaction.setMnemonicParsing(false); cancelaction.getStyleClass().add("unitbutton"); cancelaction.setOnAction(this::onCancelEvent); boxedit.getChildren().addAll(statusedit, okaction, cancelaction); stackpaneroot.getChildren().addAll(boxview, boxedit); initialize(); return stackpaneroot; }