Search in sources :

Example 6 with ListDataEvent

use of javax.swing.event.ListDataEvent in project android by JetBrains.

the class RenderErrorPanel method setModel.

public void setModel(@NotNull RenderErrorModel model) {
    if (model.equals(myModel)) {
        return;
    }
    myModel.removeListDataListener(this);
    // The user has seen the new errors only if the panel is not minimized
    hasUserSeenNewErrors = !isMinimized();
    myModel = model;
    myModel.addListDataListener(this);
    contentsChanged(new ListDataEvent(myModel, ListDataEvent.CONTENTS_CHANGED, 0, myModel.getSize()));
}
Also used : ListDataEvent(javax.swing.event.ListDataEvent)

Aggregations

ListDataEvent (javax.swing.event.ListDataEvent)6 ListDataListener (javax.swing.event.ListDataListener)5 CleanupActionsListModel (org.jabref.gui.cleanup.CleanupActionsListModel)2 Test (org.junit.Test)2 FormBuilder (com.jgoodies.forms.builder.FormBuilder)1 FormLayout (com.jgoodies.forms.layout.FormLayout)1 TIntArrayList (gnu.trove.TIntArrayList)1 BorderLayout (java.awt.BorderLayout)1 MouseEvent (java.awt.event.MouseEvent)1 MouseMotionAdapter (java.awt.event.MouseMotionAdapter)1 Iterator (java.util.Iterator)1 JButton (javax.swing.JButton)1 FieldFormatterCleanups (org.jabref.model.cleanup.FieldFormatterCleanups)1 BibDatabaseContext (org.jabref.model.database.BibDatabaseContext)1