@Test public void rendersMessageNode() { TextFlow node = renderer.render("alias", payload, QabelFXMLView.getDefaultResourceBundle()); assertEquals("content", ((Text)node.getChildren().get(1)).getText()); }
@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();  }