javafx.scene.control.TextArea.getText()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中javafx.scene.control.TextArea.getText()方法的一些代码示例,展示了TextArea.getText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.getText()方法的具体详情如下:
包路径:javafx.scene.control.TextArea
类名称:TextArea
方法名:getText

TextArea.getText介绍

暂无

代码示例

代码示例来源:origin: speedment/speedment

if (areaConnectionUrl.getText().isEmpty()
||  areaConnectionUrl.getText().equals(generatedConnUrl.get())) {
  final String url = item.getConnectionUrlGenerator().from(
    TemporaryDbms.create(
  .orElseGet(() -> type.getDefaultDbmsName().orElseGet(fieldName::getText)));
if (!areaConnectionUrl.getText().isEmpty()
&&  !areaConnectionUrl.getText().equals(generatedConnUrl.get())) {
  dbms.connectionUrlProperty().setValue(
    areaConnectionUrl.getText()
  );

代码示例来源:origin: pmd/pmd

DesignerUtil.stackTraceToXPath(area.getText()).ifPresent(xpathExpressionArea::replaceText);
  popup.close();
});

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  public void handle(ActionEvent event) {
    copperDataProvider.updateLogConfig(logConfig.getText());
  }
});

代码示例来源:origin: com.intuit.karate/karate-core

@Override
public String collect() {
  String text = textArea.getText();
  textArea.clear();
  return text;
}

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  public void handle(ActionEvent event) {
    if (resultTextarea.getText() != null && searchField.getText() != null) {
      int from = resultTextarea.getText().indexOf(searchField.getText(), resultTextarea.getSelection().getEnd());
      resultTextarea.selectRange(from, from + searchField.getText().length());
    }
  }
});

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  public void handle(ActionEvent event) {
    if (resultTextarea.getText() != null && searchField.getText() != null) {
      int from = resultTextarea.getText().indexOf(searchField.getText(), resultTextarea.getSelection().getEnd());
      resultTextarea.selectRange(from, from + searchField.getText().length());
    }
  }
});

代码示例来源:origin: Tristan971/Lyrebird

/**
 * Sends a tweet using the {@link NewTweetService}.
 */
private CompletionStage<Void> sendTweet() {
  Stream.of(tweetTextArea, sendButton, pickMediaButton).forEach(ctr -> ctr.setDisable(true));
  return newTweetService.sendTweet(tweetTextArea.getText(), mediasToUpload)
             .thenAcceptAsync(status -> {
               LOG.info("Tweeted status : {} [{}]", status.getId(), status.getText());
               this.embeddingStage.getValue().hide();
             }, Platform::runLater);
}

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  public void handle(ActionEvent event) {
    final Clipboard clipboard = Clipboard.getSystemClipboard();
    final ClipboardContent content = new ClipboardContent();
    content.putString(resultTextarea.getText());
    clipboard.setContent(content);
  }
});

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  public void handle(ActionEvent event) {
    final Clipboard clipboard = Clipboard.getSystemClipboard();
    final ClipboardContent content = new ClipboardContent();
    content.putString(resultTextarea.getText());
    clipboard.setContent(content);
  }
});

代码示例来源:origin: Tristan971/Lyrebird

/**
 * Sends a reply using the {@link NewTweetService}.
 */
private CompletionStage<Void> sendReply() {
  final long inReplyToId = inReplyStatus.getValue().getId();
  Stream.of(tweetTextArea, sendButton, pickMediaButton).forEach(ctr -> ctr.setDisable(true));
  return newTweetService.sendReply(tweetTextArea.getText(), mediasToUpload, inReplyToId)
             .thenAcceptAsync(status -> {
               LOG.info(
                   "Tweeted reply to {} : {} [{}]",
                   inReplyToId,
                   status.getId(),
                   status.getText()
               );
               this.embeddingStage.getValue().hide();
             }, Platform::runLater);
}

代码示例来源:origin: Tristan971/Lyrebird

private void sendMessage() {
  LOG.debug("Sending direct message!");
  messageContent.setDisable(true);
  sendButton.setDisable(true);
  newDirectMessageService.sendMessage(
      currentPal.getValue(),
      messageContent.getText()
  ).whenCompleteAsync((res, err) -> {
    messageContent.clear();
    messageContent.setDisable(false);
    sendButton.setDisable(false);
  }, Platform::runLater);
}

代码示例来源:origin: com.github.vatbub/common.view.reporting

gitHubIssue.setBody(message.getText());
gitHubIssue.setTitle(title.getText());
gitHubIssue.setReporterEmail(mail.getText());

代码示例来源:origin: PhoenicisOrg/phoenicis

shortcutProperties.replace(entry.getKey(), valueLabel.getText());

代码示例来源:origin: PhoenicisOrg/phoenicis

.withName(name.getText())
.withCategory(category.getText())
.withDescription(description.getText())
.withMiniature(miniatureUri)
.withExecutable(executableFile).build();

代码示例来源:origin: org.copper-engine/copper-monitoring-client

public void update(ProcessingEngineInfo processingEngineInfo){
  id.setText(processingEngineInfo.getId());
  typ.setText(processingEngineInfo.getTyp().toString());
  workflowRepositoryId.setText(processingEngineInfo.getRepositoryInfo().getName());
  workflowRepositoryTyp.setText(processingEngineInfo.getRepositoryInfo().getWorkflowRepositorTyp().toString());
  workflowRepositoryPaths.setText("");
  for (String path : processingEngineInfo.getRepositoryInfo().getSrcPaths()) {
    workflowRepositoryPaths.setText(workflowRepositoryPaths.getText() + path + "\n");
  }
  injectorTyp.setText(processingEngineInfo.getDependencyInjectorInfo().getTyp());
  statisticsCollector.setText(processingEngineInfo.getStatisticsCollectorType());
  storageId.setText(processingEngineInfo.getStorageInfo().getDescription());
  batcherId.setText(processingEngineInfo.getStorageInfo().getBatcher().getDescription());
  batcherthreadnum.setText(Integer.toString(processingEngineInfo.getStorageInfo().getBatcher().getNumThreads()));
  state_ENQUEUED.setText("?");//Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.ENQUEUED)));
  state_ERROR.setText("?");//Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.ERROR)));
  state_FINISHED.setText("?");//Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.FINISHED)));
  state_INVALID.setText("?");//Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.INVALID)));
  state_WAITING.setText("?");//Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.WAITING)));
  updateProcessorPools(processingEngineInfo);
}

代码示例来源:origin: com.intuit.karate/karate-core

textArea.focusedProperty().addListener((val, before, after) -> {
  if (!after) { // if we lost focus
    String temp = textArea.getText();
    if (!text.equals(temp) && !temp.trim().equals("")) {
      text = temp;

代码示例来源:origin: com.intuit.karate/karate-core

textArea.focusedProperty().addListener((val, before, after) -> {
  if (!after) { // if we lost focus
    String temp = textArea.getText();
    if (!text.equals(temp)) {
      text = temp;

相关文章