@Test public void testDispose() { eventCounter.assertNoEvents(0); boolean[] liveOptions = { true, false }; for (int b = 0; b < liveOptions.length; b++) { JTextField textField = new JTextField(); TextComponentMatcherEditor<String> textMatcherEditor = new TextComponentMatcherEditor<>(textField, GlazedLists.toStringTextFilterator(), liveOptions[b]); textField.setText("DEF"); textField.postActionEvent(); assertTrue(textMatcherEditor.getMatcher().matches("TONEDEF")); assertFalse(textMatcherEditor.getMatcher().matches("STUPID")); textMatcherEditor.dispose(); textField.setText("STU"); textField.postActionEvent(); assertTrue(textMatcherEditor.getMatcher().matches("TONEDEF")); assertFalse(textMatcherEditor.getMatcher().matches("STUPID")); } }
public void dispose() { deregisterListeners(live); }
TextComponentMatcherEditor extends TextMatcherEditor<E> { public void dispose() { deregisterListeners(live); } }
TextComponentMatcherEditor extends TextMatcherEditor<E> { public void dispose() { deregisterListeners(live); } TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator);  TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator, boolean live);  TextComponentMatcherEditor(Document document, TextFilterator<? super E> textFilterator); private  TextComponentMatcherEditor(JTextComponent textComponent, Document document, TextFilterator<? super E> textFilterator, boolean live); }
TextComponentMatcherEditor extends TextMatcherEditor<E> { public void dispose() { deregisterListeners(live); } TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator);  TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator, boolean live);  TextComponentMatcherEditor(Document document, TextFilterator<? super E> textFilterator); private  TextComponentMatcherEditor(JTextComponent textComponent, Document document, TextFilterator<? super E> textFilterator, boolean live); boolean isLive(); void setLive(boolean live); void dispose(); }
TextComponentMatcherEditor extends TextMatcherEditor<E> { public void dispose() { deregisterListeners(live); } TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator);  TextComponentMatcherEditor(JTextComponent textComponent, TextFilterator<? super E> textFilterator, boolean live);  TextComponentMatcherEditor(Document document, TextFilterator<? super E> textFilterator); private  TextComponentMatcherEditor(JTextComponent textComponent, Document document, TextFilterator<? super E> textFilterator, boolean live); boolean isLive(); void setLive(boolean live); void dispose();  }