@Test public void testBack_limit() { UniformDesign uniformDesign = UniformDesignBuilder.build(); DataEditor dataEditor = new DataEditor(new AttributeVisualisationMappingBuilder(new ArrayList<>()),uniformDesign); for (int i=0;i<100;i++){ dataEditor.navigate(new ExampleData1()); } Assertions.assertEquals(DataEditorState.HISTORY_LIMIT,dataEditor.dataEditorState.displayedEntities.size()); }
public void navigate(FactoryBase<?,?> newValue) { updateState(dataEditorState.edit(newValue)); }
DataEditor implements Widget { public void navigate(FactoryBase<?,?> newValue) { updateState(dataEditorState.edit(newValue)); } }
DataEditor implements Widget { public void navigate(FactoryBase<?,?> newValue) { updateState(dataEditorState.edit(newValue)); } DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign, BiFunction<Node, FactoryBase<?,?>,Node> dataVisualisationCustomizer);  DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign); }
DataEditor implements Widget { public void navigate(FactoryBase<?,?> newValue) { updateState(dataEditorState.edit(newValue)); } DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign, BiFunction<Node, FactoryBase<?,?>,Node> dataVisualisationCustomizer);  DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign); ReadOnlyObjectProperty<FactoryBase<?,?>> editData(); void navigate(FactoryBase<?,?> newValue); void navigateBack(FactoryBase<?,?> newValue); void edit(FactoryBase<?,?> newValue); void setHistory(List<FactoryBase<?,?>> data); void reset(); @Override Node createContent(); SimpleBooleanProperty historyNavigationVisibleProperty(); @Override void destroy(); }
DataEditor implements Widget { public void navigate(FactoryBase<?,?> newValue) { updateState(dataEditorState.edit(newValue)); } DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign, BiFunction<Node, FactoryBase<?,?>,Node> dataVisualisationCustomizer);  DataEditor(AttributeVisualisationMappingBuilder attributeVisualisationMappingBuilder, UniformDesign uniformDesign); ReadOnlyObjectProperty<FactoryBase<?,?>> editData(); void navigate(FactoryBase<?,?> newValue); void navigateBack(FactoryBase<?,?> newValue); void edit(FactoryBase<?,?> newValue); void setHistory(List<FactoryBase<?,?>> data); void reset(); @Override Node createContent(); SimpleBooleanProperty historyNavigationVisibleProperty(); @Override void destroy();  }