Example usage for java.util Observable equals

List of usage examples for java.util Observable equals

Introduction

In this page you can find the example usage for java.util Observable equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:be.vds.jtbdive.client.view.core.stats.StatPanel.java

@Override
public void update(Observable o, Object arg) {
    if (o.equals(UnitsAgent.getInstance())) {
        displayStatQueryObjectResult();//  ww  w . j  av  a 2 s.c o m
    } else if (arg instanceof LogBookEvent) {
        LogBookEvent event = (LogBookEvent) arg;
        if (event.getType().equals(LogBookEvent.LOGBOOK_CLOSED)
                || event.getType().equals(LogBookEvent.LOGBOOK_DELETED)) {
            statQueryObject = null;
            showGraphPanel(false);
            statWizardButton.setEnabled(false);
        } else if (event.getType().equals(LogBookEvent.LOGBOOK_LOADED)) {
            statWizardButton.setEnabled(true);
        }
    }

}