@Test public void rendersNodes() { TextFlow flow = renderer.render("alias", createPayload("contains http: assertThat(flow.getChildren().size(), equalTo(3)); assertThat(flow.getChildren().get(2), instanceOf(Hyperlink.class)); }
@Override public TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle) { TextFlow flow = new TextFlow(); flow.getChildren().setAll(renderTextFlowElements(prefixAlias, renderString(dropPayload, resourceBundle))); return flow; }
PlaintextMessageRenderer implements FXMessageRenderer { @Override public TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle) { TextFlow flow = new TextFlow(); flow.getChildren().setAll(renderTextFlowElements(prefixAlias, renderString(dropPayload, resourceBundle))); return flow; } }
PlaintextMessageRenderer implements FXMessageRenderer { @Override public TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle) { TextFlow flow = new TextFlow(); flow.getChildren().setAll(renderTextFlowElements(prefixAlias, renderString(dropPayload, resourceBundle))); return flow; } PlaintextMessageRenderer(); }
PlaintextMessageRenderer implements FXMessageRenderer { @Override public TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle) { TextFlow flow = new TextFlow(); flow.getChildren().setAll(renderTextFlowElements(prefixAlias, renderString(dropPayload, resourceBundle))); return flow; } PlaintextMessageRenderer(); @Override TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle); @Override String renderString(String dropPayload, ResourceBundle resourceBundle); HyperlinkRenderer getHyperlinkRenderer(); }
PlaintextMessageRenderer implements FXMessageRenderer { @Override public TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle) { TextFlow flow = new TextFlow(); flow.getChildren().setAll(renderTextFlowElements(prefixAlias, renderString(dropPayload, resourceBundle))); return flow; } PlaintextMessageRenderer(); @Override TextFlow render(String prefixAlias, String dropPayload, ResourceBundle resourceBundle); @Override String renderString(String dropPayload, ResourceBundle resourceBundle); HyperlinkRenderer getHyperlinkRenderer();  }