@Test public void getText() { TitledPane titledPane = (TitledPane) getPrimaryStage().getScene().getRoot().lookup(".titled-pane"); LoggingRecorder lr = new LoggingRecorder(); List<String> text = new ArrayList<>(); Platform.runLater(() -> { RFXTitledPane rfxTitledPane = new RFXTitledPane(titledPane, null, null, lr); titledPane.setExpanded(true); rfxTitledPane.mouseButton1Pressed(null); text.add(rfxTitledPane.getAttribute("text")); }); new Wait("Waiting for titled pane text.") { @Override public boolean until() { return text.size() > 0; } }; AssertJUnit.assertEquals("Node 1", text.get(0)); }
@Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); static final Logger LOGGER; }