@Test public void getText() { SplitPane splitPane = (SplitPane) getPrimaryStage().getScene().getRoot().lookup(".split-pane"); LoggingRecorder lr = new LoggingRecorder(); List<String> text = new ArrayList<>(); Platform.runLater(() -> { RFXSplitPane rfxSplitPane = new RFXSplitPane(splitPane, null, null, lr); splitPane.setDividerPosition(0, 0.6); rfxSplitPane.mouseReleased(null); text.add(rfxSplitPane.getAttribute("text")); }); new Wait("Waiting for split pane text.") { @Override public boolean until() { return text.size() > 0; } }; AssertJUnit.assertEquals("[0.6,0.6008064516129032]", text.get(0)); }
@Override protected void mouseReleased(MouseEvent me) { SplitPane splitPane = (SplitPane) node; String currentDividerLoctions = getDividerLocations(splitPane); if (!currentDividerLoctions.equals(prevLocations)) { recorder.recordSelect(this, currentDividerLoctions); } }
RFXSplitPane extends RFXComponent { @Override protected void mouseReleased(MouseEvent me) { SplitPane splitPane = (SplitPane) node; String currentDividerLoctions = getDividerLocations(splitPane); if (!currentDividerLoctions.equals(prevLocations)) { recorder.recordSelect(this, currentDividerLoctions); } } }
RFXSplitPane extends RFXComponent { @Override protected void mouseReleased(MouseEvent me) { SplitPane splitPane = (SplitPane) node; String currentDividerLoctions = getDividerLocations(splitPane); if (!currentDividerLoctions.equals(prevLocations)) { recorder.recordSelect(this, currentDividerLoctions); } } RFXSplitPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); }
RFXSplitPane extends RFXComponent { @Override protected void mouseReleased(MouseEvent me) { SplitPane splitPane = (SplitPane) node; String currentDividerLoctions = getDividerLocations(splitPane); if (!currentDividerLoctions.equals(prevLocations)) { recorder.recordSelect(this, currentDividerLoctions); } } RFXSplitPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); }
RFXSplitPane extends RFXComponent { @Override protected void mouseReleased(MouseEvent me) { SplitPane splitPane = (SplitPane) node; String currentDividerLoctions = getDividerLocations(splitPane); if (!currentDividerLoctions.equals(prevLocations)) { recorder.recordSelect(this, currentDividerLoctions); } } RFXSplitPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); static final Logger LOGGER; }