@Test public void testOnChange() throws Exception { SingleLineText singleLineText = new SingleLineText(); TextContent textContent = new TextContent(singleLineText); TestingRefreshContent testingRefreshContent = new TestingRefreshContent(); testingRefreshContent.setAsParent(textContent); assertEquals(0, testingRefreshContent.refreshUpCount); assertEquals(0, testingRefreshContent.refreshDownCount); singleLineText.setText("test"); assertEquals(1, testingRefreshContent.refreshUpCount); assertEquals(0, testingRefreshContent.refreshDownCount); }
@Override public void onChange() { refresh(); }
TextContent extends Content implements LineText.ChangeListener { @Override public void onChange() { refresh(); } }
TextContent extends Content implements LineText.ChangeListener { @Override public void onChange() { refresh(); } TextContent(LineText text); }
TextContent extends Content implements LineText.ChangeListener { @Override public void onChange() { refresh(); } TextContent(LineText text); @Override void onChange(); @Override void draw(Graphics2D graphics); Rectangle2D getMinimalBounds(); }
TextContent extends Content implements LineText.ChangeListener { @Override public void onChange() { refresh(); } TextContent(LineText text); @Override void onChange(); @Override void draw(Graphics2D graphics); Rectangle2D getMinimalBounds();  }