List of usage examples for java.util Observable equals
public boolean equals(Object obj)
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); } } }