username.setPromptText("Username"); final PasswordField password = new PasswordField(); password.setPromptText("Password");
comboBox.getEditor().setStyle("-fx-background-color:TRANSPARENT;-fx-padding: 0.333333em 0em;"); comboBox.getEditor().promptTextProperty().unbind(); comboBox.getEditor().setPromptText(null); comboBox.getEditor().textProperty().addListener((o, oldVal, newVal) -> { linesWrapper.usePromptText.invalidate();
@FXML TextField tf; public void someMethod() { tf.setPromptText("This is the prompt text"); }
SplitOptionsPane() { super(Style.DEFAULT_SPACING); getStyleClass().addAll(Style.CONTAINER.css()); I18nContext ctx = DefaultI18nContext.getInstance(); levelCombo.setId("bookmarksLevel"); regexpField.setId("bookmarksRegexp"); regexpField.setPromptText(ctx.i18n("Regular expression the bookmark has to match")); regexpField.setPrefWidth(350); getChildren().addAll(createLine(new Label(ctx.i18n("Split at this bookmark level:")), levelCombo), createLine(new Label(ctx.i18n("Matching regular expression:")), regexpField, helpIcon(new TextFlow(new Text(ctx.i18n("A regular expression the bookmark text has to match") + System.lineSeparator()), new Text(ctx.i18n( "Example: use .*Chapter.* to match bookmarks containing the word \"Chapter\"")))))); }
/** * */ public void initialize() { this.btnCancel.setText(RESOURCES.getString("cancel")); this.btnOk.setText(RESOURCES.getString("ok")); this.fileName.setText(RESOURCES.getString("file_name")); this.tfNameFile.setPromptText(RESOURCES.getString("enter_file_name")); }
private void setField(final String label, final String textField) { this.label.setText(label); this.textField.setPromptText(textField); this.okBtn.setText(RESOURCES.getString("ok")); this.cancelBtn.setText(RESOURCES.getString("cancel")); }
public void configure() { final Optional<String> prompt = configuration.propertyValueOf(XMLConstants.PROMPT); final Optional<Boolean> isAttributeGenerated = configuration.booleanPropertyValueOf(XMLConstants.GENERATED); final Optional<Boolean> isFocused = configuration.booleanPropertyValueOf(XMLConstants.FOCUSED); // focus isFocused.filter(e -> e == Boolean.TRUE).flatMap(e -> { textField.requestFocus(); return Optional.empty(); }); // generated value isAttributeGenerated.filter(e -> e == Boolean.TRUE).flatMap(e -> { textField.setDisable(true); return Optional.empty(); }); // prompt prompt.ifPresent(e -> { final String val = controller.getLocalised(prompt.get()); textField.setPromptText(val); }); // process DisplayConfig final Optional<VLViewComponentXML> displayConfig = configuration.getComponentById(DISPLAY_CONFIG); displayConfig.ifPresent(e -> { e.booleanPropertyValueOf(XMLConstants.READ_ONLY).ifPresent(f -> { textField.setDisable(f.booleanValue()); }); }); processFormat(); }
textField = new TextField(); textField.setPromptText(i18n); int columnCount = this.getColumnCount(field); if (columnCount > 0)
this.batch.setText(RESOURCES.getString("batch_start")); this.batchMode.setText(RESOURCES.getString("batch_pane_title")); this.bnTextOut.setPromptText(RESOURCES.getString("enter_base_name")); this.bnTextOut.setText(RESOURCES.getString("base_name_text")); this.classpath.setText(RESOURCES.getString("classpath_pane_title"));
/** * {@inheritDoc} */ @Override public void initializeParts() { super.initializeParts(); getStyleClass().add("simple-text-control"); stack = new StackPane(); editableField = new TextField(field.getValue()); editableArea = new TextArea(field.getValue()); readOnlyLabel = new Label(field.getValue()); fieldLabel = new Label(field.labelProperty().getValue()); editableField.setPromptText(field.placeholderProperty().getValue()); }
tf0.setPromptText("text"); pane.getChildren().add(tf0); tf1.setPromptText("0-9"); tf2.setPromptText("switch locale to 'DE'"); tf2.getProperties().put(VK_LOCALE, "de"); pane.getChildren().add(tf2); tf3.setPromptText("email"); tf3.getProperties().put(VK_TYPE, VK_TYPE_EMAIL); pane.getChildren().add(tf3); tf4.setPromptText("url"); tf4.getProperties().put(VK_TYPE, VK_TYPE_URL); pane.getChildren().add(tf4); tf5.setPromptText("no keyboard"); tf5.getProperties().put(VK_STATE, VK_STATE_DISABLED); pane.getChildren().add(tf5);
HBox hbox = new HBox(3); final TextField textfield = new TextField(); textfield.setPromptText(dateFormatText); textfield.textProperty().addListener(new ChangeListener<String>() { @Override
@Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { this.configuration = configuration; this.controller = (AbstractViewController) controller; NodeHelper.loadFXML(getFxmlLocation(), this); filterTextField.managedProperty().bind(filterTextField.visibleProperty()); filterTextField.setVisible(false); filterTextField.setPromptText("Find in table"); if (configuration != null) { NodeHelper.setTitle(title, configuration, (AbstractViewController) controller, true); NodeHelper.styleClassSetAll(title, configuration, "titleStyleClass", "ep-edit-structure-title-label"); NodeHelper.styleClassAddAll(tableHeaderRootPane, configuration, "styleClass"); title.visibleProperty().bind(Bindings.isNotEmpty(title.textProperty())); elementsCountProperty().addListener((ChangeListener<Number>) (observable, oldValue, newValue) -> { if (newValue.intValue() > 0) { itemsCount.textProperty().set(""); } else { itemsCount.textProperty().set(String.format(dynMessageFormat, newValue.intValue())); } }); ((FullTableStructureController) controller).processedElementProperty().addListener((ChangeListener<Object>) (observable, oldValue, newValue) -> { final AbstractTableStructure ts = (AbstractTableStructure) ((FullTableStructureController) controller).processedElementProperty().get(); doLayout(ts); buildFiltering(ts); }); } }
username.setPromptText("Username"); PasswordField password = new PasswordField(); password.setPromptText("Password");
searchBox.setPromptText(getString("filterpanel.search.field")); //$NON-NLS-1$ getChildren().add(searchBox);
@Override public Node createValueVisualisation() { TextField textField = new TextField(); textField.setPromptText("e.g.: 12:13"); textField.textProperty().bindBidirectional(observableAttributeValue,new LocalTimeStringConverter());
/** * {@inheritDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { this.configuration = configuration; this.controller = (AbstractViewController) controller; loadFXML(); NodeHelper.styleClassAddAll(tableHeaderRootPane, configuration, "styleClass"); NodeHelper.setTitle(headerTitle, configuration, (AbstractViewController) controller, true); NodeHelper.styleClassSetAll(headerTitle, configuration, "titleStyleClass", "ep-table-title-label"); NodeHelper.styleClassAddAll(titleContainer, configuration, "titleContainerStyleClass"); filterTextField.managedProperty().bind(filterTextField.visibleProperty()); filterTextField.setPromptText("Find in table"); boolean filtrable = configuration.getBooleanProperty("filtrable", true); filterTextField.setVisible(filtrable); ((FullTableStructureController) controller).processedElementProperty().addListener((ChangeListener<Object>) (observable, oldValue, newValue) -> { AbstractTableStructure ts = (AbstractTableStructure) ((FullTableStructureController) controller).processedElementProperty().get(); if (ts.getToolbar().isPresent()) { Node tb = ts.getToolbar().get(); HBox.setHgrow(tb, Priority.NEVER); actionsContainer.getChildren().add(tb); } }); setRootModel(); headerTitle.managedProperty().bind(headerTitle.visibleProperty()); headerTitle.visibleProperty().bind(Bindings.size(titleContainer.getChildren()).isEqualTo(0)); titleContainer.visibleProperty().bind(Bindings.size(titleContainer.getChildren()).greaterThan(0)); titleContainer.managedProperty().bind(titleContainer.visibleProperty()); }
command.setPromptText("> ");
searchField.setPromptText( localize(asKey("property.sheet.search.field.prompt"))); //$NON-NLS-1$ searchField.setMinWidth(0); HBox.setHgrow(searchField, Priority.SOMETIMES);
comboBox.getEditor().setStyle("-fx-background-color:TRANSPARENT;-fx-padding: 0.333333em 0em;"); comboBox.getEditor().promptTextProperty().unbind(); comboBox.getEditor().setPromptText(null); comboBox.getEditor().textProperty().addListener((o, oldVal, newVal) -> linesWrapper.usePromptText.invalidate());